With the following code, var x = 10; var y = true; which of the options are slower two ?

  1. if (x*x < 1000 && y) alert("true!");

  2. if (x*x > 1000 && y) alert("true!");

  3. if (y || x*x > 1000) alert("true!");

  4. if (x*x > 1000 || y) alert("true!");


Correct Option: A,D

Find more quizzes: