Thanks all, it's clearer now.

For my case, except if i need to cast and invert a function to a boolean (not everyday that's sure :D); i still use the bracket version !



Le 12/05/2011 01:11, Nathan Sweet a écrit :
Jacob,
Thanks for your explanation. I never thought about it that way before, but it makes complete sense.

On Wed, May 11, 2011 at 3:35 PM, Jacob Beard <[email protected] <mailto:[email protected]>> wrote:

    On Wed, May 11, 2011 at 6:21 PM, Nathan Sweet
    <[email protected] <mailto:[email protected]>> wrote:
    > (someone
    > smarter than me will tell you why * and / don't work, but my
    guess is that
    > they don't coerce the same way as the operators listed above).

    I think that +, -, and ! can be unary or binary operators in js
    syntax, whereas * and / can only be binary operators. This makes sense
    when you think about their meaning in mathematics.

    Best,

    Jake

    --
    To view archived discussions from the original JSMentors Mailman
    list: http://www.mail-archive.com/[email protected]/

    To search via a non-Google archive, visit here:
    http://www.mail-archive.com/[email protected]/

    To unsubscribe from this group, send email to
    [email protected]
    <mailto:jsmentors%[email protected]>


--
To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

--
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to