how the return statement works n javascript code example
Example: return statement in javascript
// --- The following return statements all break the function execution: ---
return;
return true;
return false;
return x;
return x + y / 3;
// --- The following return statements all break the function execution: ---
return;
return true;
return false;
return x;
return x + y / 3;