Semicolon missing?


#1


https://www.codecademy.com/en/courses/web-beginner-en-5YvPF/0/6?curriculum_id=5124ef4c78d510dd89003eb8#


"Oops, try again. Did you add a semicolon after the echoed string?"


    <?php
        $loopCond = false;
        do {
            echo "<p>Now the loop is done running.</p>";
        }
        while ($loopCond);
    ?>


#2

@valklau I see no problems with your code might be something wrong with your browser.


#3

You've deleted one of the original echo statements and wrapped the do / while loop around the wrong echo statement!

You need to follow the instructions exactly as they are described to pass the exercise.

Click the Reset Code button to start the exercise with the original code.

Then read the instructions carefully to see you just need to add in the missing { }, ( ) and ;s.


#4

Haha, seems like I have accidentally deleted it. After hitting 'Reset Code' everything seems to work fine. This was just my own carelessness, thank you for pointing out my little mistake there :slight_smile:


#5

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