Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript arrays codeburst

var elements = ['Task 1', 'Task 2', 'Task 3'];console.log(elements.join());// expected output: Task 1,Task 2,Task 3console.log(elements.join(''));// expected output: Task 1Task 2Task3console.log(elements.join('-'));// expected output: Task 1-Task 2-Task 3
Source by codeburst.io #
 
PREVIOUS NEXT
Tagged: #javascript #arrays #codeburst
ADD COMMENT
Topic
Name
6+4 =