I\'m self-teaching myself JavaScript and out of curiosity I\'m wondering what is the proper way of returning a value from one function to be used in another function. For ex
You can do this for sure. Have a look below
function fnOne(){ // do something return value; } function fnTwo(){ var strVal= fnOne(); //use strValhere alert(strVal); }