-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstarter.js
More file actions
70 lines (35 loc) · 1.84 KB
/
starter.js
File metadata and controls
70 lines (35 loc) · 1.84 KB
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
68
69
/*
Instructions: Paste this in JSBIN or you can fork and clone in Cloud 9
1. Ask the user for their full (first and last) name. Store it in a variable and then print it.
2. Put the first name in its own variable. Repeat for the last name. Print each variable.
3. Print the last letter of their first name and the first letter of their last name.
4. Add the following to the beginning of the first name variable: "Your name is ". Print it.
5. Add the following to the end of the last name variable: "!". Print it.
6. Concatenate the first name and the last name together and store it in a new variable called x. Print it.
7. Ask the user how old they are. Store it in a variable and then print it.
8. Add the following to the end of variable x: "And you're [age] years old!". Print x.
*/
console.log("**********START OF EXERCISE 1**********");
// Your code goes here
console.log("**********END OF EXERCISE 1**********");
console.log("**********START OF EXERCISE 2**********");
// Your code goes here
console.log("**********END OF EXERCISE 2**********");
console.log("**********START OF EXERCISE 3**********");
// Your code goes here
console.log("**********END OF EXERCISE 3**********");
console.log("**********START OF EXERCISE 4**********");
// Your code goes here
console.log("**********END OF EXERCISE 4**********");
console.log("**********START OF EXERCISE 5**********");
// Your code goes here
console.log("**********END OF EXERCISE 5**********");
console.log("**********START OF EXERCISE 6**********");
// Your code goes here
console.log("**********END OF EXERCISE 6**********");
console.log("**********START OF EXERCISE 7**********");
// Your code goes here
console.log("**********END OF EXERCISE 7**********");
console.log("**********START OF EXERCISE 8**********");
// Your code goes here
console.log("**********END OF EXERCISE 8**********");