Answer the question
In order to leave comments, you need to log in
Why does a function return NaN in JS?
there is a function:
function intDiv(x,y){
return [(x-x%y)/y,x%y];
};
console.log(intDiv(2/2));
var a = 2;
var b = 2;
console.log(intDiv(a/b));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question