First post; did a little digging but can't find what I'm looking for (maybe just too inexperienced with the site). Hopefully, you guys can help:
--EDIT--
Researching after discussion shows that what I was looking for was how to use return
to pass a value resulting from one function, to another.
How does this relate to global/local scope? Is a value returned to a function from another local or global scope? It's local to it's original function, but accessible to global?
- Example has been changed*
var addition = function add(a, b) {
var addTotal = (a+b);
return addTotal; }
var multiply = function(c) {
var multiplyTotal = c * 2 ;
return multiplyTotal; }
multiply(addition(2,3));