0

Convert array to string

I have the following problem: I have an array ["h", "e", "l", "l", "o"] and I want to output this as a string "hello". Is there an easy way to do that?

13th May 2017, 1:07 PM
Rahm
Rahm - avatar
2 Answers
+ 6
var list = ["h","e","l","l","o"]; var str = list.join("");
13th May 2017, 1:19 PM
visph
visph - avatar
0
Thank you for your answer. This works very well!
13th May 2017, 1:39 PM
Rahm
Rahm - avatar