~/talk

The Variable Crimes We Commit Against JavaScript

Talkat FrontCon 2018 · 2018-06-14..06-15· [javascript]
github:julka
slides:none on file

Shows concrete JavaScript behavior with code: uses immediately‑invoked functions and console.log to prove var bubbles to function scope (examples produce 14 from a parent variable, 15 from an implicit global), demonstrates hoisting splitting declarations so a local var logs undefined before assignment (19/20 example), proves arrays/objects are passed by reference, and contrasts ES6: let scopes to blocks and const forbids reassign but allows mutation. Slides and runnable snippets back every claim.

AI-written summary · about

  1. 0:00Start
  2. 0:43The Variable Crimes We Commit against Javascript
  3. 2:24Immediately Invoked Anonymous Functions
  4. 11:14Variable Hoisting
  5. 13:29Function Hoisting
  6. 22:37Javascript Error
  7. 22:58Code Locks in Es6
  8. 26:34Variable Shadowing
  9. 29:16Make Functions Perform Faster
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.