This forum is now read-only. Please use our new forums! Go to forums
Why is this not validating?
Ok I know this works though for some reason it’s not validating.
for ($i = 50; $i >= 5; $i = $i - 5){
echo "$i<br/>";
}
Any Ideas?
Answer 5152bb87cac3e761ad000a02
2 votes
Looks like this one has bug too like the last one. Error message doesn’t make sense compared to the lesson given:
Oops, try again. Did you set the third part of your loop correctly (the part that counts up by 10s)? Make sure NOT to end this bit with a semicolon! (You only need semicolons for separating values.)
Needs a fix.
Answer 5152d8bea4e07b14d20003af
1 vote
Hello,
I think you are supposed to use the -=
operator in this one. ;-)
This seems to be a bug and I think they are going to fix this one very soon. :-)
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
5 comments
This operator “-=” have helped. Thank you!
I will try that. Thank you
Ok i guess I won’t try that “Disconnected. Please try again.” I guess they are fixing the bug.
Reload the page (again and again). :-)
Yeah I have noticed having to do that a lot…LOL