Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » JavaScript Help
- StarscreamClone
-
1000+ posts
JavaScript Help
Yes, more trouble in Codecademy tutorials…
Alright, here's everything, and thank you for helping.
Lesson: Comparisons, “Make the Computer Think” JavaScript track
Info:
Try to use each of the operators above. (<, >, <=, >=, ===, !=== )
01.
Choose the right comparison operator to make each of the four statements print out true.
02.
Write two more console.log statements that both evaluate to false.
My code:
console.log(15 > 4);
console.log(“Xiao Hui”.length < 122);
console.log(“Goody Donaldson”.length !=== 8);
console.log(8*2 === 16);
console.log(9 + 2 >=12)
console.log(9/3<2)
Alright, here's everything, and thank you for helping.
Lesson: Comparisons, “Make the Computer Think” JavaScript track
Info:
Try to use each of the operators above. (<, >, <=, >=, ===, !=== )
01.
Choose the right comparison operator to make each of the four statements print out true.
02.
Write two more console.log statements that both evaluate to false.
My code:
console.log(15 > 4);
console.log(“Xiao Hui”.length < 122);
console.log(“Goody Donaldson”.length !=== 8);
console.log(8*2 === 16);
console.log(9 + 2 >=12)
console.log(9/3<2)
Last edited by StarscreamClone (Aug. 7, 2013 17:53:40)
- StarscreamClone
-
1000+ posts
JavaScript Help
EDIT: No I didn't figure it out. XD
Last edited by StarscreamClone (Aug. 7, 2013 17:54:14)
- scimonster
-
1000+ posts
JavaScript Help
It should be !== instead of !===. I had to enter them all into my console to catch that. 

- StarscreamClone
-
1000+ posts
JavaScript Help
Ah, thank you so much! Wow, what a stupid mistake! It should be !== instead of !===. I had to enter them all into my console to catch that.

- Discussion Forums
- » Advanced Topics
-
» JavaScript Help