
JavaScript Masterclass - Zero to Job-Ready with Hands-On Projects - Booleans and Comparisons / 015
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the two possible values of a boolean data type?
Yes and No
True and False
On and Off
1 and 0
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In JavaScript, which of the following is a valid boolean value?
TRUE
True
'True'
true
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of the expression 'students.includes("Alex")' if 'Alex' is in the list?
true
undefined
null
false
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to compare if two values are equal in JavaScript?
=
==
!=
===
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the '!=' operator signify in JavaScript?
Greater than
Inequality
Equality
Assignment
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If 'age' is 25, what will 'age >= 25' evaluate to?
undefined
true
null
false
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does JavaScript compare strings like 'ABC' and 'XYZ'?
By length
By number of vowels
By ASCII values
By alphabetical order
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?