MCQs>IT & Programming>JavaScript>Consider: var x = ['a', 'b', 'c']; Which line of code will remove the first element of the array, resulting in x being equal to ['b', 'c']?
JavaScript MCQs
Consider: var x = ['a', 'b', 'c']; Which line of code will remove the first element of the array, resulting in x being equal to ['b', 'c']?
Answer
Correct Answer: x.splice(0, 1);
Explanation:
Note: This Question is unanswered, help us to find answer for this one