-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstory_time.js
32 lines (28 loc) · 1.37 KB
/
story_time.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// TODO: Create 4-String variables to introduce develop your story.
// YOUR CODE GOES HERE
let welcomesegment = "Dear, welcome to my story!";
let welcomesegment2 = "This is a story about ";
let welcomesegment3 = "One of them was ";
let welcomesegment4 = "And the other was ";
// TODO: Create 3-String variables to set the time period of your story or discuss other number elements.
// YOUR CODE GOES HERE
let stringsegment = "2 goblins";
let stringsegment2 = "red";
let stringsegment3 = "blue";
// TODO: Create 1-Array variable to show a collection of items your character might have.
// YOUR CODE GOES HERE
let arraysegment = [
["Large Teeth", "Red glowing eyes", " horrifieng"],
["loving", "cute", "cuddly"],
]
// TODO: Create 1-Boolean variable to demonstrate a true or false scenario.
// YOUR CODE GOES HERE
let bolleansegment = true;
// TODO: Print your story to the console.
// YOUR CODE GOES HERE
console.log(welcomesegment);
console.log(welcomesegment2 + stringsegment);
console.log(welcomesegment3 + stringsegment2);
console.log(welcomesegment4 + stringsegment3);
console.log("The goblins had " + arraysegment[0][0] + " and " + arraysegment[0][1] + " and everyone thought they were " + arraysegment[0][2]);
console.log("Since the people did not know that on the inside the golings were " + arraysegment[1][0] + " and " + arraysegment[1][1] + " and most of all " + arraysegment[1][2]);