This repository demonstrates a common error in Javascript related to type handling. The myFunction attempts to add two numbers but concatenates due to implicit type ...
In the above syntax you can pass any number of parameters one or more than one. Example of concat method : Here I will show you how you can add single string in first example and in second example I ...
This repository demonstrates a common JavaScript bug caused by loose typing. The foo function is intended to add two numbers. However, if one of the arguments is a string, JavaScript performs string ...