Correct Answer : A
Realated Questions
What will be the output obtained by last "shift ()" in the given code of JavaScript?
var a =[]; a.unshift(5); a.unshift(22); a.shift(); a.unshift(3,[4,5]); a.shift(); a.shift(); a.shift();
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?