How to Check That a Number is NaN in JavaScript?

John Au-Yeung
JavaScript in Plain English
2 min readJan 28, 2022

--

Photo by NeONBRAND on Unsplash

More content at plainenglish.io. Sign up for our free weekly newsletter. Get exclusive access to writing opportunities and advice in our community Discord.

Sometimes, we may want to check that a number if NaN in JavaScript.

In this article, we’ll look at ways we can use to check that a number is NaN in JavaScript.

--

--