|
|
|
|
|
by specialist
3240 days ago
|
|
We can save time by listing the worthwhile features of JavaScript. The OR operator (||) is nice syntactic sugar for returning the first non-null value. Just like SQL's COALESCE. let a = null
let b = 123
let result = a || b
result now equals 123.Dang it. Now I can't remember the other thing I like about JavaScript. Oh, I do like using the shebang preamble for running nodejs scripts from the bash command line. |
|