Now, I'm doing the tutorials, and it tells me to write these lines of code;
secret_number = 42 guess = ask " Guess the number!" if guess == secret_number alert "Correct!" else alert "Incorrect!" end
Now, on the line that says 'if guess == secret_number', if I have the double equal signs as shown, then every single input turns up as incorrect. However, if I have only one equal sign, then every input turns up as correct.
Now, this is the exact code I was told to put in by the tutorial, so I don't exactly know what's wrong with it... but the compiler just doesn't want to use it.


Sign In
Create Account

Back to top









