-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathexercise.js
More file actions
59 lines (36 loc) · 1.46 KB
/
exercise.js
File metadata and controls
59 lines (36 loc) · 1.46 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
/*Congratulations Prepsters, you've been selected for a top secret mission. Should you choose to accept it, do a git fetch and a git pull to find your specific mission. After you complete your mission, commit your work and do a pull request.
This repo will self-destruct in five seconds. Good luck!*/
/*Mission 1:
Team Member: Sean
Create a function that will sum three number values.*/
/*Mission 2:
Team Member: Yao
Create a function that will concatenate two string values*/
/*Mission 3:
Team Member: Tyler
Create a function that will add a new element into an array.*/
var favoriteFoods = ["Ramen", "Sushi", "Curry"];
console.log(favoriteFoods);
favoriteFoods.push("Loco Moco");
console.log(favoriteFoods);
/*Mission 4:
Team Member: Reese
Create a function that will verify entry for a club. Patrons must be 22 and over to be admitted into the club.*/
/*Mission 5:
Team Member: Jace
Create a function that will convert dollars to yen based on today's foreign exchange rate.*/
/*Mission 6:
Team Member: Cyrus
Create a function that will convert miles to kilometers.*/
function milesToKilometers(miles) {
return miles * 1.60934;
}
/*Mission 7:
Team Member: Ben
Create a function that will check integers and return true for even and false for odd.*/
/*Mission 8:
Team Member: May
Create a function that will check your budget. Create the following return statements based on the budget amount:
<20 => "Need to hustle"
<50 => "Keep coding"
>50 => "Donut King!"*/