forked from iDTech-Neha/iDTech_JavaScript_Coding
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstory_time.js
More file actions
23 lines (23 loc) · 1.1 KB
/
story_time.js
File metadata and controls
23 lines (23 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// TODO: Create 4-String variables to introduce develop your story.
// YOUR CODE GOES HERE
let title = 'Survival Of The Fittest';
let myName = 'bruh';
let country = 'BruhBruhLand';
let opening = "You, " + myName + " are lost in the wilderness of " + country;
// TODO: Create 3-String variables to set the time period of your story or discuss other number elements.
// YOUR CODE GOES HERE
let height = "6 4"
let timeStuckInTheWild = "9324983248"
let year = "2022.012391049"
// TODO: Create 1-Array variable to show a collection of items your character might have.
// YOUR CODE GOES HERE
let currentItems = ['knife', ' hand sanitizer', ' flashlight', ' bug spray', ' lighter'];
// TODO: Create 1-Boolean variable to demonstrate a true or false scenario.
// YOUR CODE GOES HERE
let isAlive = true;
// TODO: Print your story to the console.
// YOUR CODE GOES HERE
console.log(opening);
console.log("Standing at " + height + " with " + timeStuckInTheWild + " years stuck here" + " in the year " + year);
console.log("wWth the following items of a " + currentItems);
console.log("Welcome to " + title + ", How will you survive!");