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
To copy the return value of any javascript, we can use inbuilt copy() method.
copy()
you can use any expression, function, etc find some examples below
a = 245; copy(a);
a = function() { return "Hello world!" } copy(a());
Official Doc for reference