Blog
Mert Özen's blog posts on software development, backend, frontend, and DevOps.
JavaScript Loops: for, while, for...of and for...in
We use examples to cover for, while and do...while loops, for...of for arrays and strings, for...in for objects, break and continue, and the infinite loop trap that locks up the tab.
JavaScript Conditionals: if/else, the Ternary Operator and switch
We use examples to cover if/else if/else chains, the ternary operator, fall-through and break in switch, truthy/falsy traps in conditions, the early return idea and writing readable conditions.
JavaScript Operators: Arithmetic, Equality, Logical Operators and Truthy/Falsy
We cover arithmetic and assignment operators, comparisons, == versus === and coercion, truthy/falsy values, short-circuiting with && and ||, the ?? operator and precedence pitfalls.
JavaScript Data Types: Primitives, Objects and typeof
We meet JavaScript's seven primitive types and objects, and use examples to see why typeof says "object" for null, why primitives are immutable, and how values differ from references.
JavaScript Variables: let and const, Block Scope and the TDZ
We declare variables with let and const, and use examples to see reassignment versus mutation, block scope, naming rules, why var has been retired, and the TDZ.
Your First JavaScript Script: The script Tag, defer, async and DevTools
We link JavaScript to HTML inline and as an external file, see how defer and async differ, and try console methods, reading error messages and our first breakpoint in DevTools.
What Is JavaScript? How It Runs in the Browser, ECMAScript and Your First Line
We learn JavaScript's place on a web page, how ECMAScript and TC39 evolve the language and what browser engines do, then write our first lines in the console and change a page live.