-1
var const1 = function (a,b,c,d){
return (a*b+c-a)/d; {
const1(10, 2, 2, 10, 2);
console.log('a = ' + const1.a);
console.log('b = ' + const1.b);
console.log('c = ' + const1.c);
console.log('d = ' + const1.d);
Why the values shown through the console.log
are returned as undefined
and not as the values that are stored in the variables.
Did any of the answers solve your question? Do you think you can accept one of them? Check out the [tour] how to do this, if you haven’t already. You would help the community by identifying what was the best solution for you. You can accept only one of them. But you can vote on any question or answer you find useful on the entire site (when you get enough score, it will happen as soon as you accept).
– Maniero