While I am running the following piece of code in Chrome's developer tools javascript console,
var solution = 1;
for(var i = 1; i <= 12; ++i)
solution *= i;
console.log(solution.toString());
I get the following output:
479001600
undefined
When I remove the last line, that is console.log(solution.toString());
, I get just 479001600
. What happens?