scrimba
Intro to JavaScript
Challenge: If Statement Olympics - Part 1
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Challenge: If Statement Olympics - Part 1
AboutCommentsNotes
Challenge: If Statement Olympics - Part 1
Expand for more info
index.js
run
preview
console
//Assignment - If Statement Olympics - Bronze Medal

//1 - Using the below object, write an if statement that prints <theNameOfThePersonInObject> is allowed to go to the movie if they are old enough (18 or older), and the opposite if they are not older than 18.

//2 - Using that same object, only allow them into the movie if their name starts with "B"

//3 - Using that same object, only allow them into the movie if their name starts with "B" and they are older than 18.


var person = {
name: "Bobby",
age: 12
}
Console
/index.html
-5:51