+ 1

Hey guys How do you create an Array base on Input?

Thank You!

28th Jun 2017, 4:36 PM
Teddy Pascual
Teddy Pascual - avatar
2 Answers
+ 16
var arr = eval("return "+prompt("Enter Array")); //input should be like '[1,2,3,4,...]'
28th Jun 2017, 4:39 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
Thanks a Lot!
28th Jun 2017, 4:40 PM
Teddy Pascual
Teddy Pascual - avatar