Please enable JavaScript.
Coggle requires JavaScript to display documents.
JS Interview - Coggle Diagram
JS Interview
Hoisting
-
only declaration, not initialization!
(var value still undefined)
let, const, function expression, arrow function
Primitives
string, number, null, undefined,
boolean, symbol, bigint
operators
-
-
-
-
-
-
-
, - several expressions in one line
-
Event Propagation
-
-
-
e.stopPropagation() - stop listeners on next elements
e.stopImmediatePropagation() - stop on this element too
-
-
Scope
function (var, let, const)
-
-
-
-
this
-
function context
strict mode
undefined
(use call(), or apply() to set this)
-
-
-
setting this
person.hello.apply({ name: "Jim Smith" }, args);
(executes immediately, args is an array)
-
person.hello.call({ name: "Jim Smith" }, "world");
(executes immediately)
Functional programming
pure functions
(filter, map, reduce, etc.)
-
-
-
-