-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmission.js
107 lines (61 loc) · 2.83 KB
/
mission.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/*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: Tyler
@param Datatype: String
@return Datatype: String
Create a function named weatherReport that takes a parameter weather and returns the following: "Today's forecast is weather." Where your input will replace the weather parameter.
Console.log to see your result.*/
/*Mission 2:
Team Member: Eunice
@param Datatype: String
@param Datatype: Number
@return Datatype: String
Create a function named happyBday that takes two parameters name and age and returns the following: "Happy Birthday name! You look awesome at age!" Where your input will replace the name and age parameters.
Console log to see your result.*/
/*Mission 3:
Team Member: Davis
@param Datatype: Array
@return Datatype: Array
Create a function named doubleUp that takes in a parameter arr and will double the value of each number in the array and returns the array.
Console.log your result.*/
/*Mission 4:
Team Member: Slyvia
@param Datatype: Array
@return Datatype: Array
Create a function named evens that takes in a parameter arr and will sum up only the even indexed numbers in the array and returns a new array.
Console.log your result.*/
/*Mission 5:
Team Member: Roland
@param Datatype: Array
@param Datatype: String
@param Datatype: Array
Create a function named plusOne that takes two parameters arr and str and will add a new string element into an array and will return the array.
Console.log your result*/
/*Mission 6:
Team Member:
@param Datatype: Number
@return Datatype: Number
Create a function named yenConverter that takes a parameter rate and will convert dollars to yen based on today's foreign exchange rate and returns the new yen amount.
Console.log your result*/
/*Mission 7:
Team Member:
@param Datatype: Number
@return Datatype: Number
Create a function named kmConverter that takes in a parameter miles and will convert miles to kilometers and returns the new kilometer amount
Console.log your result.*/
/*Mission 8:
Team Member:
@param Datatype: Number
@return Datatype: String
Create a function named whatToEat that takes in a parameter budget. Create the following return statements based on the budget amount:
<=5 => "Mickey D's"
<=10 => "Panda Express"
>10 => "Peppas"
Console.log your result*/
/*Mission 9:
Team Member:
@param Datatype: Array
@return Datatype: Array
Create a function named countUp that takes in a parameter arr and will add 1 to each number in the array and returns the array.
Console.log you result.*/