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
24 lines (20 loc) · 628 Bytes
/
app.js
File metadata and controls
24 lines (20 loc) · 628 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
console.log("Hello World!\n==========\n");
console.log(
"Follow the steps in the README.md file to complete the exercises:\n==========\n"
);
// Exercise 1
const firstName = 'John';
let lastName = 'Ward';
var age = 30;
// Exercise 2
let fullName = firstName + ' ' + lastName;
let altFullName = `${firstName} ${lastName}`;
console.log(fullName);
console.log(altFullName);
// Exercise 3
let city = 'Birmingham';
let pastTime = 'walking';
let myStory = `Hi, as you might have already guessed I am ${fullName}.
I'm currently living relatively close to ${city},
and my favorite past time is ${pastTime}.`;
console.log(myStory);