Created
July 9, 2017 08:57
-
-
Save juliomatcom/62aaefb29df5cca6f628cd99aa664996 to your computer and use it in GitHub Desktop.
Using Boolean, Number and String with new operator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var b = new Boolean(false); // { [[PrimitiveValue]]: false } | |
var n = new Number(10); // { [[PrimitiveValue]]: 10 } | |
var s = new String('foo'); // { 0: "f", 1: "o", 2: "o", length: 3, [[PrimitiveValue]]: "foo" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment