mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-23 22:27:35 +03:00
Merge pull request #1866 from Pink401k/javascript
[javascript/en] Adding a small blurb to extend upon string concatenation
This commit is contained in:
commit
7119a37a4e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user