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?
console.log(undefined * 2)
//Output ⇒ NaN
When you run this script the output you will get is NaN
Comments