So let's say I have the following code:
function c (f,i) {
let x = i;
if (f(x,i)){
x--;
}
if (f(x,2)) {
console.log(1);
}
else {
console.log(2);
}
}
what exactly happens in the if statements, I don't understand the syntax behind it.
f is no function, it's a variable, so what happens here? does it equal to f * ( x * i)? whats the operands behind this syntax.
Thanks in advance
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…