2018-09-27
1973
#vanilla javascript
Glad Chinda
388
Sep 27, 2018 â‹… 7 min read

JavaScript typeof: Understanding type checking in JavaScript

Glad Chinda Full-stack web developer learning new hacks one day at a time. Web technology enthusiast. Hacking stuffs @theflutterwave.

Recent posts:

typescript vs javascript

TypeScript vs. JavaScript: Differences and use cases for each

Choosing between TypeScript and JavaScript depends on your project’s complexity, team structure, and long-term goals.

Kayode Adeniyi
Mar 4, 2025 â‹… 4 min read
Understanding UUIDs In Node.js

Understanding UUIDs in Node.js

Generate and validate UUIDs in Node.js using libraries like `uuid`, `short-uuid`, and `nanoid`, covering UUID versions and best practices.

Ukeje Goodness
Mar 3, 2025 â‹… 7 min read
pure components in react using Using PureComponent and React.memo

Pure components in React: Using PureComponent and React.memo

Learn how to memoize components in React using React.PureComponent and the React.memo API, and cover the fundamentals of React components.

Glad Chinda
Mar 3, 2025 â‹… 7 min read
A guide to the CSS cursor property

A guide to the CSS cursor property

Learn about built-in CSS cursors, creating custom cursors with CSS, using multiple cursors, and adding animations with CSS and JavaScript.

Samson Omojola
Mar 3, 2025 â‹… 8 min read
View all posts

One Reply to "JavaScript <code>typeof</code>: Understanding type checking in JavaScript"

  1. Thank you for your blog. It has been very useful to me to understand “typing” in JavaScript.
    However your getType(value) function in “Generic type-checking” is not working, the regex expression is incorrect. You should replace it by
    let regex = /^\[object\s(\S+?)\]$/;

Leave a Reply