82
rated 0 times
[
89]
[
7]
/ answers: 1 / hits: 127884
/ 11 Years ago, wed, october 30, 2013, 12:00:00
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 example:
function firstFunction() {
// do something;
return somevalue
}
So how do I set up the second function to use somevalue? Thanks.
More From » javascript