Realated Questions
What will be the output of the following JavaScript code?
const string1 = [1,2,3]; const string2 = [4,5,6,7,8,9,10]; const result = string1.concat(string2); console.log(result);
Which of the following function of the String object returns the character in the string starting at the specified position via the specified number of characters?
A collection of elements of the same data type which may either in order or not, is called _____.