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
45 lines (32 loc) · 718 Bytes
/
app.js
File metadata and controls
45 lines (32 loc) · 718 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
38
39
40
41
42
43
44
45
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 = "Joseph";
let lastName = "Heitzmann";
var age = "23";
// Exercise 2
let fullName = "Joseph Heitzmann";
// Exercise 3
let myStory =
"Hello! My name is ${josephHeitzmann}. I live in ${southMississippi}. I play ${drums} in my free time.";
// const y = x++;
// //=
// const y = x;
// x = x + 1;
// const y = ++x;
// // =
// x = x + 1;
// const y = x;
function hello () {
let x = 1;
console.log(x);
}
function hello2() {
let x = 2;
if (x === 2) {
let y = 3;
}
console.log(y);
}