forked from truecodersio/JavaScript_Variables
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
33 lines (26 loc) · 678 Bytes
/
app.js
File metadata and controls
33 lines (26 loc) · 678 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
console.log("Hello World!\n==========\n");
console.log(
"Follow the steps in the README.md file to complete the exercises:\n==========\n"
);
// Exercise 1
let firstName = "Daniel";
let lastName = "Castel De Oro";
var age = 35;
// Exercise 2
let fullName = firstName + " " + lastName;
console.log(fullName);
let fullNametemp = `${firstName} ${lastName}`;
// Exercise 3
let city = `Highlands Ranch`;
let passtime = `Being with family`;
let myStory = `Hell my name is ${fullName}, I'm ${age}, and I love ${passtime}.`;
console.log(myStory);
for (let i = 0; i < age.length; i++) {
console.log(i);
}
if (age < 3) {
console.log("hello");
}
else{
console.log("no");
}