CodesJava

Easy learning with example program codes

TypedArray toString() JavaScript

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

Syntax:

array.toString() 

Returns:
String.

Example:

<!DOCTYPE html>
<html>
<body>
<script>  
var num = ["HELLO",32,34,"WORLD",83];    
document.write(num.toString());  
</script>
</body>
</html>

Output:

HELLO,32,34,WORLD,83
Please follow and like us:
error








Copyright © 2019 CodesJava DMCA.com Protection Status