diff options
author | Adam Brenecki <adam@brenecki.id.au> | 2015-10-29 09:02:37 +1030 |
---|---|---|
committer | Adam Brenecki <adam@brenecki.id.au> | 2015-10-29 09:02:37 +1030 |
commit | 7119a37a4ed261f677c9c3401fb981615223f058 (patch) | |
tree | e62eaed0c5d6a32e6bb55406967b19bf54575b82 | |
parent | cbc2daa58d85a0729b898774ff8030f9268a303d (diff) | |
parent | 08e6aa4e6e0344082517ad94d29fb33b81e827a9 (diff) |
Merge pull request #1866 from Pink401k/javascript
[javascript/en] Adding a small blurb to extend upon string concatenation
-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 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 |