This JavaScript Code Will Confuse You 😵 #1 #JavaScript #CodingShorts #webdev

preview_player
Показать описание
This line of JavaScript might just break your brain:

Let's break it down 👇
"a" + +"b" + "c"

+"b" is trying to convert "b" into a number…

But "b" isn’t a number, so it becomes NaN!

So the result is "a" + NaN + "c" → "aNaNc"

JavaScript is wild 😅

#JavaScriptShorts #CodingFun #interviewquestions
Рекомендации по теме
Комментарии
Автор

Post this type of Questions weekly once

Wh---
visit shbcf.ru