FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Basic-To-Advanced-JavaScript/Switch/app.js at main · MaazWebDev/Basic-To-Advanced-JavaScript · GitHub
MaazWebDev
/
Basic-To-Advanced-JavaScript
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Basic-To-Advanced-JavaScript
/
Switch
/
app.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (27 loc) · 755 Bytes
Breadcrumbs
Basic-To-Advanced-JavaScript
/
Switch
/
app.js
Copy path
File metadata and controls
30 lines (27 loc) · 755 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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'
)
)
Back
|
FazBrowse Home
|
New Git URL