1parseInt(value);
2
3let string = "321"
4console.log(string); // "321" <= string
5
6let number = parseInt(string);
7console.log(number) // 321 <=int
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;