+ 1

What is string in JavaScript ?

I know the brief about it but can't understand . Please describe widely !

18th Jan 2022, 6:54 AM
makhrab dip
2 Answers
+ 2
var a="2"; console.log(a+2); var b=2; console.log(b+2); The first will print 22. The second will print 4.
18th Jan 2022, 7:03 AM
Mohammed