join() in javascript

          The join() method joins all elements of an array into a string. The string conversions of all array elements are joined into one string. If an element is undefined or null, it is converted to the empty string.

Syntax

   Array.join();

Example

   var ar=[10,20,30];
   alert(ar.join('#'));


Example Program:- (Editor)


Editor is Loading...

Advertisement

Nhận xét

Bài đăng phổ biến từ blog này

How to set the SDK, NDK and JDK path to android studio?

if statement

Select all values from list box in a single click using javascript