Q1 · Language fundamentals
JavaScript के data types
JavaScript में कौन-कौन से data types हैं?
सात primitives: string, number, bigint, boolean, undefined, symbol, null. बाकी सब object हैं — arrays, functions, dates, maps भी. typeof null "object" देता है — पुरानी गलती. typeof function "function" है. "hi".length इसलिए चलता है क्योंकि इंजन अस्थायी String object बनाता है.