C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
JavaScript TypedArray toLocaleString() MethodThe JavaScript toLocaleString() method is used to convert the elements of the given array into a string and these Strings are separated by a comma ",". Syntax:
array.toLocalString(); Parameters:
No parameters. Return value:It gives a string representing the elements of the array. Browser Support:
ExampleJavaScript TypedArray toLocaleString() Method.
<script>
//JavaScript to illustrate toLocalString() method
var A = "JavaTpoint";
var B = "Core Java";
// C is an array containing elements of above variables
var C = [A,B];
// Calling toLocalString() method
var isMore= C.toLocaleString();
// Printing string
document.write(isMore);
// expected output:JavaTpoint,Core Java
</script>
Output: JavaTpoint,Core Java
Next TopicJavaScript TypedArray Object
|