forked from HackYourFuture/JavaScript1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask3.js
More file actions
19 lines (13 loc) · 674 Bytes
/
task3.js
File metadata and controls
19 lines (13 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//3 Declare a variable x and initialize it with an integer, using these steps:
//3.1 First, Declare your variable x (do not initialize it yet)
//3.2 add a console.log statement that explains in words what you think the value of x is.
//3.3 add a console.log statement that logs the value of x.
//3.4 Now initialize your variable x with an integer.
//3.5 Next, add console.log statement that explains what you think the value of x is.
//3.6 add a console log staement that logs the value of x.
let x ;
console.log ("the value of my variable x will be:an Integer");
console.log (x);
x = 8 ;
console.log ("the value of my variable x will be:an Integer");
console.log (x);