Nan Development Tutorials, Guides & Insights
Unlock 1+ expert-curated nan tutorials, real-world code snippets, and modern dev strategies. From fundamentals to advanced topics, boost your nan skills on DeveloperBreeze.
Adblocker Detected
It looks like you're using an adblocker. Our website relies on ads to keep running. Please consider disabling your adblocker to support us and access the content.
Primitive Data Types
Tutorial December 11, 2024
javascript
Use the typeof
operator to check the type of a value.
console.log(typeof "Hello"); // string
console.log(typeof 42); // number
console.log(typeof null); // object (this is a historical quirk)
console.log(typeof undefined); // undefined