MCQs > IT & Programming > JavaScript > What's the output? 'use strict' class Abc{ constructor(t, p) { this.t = t; this.p = p; } test() { var x; var c = 0; for(x=7; x!==0; x&=(x-1)) c++; console.log(c++ + this.t + this. p); } } var Obj1 = new Abc(10.5,20.5); Obj1.test();

JavaScript MCQs

What will be the output of the following JavaScript code?

'use strict'
class Abc{
  constructor(t, p) {
     this.t = t;
     this.p = p;
  }
  test() {
     var x;
     var c = 0;
           for(x=7; x!==0; x&=(x-1))
                   c++;
           console.log(c++ + this.t + this. p);
  }
}

var Obj1 = new Abc(10.5,20.5);
Obj1.test();


Answer

Correct Answer: 34

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