Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDoron Geyer
Full Stack JavaScript Techdegree Student 13,897 Pointsmore of a head up/
the result for condition false says make an alert( "a is not greater than b");
when you run it fails because it wants the word "not" to be in capital letters.
(" a is NOT greater than b") the question doesn't use upper case.
2 Answers
jacobproffer
24,604 PointsHey Doron,
Can you show your code? I'm not experiencing this on my end.
var a = 10;
var b = 20;
var c = 30;
if (a > b) {
alert('a is greater than b');
} else {
alert('a is not greater than b');
}
Doron Geyer
Full Stack JavaScript Techdegree Student 13,897 Pointsmy code was identical to yours above. I got an error the first time I did it, had to change not to NOT(the only thing I did) and then it worked fine. which is weird because I've just gone and done the same exercise and it worked fine . No idea why I had that issue. Must be something I misread.
anyhow thanks for the quick response.