10 4 1 2 using return is optional 2f 2f functions

Solutions on MaxInterview for 10 4 1 2 using return is optional 2f 2f functions by the best coders in the world

showing results for - "10 4 1 2 using return is optional 2f 2f functions"
Niko
06 Oct 2018
1/*As we saw with our initial examples of function definitions, not every
2function explicitly returns a value. At its simplest, a function can 
3even have an empty body.*/
4
5function doNothing() {}
6
7/*As written, this function is completely valid, but useless. Although 
8the function doesn't have a return statement, JavaScript still 
9implicitly returns a value.*/