Get the real type from JavaScript variables | Web Dev Office Hours

Опубликовано: 19 Июль 2026
на канале: Akamai DevRel
384
8

Sometimes in JavaScript, you need to run conditional logic based on a variable's type. JavaScript has the built-in `typeof` operator, but it has trouble differentiating between complex objects. In this video, we'll create a function that differentiates types of variables more reliably.

Watch Austin's Livestreams here
YouTube:    / heyaustingil  
Twitch:   / heyaustingil  
Website: https://austingil.com/

0:00 - Introduction
0:13 - Type of Variables
3:39 - End Card