Javascript Weird Parts -
false , 0 , -0 , 0n (BigInt zero), "" , null , undefined , NaN .
function getObject() { return { value: 42 } } console.log(getObject()); // undefined javascript weird parts
console.log(NaN === NaN); // false Yes, NaN is not equal to itself. You must use Number.isNaN() instead. This is the gateway drug of JS weirdness. false , 0 , -0 , 0n (BigInt
const arr = [1, 2, 3]; const obj = { a: 1 }; console.log(arr + arr); // "1,2,31,2,3" (string) console.log(arr + obj); // "1,2,3[object Object]" 0n (BigInt zero)

