Challenge: Compare Variables in JavaScript
Task
Swipe to start coding
We have three variables in this task: a = 33, b = 26, and c = "26". We will perform various comparing operations on these variables.
- Check if
ais equal tob. - Check if
bis strictly equal toc. - Determine if
ais greater than or equal toc. - Find out if
bis less thanc. - Check if
ais greater thanbAND ifbis equal toc. - Check if
ais equal tobOR ifcis less thana.
The output should be:
false
false
true
false
true
true
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 8
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 2.5
Challenge: Compare Variables in JavaScript
Swipe to show menu
Task
Swipe to start coding
We have three variables in this task: a = 33, b = 26, and c = "26". We will perform various comparing operations on these variables.
- Check if
ais equal tob. - Check if
bis strictly equal toc. - Determine if
ais greater than or equal toc. - Find out if
bis less thanc. - Check if
ais greater thanbAND ifbis equal toc. - Check if
ais equal tobOR ifcis less thana.
The output should be:
false
false
true
false
true
true
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 8
single