Arithmetic in string | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse