Basic JavaScript Flashcards
Cards and exercises of basic javascript. This is include variables, operators, conditionals, loops, functions and so on
1
Q
What are the immutable data types in javascript?
A
Boolean, Null, Undefined, Number, String, and Symbol
tip: use the acronym BUNS²
2
Q
And the mutable data types ?
A
Array and Objects
3
Q
What are six false values in Javascript Boolean Function ?
A
Undefined, Null, 0 (Zero), false, “” or ‘’ (Empty) and NaN
tip: use the acronym Um Zero em falso não é nulo.
4
Q
How to define comments in your code so that interpreter of Javascript display it at called of a function ?
Show an example.
A
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';