Похожие чаты

1. console.log('1' -+-'2') gives 3 2. console.log('1' +-'2') gives

1-2.
Can anyone help me in here ?PLease

4 ответов

18 просмотров

Nobody writes code like this. This is a non-issue

JholaChapp-Daktar Автор вопроса
Simen
Nobody writes code like this. This is a non-issue

I was just trying to put it up here with least amount of typing. Moreover, i am just starting in JS. That's why this coercion thing is confusing as hell.

the same as why '1' + '-2' gives '1-2' and '1' - '-2' gives 3

Похожие вопросы

Карта сайта