MCQs > IT & Programming > JavaScript > What's the output? function* as( limit = Infinity ) { let a = 0, b = 1; while( a < limit ) { yield a; [a, b] = [b, a + b]; } } var pp=3 let iterator = as( 10 ); for(var prop of iterator){ pp=pp+23 } var f = (x)=>10+x console.log(f(10) + pp)

JavaScript MCQs

What will be the output of the following code?

function* as( limit = Infinity )
{
let a = 0, b = 1;
while( a < limit )
{
   yield a;
   [a, b] = [b, a + b];
}
}
var pp=3
let iterator = as( 10 );
for(var prop of iterator){
pp=pp+23
}
var f = (x)=>10+x
console.log(f(10) + pp)


Answer

Correct Answer: 184

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