-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
37 lines (27 loc) · 1004 Bytes
/
script.js
File metadata and controls
37 lines (27 loc) · 1004 Bytes
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
33
34
35
36
37
let quote = "If you believe, nothing is impossible";
document.getElementById("show").innerHTML= quote;
// Javascript Code
let x = "42" + 7;
let y = "42" - 7;
document.getElementById("show1").innerHTML = "x =" +" " +x;
document.getElementById("show2").innerHTML = "y =" +" "+ y;
let number1 = "coding is cool";
let number2 = "coding is trendy and fun";
console.log("Number 1 = " + " " + number1);
console.log("Number 2 = " + " " + number2);
let firstMeal = "Salad";
let secondMeal = "Pasta";
let thirdMeal = "Jollof Rice";
let fourthMeal = "Ice Cream";
console.log("First Meal =" + " " + " " + firstMeal);
console.log("Second Meal =" + " " + " " + secondMeal);
console.log("Third Meal =" + " " + " " + thirdMeal);
console.log("Fourth Meal =" + " " + " " + fourthMeal);
//1.
let x2 = 31 + 7;
// enter your guess where the '0' is on the next line
let guessOne = 0;//WRITE ANSWER =
console.log("x2 =" + " " + x2);
//2.
let y2 = 8;
// This console.log method will print x value which is 31+7 = 38