+ 1

Arithmetic in string

What is the output of this code? let a = ‘2’; let b = 5; console.log((b+a) + “” + (b-a)); And why? Thanks in advance.

23rd Feb 2020, 2:52 PM
Михаил Кудимов
Михаил Кудимов - avatar
0 odpowiedzi