JavaScript in Plain English

New JavaScript and Web Development content every day. Follow to join our 3.5M+ monthly readers.

Follow publication

Member-only story

Everything you need to know about NaN in JavaScript

Sam Sedighian
JavaScript in Plain English
5 min readFeb 28, 2020

--

Examples of operations resulting in NaN

Interesting facts about NaN

typeof NaN; // 'number'
Boolean(NaN); // false

--

--

Published in JavaScript in Plain English

New JavaScript and Web Development content every day. Follow to join our 3.5M+ monthly readers.

Written by Sam Sedighian

Software Engineer @Doordash. Formerly @LinkedIn, @Tubi

Responses (1)

Write a response