The toString() method
The
toString()
method returns a string representing the source code of the function:
var countries = ["U.S.A", "U.K", "India", "France"]; alert(countries.toString());
The
toString()
method returns a string representing the source code of the function:
var countries = ["U.S.A", "U.K", "India", "France"]; alert(countries.toString());