I have unusual problem.
I don't know how to put into words given operations in JavaScript example.
var FunctionLayer2 = FunctionLayer1(2); //How to put into words this variable assignment and calling FunctionLayer1()
FunctionLayer2(4); //How to put into words calling function from the created variable with output based on the argument from previous call
function FunctionLayer1 (value1) {
console.log(value1);
return (function (value2) {
console.log(value2*value1);
})
}
Sorry for this unusual question but i have found about this functionality recently and couldn't find much about it before.