Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

use variable in function returned by another function

function firstFunction() {
  // do something
  return "testing 123";
}

var test = firstFunction();  // this will grab you the return value from firstFunction();
alert(test);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #variable #function #returned #function
ADD COMMENT
Topic
Name
6+6 =