diff options
author | Adam Brenecki <adam@brenecki.id.au> | 2014-08-10 19:31:54 +0930 |
---|---|---|
committer | Adam Brenecki <adam@brenecki.id.au> | 2014-08-10 19:31:54 +0930 |
commit | a9daab714af9c1db9a48311d050d7f8d340b8048 (patch) | |
tree | fb9eab569014c6ab6bfb1139b5e6dfb4e0155104 /javascript.html.markdown | |
parent | 2cfc0752b4f9ab833e088261b5450a4fd6ff2fa6 (diff) | |
parent | 7cf0bcb8283a0be92f77b40568355f02ac1811af (diff) |
Merge pull request #718 from m90/master
[javascript/*] typeof is an operator and not a function/method - fix usag...
Diffstat (limited to 'javascript.html.markdown')
-rw-r--r-- | javascript.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/javascript.html.markdown b/javascript.html.markdown index c59a90c3..7c869b28 100644 --- a/javascript.html.markdown +++ b/javascript.html.markdown @@ -460,8 +460,8 @@ var myNumberObj = new Number(12); myNumber == myNumberObj; // = true // Except, they aren't exactly equivalent. -typeof(myNumber); // = 'number' -typeof(myNumberObj); // = 'object' +typeof myNumber; // = 'number' +typeof myNumberObj; // = 'object' myNumber === myNumberObj; // = false if (0){ // This code won't execute, because 0 is falsy. |