This JavaScript Code Will Confuse You 😵 #1
This line of JavaScript might just break your brain:
console.log("a" + +"b" + "c");
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
Видео This JavaScript Code Will Confuse You 😵 #1 канала Sathelli Srikanth
console.log("a" + +"b" + "c");
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
Видео This JavaScript Code Will Confuse You 😵 #1 канала Sathelli Srikanth
#javascript #javascriptshorts #javascriptinterview #javascriptinterviewquestions #jsinterviewquestions #frontendinterview #frontenddeveloper #webdeveloperinterview #codinginterview #javascriptconsolelog #javascripttrick #naninjavascript #consolelogtrick #learnjavascript #javascriptshortsexplained #jsconcepts #webdevelopmentshorts #javascripttutorial #programmingshorts
Комментарии отсутствуют
Информация о видео
25 апреля 2025 г. 19:30:39
00:00:51
Другие видео канала




















