mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Adding a small blurb to extend upon string concatination
This commit is contained in:
parent
cbc2daa58d
commit
08e6aa4e6e
@ -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