JavaScript Array Method : toString()

The toString() method converts an array to a comma separated string. The basic syntax is :
  array.toString()
Example :
<!DOCTYPE html>
<html>
<body>
  <script>
    var webdev = ["HTML", "CSS", "Javascript", "MySql", "PHP"];
    document.write(webdev.toString());
  </script>
</body>
</html>
Output :


Next Topic :