MCQs > IT & Programming > JavaScript > var a = [2, 5, 12, 16, 23, 35]; XXXX function abc( YYYY ) { return val > 20; } Which option will replace XXXX and YYYY in order to generate 4 as an output?

JavaScript MCQs

Consider the given code snippet.
var a = [2, 5, 12, 16, 23, 35];

XXXX

function abc( YYYY ) {
    return val > 20;
}

Which of the following options will replace XXXX and YYYY in order to generate 4 as an output?



Answer

Correct Answer: XXXX will be replaced by var b = a.findIndex(abc)&nbsp;<br>YYYY will be replaced by val, index, array

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