You can use this:

obj.(prop)

:)

On Saturday, January 2, 2016 at 10:15:11 AM UTC+8, nwhite wrote:
>
> Quick question about property access. You mention there is no need for 
> brackets and everything utilizes a dot.
>
> Example:
>
> obj."some string"
>
> Using future script assignment lets consider:
>
> prop: "some string"
>
> how would I use the value of variable 'prop' on 'obj'?
>
> On Jan 1, 2016, at 2:42 AM, Zhenzhen Zhan <[email protected] 
> <javascript:>> wrote:
>
> It's called FutureScript <http://futurescript.org/>. It aims to be more 
> consistent, more radical but more readable. Many new concepts are 
> introduced. See:
>
> http://futurescript.org/
>
> -- 
> Job board: http://jobs.nodejs.org/
> New group rules: 
> https://gist.github.com/othiym23/9886289#file-moderation-policy-md
> Old group rules: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> --- 
> You received this message because you are subscribed to the Google Groups 
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected] <javascript:>
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/nodejs/ec4a3cc9-f926-4085-b8af-782c7b41913c%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/nodejs/ec4a3cc9-f926-4085-b8af-782c7b41913c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/dd1ab20e-6938-443b-9bce-7878d75a61ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to