---
title: "Discussion on \"Lesson 12: Mastering JavaScript typeof with challenges!\" | Hashnode"
description: "Discussion on \"Lesson 12: Mastering JavaScript typeof with challenges!\". ✅ 1. 🔍 What is typeof?\nThe typeof operator is used to get the type of a value as a string.\ntypeof 123       // 'number'\ntypeof \"hello\"   // 'string'\ntypeof true      // 'boolean'\ntypeof {}        // 'object'\n\nSyntax:\ntypeof operand\n// or\ntypeof(oper..."
url: "https://hashnode.com/posts/lesson-12-mastering-javascript-typeof-with-challenges/67fe01d95a03124fe1e3ff1a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Lesson 12: Mastering JavaScript typeof with challenges!](https://javascript-day-1.hashnode.dev/lesson-12-mastering-javascript-typeof-with-challenges?utm_source=hashnode&utm_medium=feed)

✅ 1. 🔍 What is typeof? The typeof operator is used to get the type of a value as a string. typeof 123 // 'number' typeof "hello" // 'string' typeof true // 'boolean' typeof {} // 'object' Syntax: typeof operand // or typeof(oper...

Apr 15, 2025 · 4 min read · javascript-day-1.hashnode.dev  
Read the article

-   [#typeof](https://hashnode.com/tag/typeof)

## Written by

[manoj ymk](https://hashnode.com/@manoj-ymk)

@manoj-ymk

  
[View profile](https://hashnode.com/@manoj-ymk)

“Daily Dev Notes — For You and Future Me”

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
