Hoisting and the temporal dead zone
See why declarations and expressions behave differently, and how var, let, and const interact with the TDZ.
Notes on
The language of the web, one concept at a time.
See why declarations and expressions behave differently, and how var, let, and const interact with the TDZ.
Use an IIFE to run a function immediately after defining it, and avoid a common semicolon pitfall.
Write concise arrow functions, use an implicit return, and omit parentheses for a single simple parameter.
Compare function declarations and expressions, define parameters, and call a function with arguments.
Replace repeated statements with for, while, and do...while loops, then control iteration with break and continue.
Understand case, default, break, and fall-through, and compare switch with if/else.
Write conditional branches, recognize falsy values, and compare loose and strict equality.
Explore primitive and object values, operator precedence, and the differences between var, let, and const.
Camel case, zero-based indexing, and JavaScript's role in frontend and backend web development.
Two historical notices, preserved separately from the tutorials.
Welcome to Informatics The original about page