What are the immutable data types in javascript?
Boolean, Null, Undefined, Number, String, and Symbol
tip: use the acronym BUNS²
And the mutable data types ?
Array and Objects
What are six false values in Javascript Boolean Function ?
Undefined, Null, 0 (Zero), false, “” or ‘’ (Empty) and NaN
tip: use the acronym Um Zero em falso não é nulo.
How to define comments in your code so that interpreter of Javascript display it at called of a function ?
Show an example.
This syntax makes the interpreter of Javascript display the comment in the format of documentation. Try it!
/**
* A long process to prepare tea.
* @return {string} A cup of tea.
**/
const prepareTea = () => 'greenTea';