+ 1

Explain the output

console.log(typeof(+"1")) First, what is + doing there alone??? Isn't it a syntax error? Second, the output....

15th Dec 2019, 6:37 PM
Ajit Kumar
Ajit Kumar - avatar
7 Answers
+ 1
~ swim ~ + acting like addition ?
15th Dec 2019, 6:48 PM
Ajit Kumar
Ajit Kumar - avatar
+ 1
~ swim ~ yeah .. that's what I thought ... Um.. what are unary things?
15th Dec 2019, 6:52 PM
Ajit Kumar
Ajit Kumar - avatar
+ 1
~ swim ~ oh... đŸ€ŁđŸ€ŁđŸ€ŁđŸ€ŁđŸ€Ł Such a simple thing... Thanks for explaining
15th Dec 2019, 7:04 PM
Ajit Kumar
Ajit Kumar - avatar