-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
30 lines (27 loc) · 755 Bytes
/
Copy pathapp.js
File metadata and controls
30 lines (27 loc) · 755 Bytes
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
function sum(a = 0, b = 0) {
var total = a + b
return total
}
var total = sum(30, 20)
function showStatusMsg(status) {
var msgToShow = ''
switch (status) {
case 'pending':
msgToShow = "Your App will be reviewed soon."
break;
case 'approve':
msgToShow = "Congrats!. Your app is approved."
break;
case 'review':
msgToShow = "Your App is in review."
break;
case 'reject':
msgToShow = "Your App is rejected.Plz fix the issues and submit again."
break;
default:
msgToShow = "Your App will be reviewed soon."
break;
}
return msgToShow
}
console.log(showStatusMsg('reject'))