|
|
|
|
|
by X4
4722 days ago
|
|
What do you think about not using any operator (but space+"") for concatenation and using a syntax like this: var 1 = 5+5 // I would expect: Error 0-9 cannot be used as a variable
var foo = "Hello " "Bob!" "\nAre you there?"
var bar = "Hello " 1
console.info(1) // throw error and refer to var 1
console.info(foo)
"Hello Bob!
Are you there?"
console.info(bar)
"Hello 1"
|
|