JavaScript Conditional Statements
JavaScript Conditional Statements - Important Points
31. | What is the output of the following code? var x = "hello"; |
---|
A. x is truthy
B. x is falsy
C. hello is truthy
D. No output
View Answer Discuss Work SpaceAnswer: option a
Explanation:
32. | What is the output of the following code? var x = 0; |
---|
A. x is truthy
B. x is falsy
C. 0 is truthy
D. No output
View Answer Discuss Work SpaceAnswer: option b
Explanation:
33. | What is the output of the following code? var x = "10"; |
---|
A. x and y are equal
B. x and y are not equal
C. 10 and 10 are equal
D. No output
View Answer Discuss Work SpaceAnswer: option a
Explanation:
34. | What is the output of the following code? var x = "10"; |
---|
A. x and y are equal
B. x and y are not equal
C. 10 and 10 are equal
D. No output
View Answer Discuss Work SpaceAnswer: option b
Explanation:
35. | What is the output of the following code snippet? var x = 5; |
---|
A. x is greater than 10
B. x is less than or equal to 10
C. 5 is greater than 10
D. 5 is less than or equal to 10
View Answer Discuss Work SpaceAnswer: option b
Explanation: