Which of the following function of String object splits a String object into an array of strings by separating the string into substrings?
slice()
split()
replace()
search()
Correct Answer : B
Which of the following function of Array object calls a function for each element in the array?
Which built-in method sorts the elements of an array?
What is the correct syntax to write an array in JavaScript?