TypedArray toString() JavaScript

The Javascript TypedArray toString() method transforms the element of an array into a string separated by a comma “,”.

Syntax:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
array.toString()
array.toString()
array.toString()

Returns:
String.

Example:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<!DOCTYPE html>
<html>
<body>
<script>
var num = ["HELLO",32,34,"WORLD",83];
document.write(num.toString());
</script>
</body>
</html>
<!DOCTYPE html> <html> <body> <script> var num = ["HELLO",32,34,"WORLD",83]; document.write(num.toString()); </script> </body> </html>
<!DOCTYPE html>
<html>
<body>
<script>  
var num = ["HELLO",32,34,"WORLD",83];    
document.write(num.toString());  
</script>
</body>
</html>