diff options
author | i <isomorphisms@sdf.org> | 2014-10-28 03:56:12 -0400 |
---|---|---|
committer | i <isomorphisms@sdf.org> | 2014-10-28 03:56:12 -0400 |
commit | 3921d11155780f8219a8110d8fe4ede88c9fcadf (patch) | |
tree | ddb19e32372cf3666497fe617c2ff75bed36bfdb | |
parent | e126fec97239f3c62f8f50a338d4a8d8b03702d7 (diff) |
more oddities
JavaScript is full of oddities .. I definitely wouldn't claim everything works "as it should" .. you don't have to include the gotcha's but I don't know, they're not that confusing for me.
-rw-r--r-- | javascript.html.markdown | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/javascript.html.markdown b/javascript.html.markdown index cc210c4a..2dece277 100644 --- a/javascript.html.markdown +++ b/javascript.html.markdown @@ -105,6 +105,10 @@ null == undefined; // = true "5" === 5; // = false null === undefined; // = false +// ...which can result in some weird behaviour... +13 + !0; // 14 +"13" + !0; // '13true' + // You can access characters in a string with charAt "This is a string".charAt(0); // = 'T' |