Re:A re-introduction to JavaScript
by arcatek on Saturday May 09, 2015 @11:13AM
(#9516580)
the String function is also a nice way to cast a value to a string (using .toString() is unsafe because it may not exist, such as with undefined and null): String(42) === "42".
An other thing that could maybe be covered is this specifity:
An other thing that could maybe be covered is this specifity:
Native constructors are ... fun beasts, to say the least.