DEV Community

Discussion on: TypeError: JavaScript

Collapse
vyzaldysanchez profile image
Vyzaldy Andrés Sanchez

Yes, you're right.adding a number with an integer will result in JS triggering implicit coercion which will convert the number into string and it will perform concatenation instead. No errors thrown.

Collapse
saifsadiq1995 profile image
Saif Sadiq Author

Thanks Vyzaldy for bringing this to me. I'll look into it.