forked from Hlight/coding-bootcamp-post-bootcamp
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathchallenge-prompt.js
More file actions
executable file
·73 lines (26 loc) · 1.76 KB
/
challenge-prompt.js
File metadata and controls
executable file
·73 lines (26 loc) · 1.76 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
70
71
72
73
// Call Back with Minions
// create a function "minionOne" that takes a callback and a string as arguments
// inside the function, execute the callback with the string as the argument
// ===================== Code Starts Here =====================
// ===================== Code Ends Here =====================
// call "minionOne" and pass it the function "minionTwo" and
// a string of "Have you seen Gru?" as arguments
// ===================== Code Starts Here ===================
// ===================== Code Ends Here =====================
// create a function "minionTwo" that takes a string as an arguments
// and console logs the string
// ===================== Code Starts Here =====================
// ===================== Code Ends Here =====================
// create a function "minionThree" that takes in two arguments a callback function and a boolean
// if the boolean was true, console log "I found Gru\n -------------\n" and then execute the callback function
// if the boolean wasn't true, console log "Still looking for Gru\n -------------\n"
// ===================== Code Starts Here =====================
// ===================== Code Ends Here =====================
// create a function "callBacksAreFun" that takes no arguments and
// console logs "Hip Hip Horray!\n -------------\n"
// ===================== Code Starts Here =====================
// ===================== Code Ends Here =====================
// Call the "minionThree" function and pass it the "callBacksAreFun" function
// and the boolean true as arguments
// ===================== Code Starts Here =====================
// ===================== Code Ends Here =====================