forked from cmccarthy15/te2018grade9term1
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfunctions1.js
33 lines (20 loc) · 927 Bytes
/
functions1.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
const READLINE = require("readline-sync");
// **** Problem 1: printMessage() ****
// Write a function that prints any message you want.
// **** Problem 2: printFiveMessages() ****
// Write a function that calls printMessage() five times.
// **** Problem 3: getUserInput() ****
// Write a function that asks the user if they'd like to print your message
// once or five times. Then call one of the two functions above based on
// what the user decides.
// **** Problem 4: printGreeting() ****
// Write a function that prints a greeting message to the user.
// **** Problem 5: printClosing() ****
// Write a function that prints a goodbye message to the user.
// **** Problem 6: run() ****
// Write a function that runs the whole program by calling functions in this
// order:
// 1) printGreeting()
// 2) getUserInput()
// 3) printClosing()
// When finished, call your run() function below to run the whole program!