summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam Brenecki <adam@brenecki.id.au>2015-10-29 09:02:37 +1030
committerAdam Brenecki <adam@brenecki.id.au>2015-10-29 09:02:37 +1030
commit7119a37a4ed261f677c9c3401fb981615223f058 (patch)
treee62eaed0c5d6a32e6bb55406967b19bf54575b82
parentcbc2daa58d85a0729b898774ff8030f9268a303d (diff)
parent08e6aa4e6e0344082517ad94d29fb33b81e827a9 (diff)
Merge pull request #1866 from Pink401k/javascript
[javascript/en] Adding a small blurb to extend upon string concatenation
-rw-r--r--javascript.html.markdown4
1 files changed, 4 insertions, 0 deletions
diff --git a/javascript.html.markdown b/javascript.html.markdown
index cd75b0d2..e285ca4e 100644
--- a/javascript.html.markdown
+++ b/javascript.html.markdown
@@ -101,6 +101,10 @@ false;
// Strings are concatenated with +
"Hello " + "world!"; // = "Hello world!"
+// ... which works with more than just strings
+"1, 2, " + 3; // = "1, 2, 3"
+"Hello " + ["world", "!"] // = "Hello world,!"
+
// and are compared with < and >
"a" < "b"; // = true