File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Basic Data Types Activity Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ // TODO: Create 4-String variables to introduce develop your story.
2+ // YOUR CODE GOES HERE
3+ let greeting = "Welcome to my Jungle!" ;
4+ let name = 'Kala' ;
5+ let animal = 'Panther' ;
6+ let role = 'Queen of the Jungle' ;
7+
8+ // TODO: Create 3-String variables to set the time period of your story or discuss other number elements.
9+
10+ let age = 23
11+ let year = 1299
12+ let century = 13
13+
14+ // TODO: Create 1-Array variable to show a collection of items your character might have.
15+
16+ let animalsAround = [ 'monkey' , 'bear' , 'snake' , 'rabbit' ] ;
17+
18+ // TODO: Create 1-Boolean variable to demonstrate a true or false scenario.
19+
20+ let hasKids = false ;
21+
22+ // TODO: Print your story to the console.
23+ console . log ( greeting + "My name is " + name + "." ) ;
24+ console . log ( "I'm a " + animal + "." ) ;
25+ console . log ( "I'm the " + role + "." ) ;
26+ console . log ( "You have traveled back in time to " + year + ". The " + century + "th century." ) ;
27+ console . log ( "Do any of you humans have a question?" ) ;
28+ console . log ( "Me: Yes do you have any kids?" ) ;
29+ console . log ( "Kala: " + hasKids + "\n" ) ;
30+ console . log ( "You guys are free to roam around, just be careful of " + animalsAround [ 2 ] + " he tends to be unforgiving to people he doesn't know." ) ;
You can’t perform that action at this time.
0 commit comments