MCQs > IT & Programming > JavaScript > Following code evaluate to? var arr = [1, 2, 3, 4]; arr.indexOf(2);

JavaScript MCQs

What does the following code evaluate to? var arr = [1, 2, 3, 4]; arr.indexOf(2);

Answer

Correct Answer: 1

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it