Javascript output based Interview question - Part 157 #shorts #javascriptinterview #javascript

preview_player
Показать описание
Learn 175+ javascript interview questions from link mentioned in bio.

#javascript #reactjs #frontend #angular #interview #javascriptinterview
Рекомендации по теме
Комментарии
Автор

Output:

/index.js:1 console.log('1'--'1'); ^^^ SyntaxError: Invalid left-hand side expression in postfix operation at wrapSafe at Module._compile at Module._extensions..js at Module.load at Module._load at [as runMain] at

ReddiBhasa
Автор

I have a doubt brother '1'+'1' = 11 (should be) because it is addition operator and operands are string type so I was said that it should be = 11
If I am wrong please reply thank u

aadhunikkida
Автор

I guess string + number combination output gives string. i.e '11'

prathapreddy
Автор

But I am getting a syntax error for this code

ReddiBhasa
join shbcf.ru