char array to string js code example

Example 1: js array to string

var myArray = ['no','u'];
var myString = myArray.toString();

Example 2: char array to string

String string = String.valueOf(a);

Example 3: array to string javascript

<array>.join(<splitting character(s)>);

Example 4: converting char array to string

// Convert char array to String in Java
class Util
{
    public static void main(String[] args)
    {
        char[] chars = {'T', 'e', 'c', 'h', 'i', 'e', ' ', 
                        'D', 'e', 'l', 'i', 'g', 'h', 't'};
 
        String string = new String(chars);
        System.out.println(string);
    }
}