Javascript Weird Parts ^hot^

false , 0 , -0 , 0n (BigInt zero), "" , null , undefined , NaN .

What's the weirdest JavaScript bug you've ever debugged? Drop it in the comments below. javascript weird parts

This is the gateway drug of JS weirdness. false , 0 , -0 , 0n (BigInt

('b' + 'a' + + 'a' + 'a').toLowerCase() // "banana" // The + + 'a' tries to convert 'a' to a number, resulting in NaN. Use code with caution. Learn more about Type Coercion on Medium. 2. Execution Context and Hoisting 0n (BigInt zero)