Explain, please, why the code does not work. He gives out NaN:
function sum (a, b) { var c = this.a + this.b; return console.log(c); } sum(3+3); I tried and so, it still does not work:
function sum (a, b) { var c = a + b; return console.log(c); } sum(3+3); What I can not understand?
function sum1 (a, b) { var c = a + b; return c; } console.log(sum1(3, 3));function sum1 (a, b) { var c = a + b; return c; } console.log(sum1(3, 3));- spectre_it