The line “b” + “a” + +”a” + “a” gives “baNaNa” in JavaScript. A plus sign in front of text tries to make a number, and the letter a gives NaN, which then gets glued in as text.
More lessons: bitsyexplains.com
#shorts #javascript #coding
source
The line “b” + “a” + +”a” + “a” gives “baNaNa” in JavaScript. A plus sign in front of text tries to make a number, and the letter a gives NaN, which then gets glued in as text.
More lessons: bitsyexplains.com
#shorts #javascript #coding
source