summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2014-11-12 19:53:49 +0200
committerAdam Bard <github@adambard.com>2014-11-12 19:53:49 +0200
commitaa98391e92bf5d821511cabe6c79d8b5dfcecb42 (patch)
treedae821ac6efd34b102c140c8c2ca4d3f33e1fd80
parentec1e7cac67ee7b84cd9be707acd900840b217c24 (diff)
parent3921d11155780f8219a8110d8fe4ede88c9fcadf (diff)
Merge pull request #832 from isomorphisms/patch-5
more oddities
-rw-r--r--javascript.html.markdown4
1 files changed, 4 insertions, 0 deletions
diff --git a/javascript.html.markdown b/javascript.html.markdown
index a92dcb4a..aabd5e43 100644
--- a/javascript.html.markdown
+++ b/javascript.html.markdown
@@ -106,6 +106,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'