1var myNumber = 7;
2var formattedNumber = ("0" + myNumber).slice(-2);
3console.log(formattedNumber);
1// Numbers:
21;
3-99;
40.345345;
5
6//Making variables with let:
7let numberOfFriends = 1;
8
9//Incrementing:
10numberOfFriends += 3; //numberOfFriends is now 4
11
12// Variables with const
13const minimumAge = 21; //CANNOT REASSIGN!
14
15//Booleans - true or false values
16true;
17false;
18let isHappy = true;
19
20//Naming Conventions
21// Use upper camel-cased names:
22let numberOfChickens = 6; //GOOD
23// NOT THE JS WAY:
24// let number_of_chickens = 6;