The String object lets you work with a series of characters; it wraps Javascript's string primitive data type with a number of helper methods. As JavaScript automatically converts between string primitives and String objects, you can call any of the helper methods of the String object on a string primitive.
Syntax var val = new String(string);

Strings Methods

strings in Javascript


The Array object lets you store multiple values in a single variable. It stores a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type. you can use these of following styles:- var fruits = [ "apple", "orange", "mango" ]; using objects var fruits = new Array( "apple", "orange", "mango" ); array methods array in Javascript