JavaScript Question 1 (1 point) When you use the relational operators, you can c
ID: 3910731 • Letter: J
Question
JavaScript
Question 1 (1 point)
When you use the relational operators, you can compare
Question 1 options:
a variable with a literal value
a variable with another variable
a variable with an arithmetic expression
all of the above
A and B only
Save
Question 2 (1 point)
The equal to (==) and not equal to (!=) operators should
Question 2 options:
not be used to compare floating-point numbers
not be used in a conditional expression
not be used with the isNaN() method
Save
Question 3 (1 point)
What value is returned by the following expression?
!isNaN("12.345")
Question 3 options:
true
false
NaN
undefined
Question 4 (1 point)
Which of the following is NOT a relational operator?
Question 4 options:
>
>=
!=
=
Save
Question 5 (1 point)
Which of the following will test whether a Boolean variable named isValid is true?
Question 5 options:
isValid == true
isValid
!isValid == false
all of the above
Save
a variable with a literal value
a variable with another variable
a variable with an arithmetic expression
all of the above
A and B only
Explanation / Answer
Answer 1:
All of the above
we can compare variable with literal and other variable and expression
Answer 2:should not use with isNan
Answer 3: True;
!isNaN("12.345") return false and on false we are applying ! it will become true
Answer 4:D
= is an assignment operator which is used to assign the values
Answer 5:D
all are valid scenarios
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.