0

Function return

When I use return in function doesn't show result But it show if I use another way console. log alert... etc https://code.sololearn.com/Wv48USfBHnh5/?ref=app

10th Aug 2020, 9:27 AM
Hafsah Rizg
Hafsah Rizg - avatar
2 Answers
+ 9
Return doesn't prints the output, you need console.log for printing the value that is returned to the function call
10th Aug 2020, 9:29 AM
Abhay
Abhay - avatar
0
Thank you
10th Aug 2020, 9:54 AM
Hafsah Rizg
Hafsah Rizg - avatar