دنبال کننده ها

۱۳۹۶ آذر ۱۰, جمعه

javascript - Why am I getting NaN for this variable?

[ad_1]



Anyone know why the bigNumberB variable is returning Not a number? I'm new to java and messing around with functions and I can't see what I'm doing wrong here but I'm sure its something simple. Thanks, I am getting 24, 24, NaN



function mathEquation(moja, mbili, tatu, tano) 
var value = moja * mbili * tatu * tano;
console.log(value);


mathEquation(1, 2, 3, 4);

function inceptEquation(sita, tisa)
var bigNumber = mathEquation(1, 2, 3, 4);
console.log(bigNumber);
var bigNumberB = sita + tisa + bigNumber;
console.log(bigNumberB);


inceptEquation(11, 23);



[ad_2]

لینک منبع