For Loop Bug still exists


#1


https://www.codecademy.com/courses/web-beginner-en-L83Do/0/3?curriculum_id=5124ef4c78d510dd89003eb8


Parse error: syntax error, unexpected ')', expecting ';' on line 9

*** This error appears even when the code I inserted is commented out. This would indicate that there is a bug.***


<html>
  <head>
    <title>Solo For Loop!</title>
  </head>
  <body>
    <p>
      <?php
      // Write your for loop below!
        //for($i = 0; $i < 100; $i = $i + 10){
           // echo $i;
        //}
      ?>
    </p>
  </body>
</html>


#2

Something may be stuck in the cache. Refresh the page and see what happens.


#3

Yeah I've done that multiple times, tried it on multiple days. Same thing.


#4

I just passed with this overblown code:

<html>
  <head>
    <title>Solo For Loop!</title>
  </head>
  <body>
    <p>
      <?php
      // Write your for loop below!
        for ($i=10; $i<110; $i = $i+10) {
            echo $i;
        }
      ?>
      <?php
// Write your for loop below!
for($i = 10; $i<=100; $i = $i + 10){
echo $i;
}
?>
    </p>
    <p>
      <?php
      // Write your for loop below!
      //for ($i = 10; $i < 101; $i = $i + 10
      for ($i = 10; $i < 101; $i += 10) {
          echo $i;
      }
      ?>
    </p>
  </body>
</html>

#5

Had to use a different browser. Did feel like resetting Chrome which would have been the next step. Thanks!


#7

Both Chrome and Mozilla go to coma at this step.
Too bad you can't move to next level if your code has bug or if you don't type d code in a particular way. Codecademy shud think about it.


#8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.