Daily JavaScript Quiz - 2024-04-19

  • Home /
  • Daily JavaScript Quiz - 2024-04-19

Daily Quiz - 2024-04-19

function Name(a, b) {
  this.a = a;
  this.b = b;
}
const me = Name("Vuong", "Nguyen");
console.log(!(a.length - window.a.length));

undefined

NaN

true

false

The answer is Option 3

a.length ~ 5 and window.a.length ~ 5 which return 0. !0 returns true

Javascript Quizzes