Js Understanding The Weird Parts Jun 2026

Immediately Invoked Function Expressions for data privacy. Call, Apply, and Bind: Explicitly setting the this keyword.

JavaScript is dynamically typed, which means that the data type of a variable is determined at runtime. This can lead to unexpected type coercion.

Wait, why?In the second example, 3 > 2 is true . The engine then compares true > 1 . To do this, it coerces true into the number 1 . Since 1 is not greater than 1 , it returns false . js understanding the weird parts

But the output is: Start End Middle

const person = name: 'John', age: 30 ;

console.log(sum(1, 2, 3, 4, 5)); // outputs 15

How they are stored and accessed.

All other values are truthy.

JavaScript isn’t weird—you just haven't met the engine yet. 🧵 Immediately Invoked Function Expressions for data privacy