Getting NaN after calling simple function

Hello Guys,

I am getting NaN after calling function. The code is pretty simple

function test(x,y) {
    return y - x;
    }

test(10, 30);

Please help me.

Hi @giga5067488465, welcome to the forums!

When I run your function, I get this:

image

Is this all your code?

Yes the same code…i dont know what wrong in my console…

What console are you using?