JavaScript Short #9 JS sum Questions #shorts

preview_player
Показать описание
JavaScript interview Question sorts in Hindi here is the link to a complete playlist for short javascript interview questions.
video made by anil Sidhu in hindi langauge
JavaScript interview questions playlist in Hindi

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

102 because of first one is number and second one is string, and it calculate from left to write

So, answer will be 102

VishalKumar-lryi
Автор

C. When you add a number to a string type variable. Number gets converted to a string so its c.

HamzaKhan-qmbl
Автор

102 as javascript performs implicit type conversion in this case and concatenates the string and number

ShreyaSingh-gmpk
Автор

Plush operator concat b in a and return 102 as a string

kewalkandpal
Автор

Sir ap ne Vue Js ka comparison nahi keya.ya Vue Js ki details nahi dein.Kindly make a video on it.

muhammadiftikhar
Автор

Ans-D as type coercion will take place and instead of addition they will concatenated and also final data type will be string

notappi
Автор

function sum(a, b){
return a+(+b);
}
sum(10, '2')

m.obaidtariq
visit shbcf.ru