The webside crashes over and over again at the same point


#1


https://www.codecademy.com/courses/getting-started-v2/2/4?curriculum_id=506324b3a7dffd00020bf661

When i try to click on save and submit the webside crashes. Chrome just tells me that the webside does not respond anymore. I can do other exercises but i cant do Java Script anymore :frowning:
I reopened it mayn times and its always the same.


#2

can you please show me your code??


#3

if (3<2 ) 
{
    console.log("Let's go down the first road!");
}
else     console.log("Hello");  
{
    // What should we do if the condition is false? Fill in here:
    
}

#4

I tried your code in my browser (Google Chrome) and it works fine codesurfer11924. I had this problem with some of my coding. It would not work for a few days for some weird reason but one day it just suddenly worked. If possible I would recommend doing it on a different computer. Usually that seems to pass it because the code is right its just not working on the first computer tired. That is my experience atleast might not be technically correct but thats what I did to solve a similar problem


#5

Alright, thank you very much for your help. I´ll try it later on my Laptop.


#6

write this way

if (3<2 )
{
console.log("Let's go down the first road!");
}
else
{
console.log("Hello");
}

or

if (3<2 )
console.log("Let's go down the first road!");
else
console.log("Hello");

i hope it'll help you :slight_smile:


#7

Oh wow it worked out. Thank you very much!.
Could you explain what i´ve done wrong?


#8

actually nothing :slight_smile:

if (3<2 )
{
console.log("Let's go down the first road!");
}
else console.log("Hello"); //you wrote it here
{

//you should wrote here inside of brackets :slight_smile:
}


#9

ok i got it.... My bad :smiley:

but why did the side crash?


#10

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