Do I have to return something in javascript function?
Do I have to return something in javascript function?
No; Javascript functions are not required to return a value.
If you call a function that doesn't return
a value, you'll get undefined
as the return value.