Link Search Menu Expand Document

Return a Value from a Function with Return

Summary

  • A value can be sent out of a function using return.

Final Code

function timesFive(num) {
  return num*=5;
}