-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathvariables.js
67 lines (59 loc) · 1.77 KB
/
variables.js
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* Part 1: Creating Variables and Constants
* In this file you should define the following variables with the exact names
*
* 1. fullName -> assign it a value of your full name
* 2. yearOfBirth -> assign it a value of your year of birth
* 3. hobby -> assign it a value of your favorite hobby
* 4. funFact -> assign it a value of some fun fact about yourself
* 5. image -> assign it a value of a url of your image or ant image that represents you online
*/
// Part 1 answer 👇🏻 ...
/**
* Part 2: String Interpolation
* Create the following new variables that interpolate
* the variables defined above into strings.
*
* 1. fullNameString -> assign it to: "My name is {fullName}""
* 2. ageString -> assign it to: "I am {YOUR_AGE}"", and make sure you calculate your age from your year of birth
* 3. hobbyString -> assign it to: "My hobby is {YOUR_HOBBY}""
*
* Uncomment the following lines and start interpolating.
* You can uncomment a line by removing the // at the start
*/
// const fullNameString = `My name is ${}`;
// const ageString =
// const hobbyString =
/**
* Part 3: Re-assignment
* Increment your hacker score
* */
let stars = 0;
function incrementBy1() {
// Increment stars by 1 👇🏻
}
function decrementBy1() {
// decrement stars by 1 👇🏻
}
function incrementBy2() {
// Increment stars by 2 👇🏻
}
function decrementBy2() {
// decrement stars by 2 👇🏻
}
// TODO: Uncomment these variables as you work on them
// Make sure they're all uncommented before you push your solution!
module.exports = {
// fullName,
// yearOfBirth,
// hobby,
// funFact,
// image,
// fullNameString,
// ageString,
// hobbyString,
incrementBy1,
incrementBy2,
decrementBy1,
decrementBy2,
};