Lesson 5 variables?


#1

I have got to the bit with:

boolean isFun;

and I cant get past this point I have tried doing

boolean isFun = true;

plus many other things but this does not seem to work I would love some help :smile:)


#2

This is correct. Have you tried the Run button a few times?


#3

I have tried it and it gave me the code because i tried it so many times


#4

Thanks for the help AR


#5

Maybe it is stuck, refresh/reload the web page? logout/in again?

If none of that works, could you give me a screenshot?


#6

The variable is already set at the top of the page;
all you need to do is write the variable name and equal it to whatever.

isFun = true

It's just like the integer; you if its already set you dont have to write "int" again.

Hope this helps!!