Suffering on 10. To learn it you gotta 'do' it!


#1

https://www.codecademy.com/courses/javascript-beginner-en-ASGIv/2/3?curriculum_id=506324b3a7dffd00020bf661#

I'm still getting a Syntax error: unexpected token. Can someone help out?

var getToDaChoppa = function() {
    var TheTrill = false; 
 do { 
     console.log ("We at 'Da choppa since we 'Da realest!")
     };
     while (TheTrill === true) {
         console.log ("Get to Da Choppa!") // Write your do/while loop here!
}

 getToDaChoppa;


#2

You need to call your function with parens after like this:

getToDaChoppa();

#3

1-Keep it to "true" Like this:

2-

After consoling change the value of boolean to false like this :

do { 
     console.log ("We at 'Da choppa since we 'Da realest!")
     TheTrill = false;
     };

3-Now write
while(TheTrill === true)

DOnt do anything on it and it will work fine


#4

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