Arithmetic in string | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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 Respuestas