Content deleted Content added
Ehsanamini (talk | contribs) |
Ehsanamini (talk | contribs) |
||
Line 1,479:
console.log(gcd(60, 40)); // 20
//In the absence of parentheses following the identifier 'gcd' on the RHS of the assignment below,
var mygcd = gcd; // mygcd is a reference to the same function as gcd. Note no argument ()s.▼
//'gcd' returns a reference to the function itself without invoking it.
▲
console.log(mygcd(60, 40)); // 20
</syntaxhighlight>
|