;

What is the Output of “undefined * 2” in Javascript?


Tutorialsrack 12/06/2021 Jquery Javascript

In this article, you’ll learn what is the output of “undefined * 2” in javascript. This javascript question is most frequently asked by the interviewer in an interview. So in this article, you will see what the output is?

Example: What is the Output of “undefined * 2” in Javascript?
console.log(undefined * 2)

//Output ⇒ NaN

When you run this script the output you will get is NaN


Related Posts



Comments

Recent Posts
Tags