This forum is now read-only. Please use our new forums! Go to forums
12/15 I don't understand
Please help me.
Answer 535288ab631fe916bb001a3c
1 vote
You can have your program do different things depending on whether a condition of your choosing is true
or false
.
Here is how if/else statements work:
if (this condition is true) {
do this thing;
} else {
do this other thing;
}
Here is the example for this exercise. It says that if 10 < 3 is true
then your shapes will be circles, otherwise they will be squares.
if (10 < 3) {
bubbleShape = "circle";
} else {
bubbleShape = "square";
}
You task is to change that code so that your shapes are circles.
Are you able to see what needs to be done now?
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency