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:

Creating toast notifications using Solid Toast

Toast notifications are messages that appear on the screen to provide feedback to users. When users interact with the user […]

Chimezie Innocent
Sep 6, 2024 â‹… 7 min read
Deno Adoption Guide: Overview, Examples, And Alternatives

Deno adoption guide: Overview, examples, and alternatives

Deno’s features and built-in TypeScript support make it appealing for developers seeking a secure and streamlined development experience.

Emmanuel Odioko
Sep 5, 2024 â‹… 10 min read
Types vs. Interfaces in TypeScript

Types vs. interfaces in TypeScript

It can be difficult to choose between types and interfaces in TypeScript, but in this post, you’ll learn which to use in specific use cases.

Yan Sun
Sep 5, 2024 â‹… 9 min read
Flutter Logo

How to build a bottom navigation bar in Flutter

This tutorial demonstrates how to build, integrate, and customize a bottom navigation bar in a Flutter app.

Pinkesh Darji
Sep 5, 2024 â‹… 6 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