Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get string from array with space between

var showtimes = ["1pm", "2pm", "3pm"];
var showtimesAsString = showtimes.join(', '); // gives "1pm, 2pm, 3pm"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #string #array #space
ADD COMMENT
Topic
Name
6+7 =