aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • JavaScript Fundamentals
  • What will the following code return: Boolean(10 > 9)?
Multiple choice

What will the following code return: Boolean(10 > 9)?

  1. NaN

  2. false

  3. true

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The expression 10 > 9 evaluates to the boolean value true. The Boolean() function converts this result into its boolean representation.

Keep practicing — related questions

  • To what value will the following expressions evaluate in the JavaScript console? NaN == NaN
  • Q.Multiple NAN can be coded for 1 EAN. (TRUE/FALSE)
  • To what value will the following expressions evaluate in the JavaScript console?5 + true
  • Can you compare a boolean to an integer?
  • What is the output for the below lines of code? x = 0/0; alert(x);
  • Which one is not correct a. Float.isNan(x); b. x == Float.NaN; c. Myobject .equals(float.NaN);
  • Which one is not correct A. x = = Float.NaN B. Float.isNan(x); C. Myobject .equals(float.NaN);
  • Which one is not correct A. x = = Float.NaN B. Float.isNan(x); C. Myobject .equals(float.NaN);
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy