Answers for "html javascript how to get a return value"

0

what does return do in javascript

function add(a, b) {
  return a + b; //Return stops the execution of this function
}

var sum = add(5, 24); //The value that was returned got but inside the variable sum
Posted by: Guest on May-20-2020

Code answers related to "html javascript how to get a return value"

Code answers related to "Javascript"

Browse Popular Code Answers by Language