Jump to content

Codecademy help

Go to solution Solved by GreezyJeezy,
4 minutes ago, unknownindividual said:

Its the same thing

Code.png

Still doesnt work

after the rare 10/10 you need to put a ; so like this 

 

var feedback = prompt("rate your game 10 out of 10");

 thats how it should be 

1 minute ago, Gachr said:

Wait... Does codecademy really teach JS without semicolons? It's worse than I thought...

no it doesn't. It's actually not that bad though it does mess up a little. like at one part it will teach you to do functions like this.
 

var function1 = function(){
//stuff
}

then change to

function function1(){
//stuff
}

but it doesn't actually tell you what the difference between them is or how they could be used.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
https://linustechtips.com/topic/603799-codecademy-help/#findComment-7827163
Share on other sites

Link to post
Share on other sites

28 minutes ago, vorticalbox said:

no it doesn't. It's actually not that bad though it does mess up a little. like at one part it will teach you to do functions like this.
 


var function1 = function(){
//stuff
}

then change to


function function1(){
//stuff
}

but it doesn't actually tell you what the difference between them is or how they could be used.

Well, the lack of semicolons can mess up a lot. Also, that function thing is really weird, if one of them is the "right" way, then it's the one they started with but then stopped using.

Link to comment
https://linustechtips.com/topic/603799-codecademy-help/#findComment-7827239
Share on other sites

Link to post
Share on other sites

51 minutes ago, Gachr said:

Well, the lack of semicolons can mess up a lot. Also, that function thing is really weird, if one of them is the "right" way, then it's the one they started with but then stopped using.

neither are the right way they are just different.

I first is parsed when it gets to that line where as the second is parsed at the start.

For example
 

if(check)
{

  function doodoo()
  {
    //stuff
  }
}else
{

}

The function would be available regardless of the check. 

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
https://linustechtips.com/topic/603799-codecademy-help/#findComment-7827413
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×