Where can I read more about this syntax?
Does the difference really move the needle? Does GCC optimizer replace
Number with a shortened name anyway?
What if you take away all whitespace?
What should we generate for:
var bar = "1234";
var foo = Number(bar);
var foo = Number("12" + "34");
Sorry for all of the questions. I'm trying to understand how much gain we
get for how much work.
Thanks,
-Alex
On 1/2/17, 9:23 AM, "Harbs" <[email protected]> wrote:
>Or more concisely:
>
>console.log(20 + +"1234")
>< 1254
>
>On Jan 2, 2017, at 7:21 PM, Harbs <[email protected]> wrote:
>
>> Apparently, yes:
>>
>> > var foo = 20 + +"1234";
>> < undefined
>> > foo
>> < 1254
>>
>> On Jan 2, 2017, at 7:13 PM, Alex Harui <[email protected]> wrote:
>>
>>> var foo = 20 + +"1234";
>>
>