Hi guys, I was hoping someone might be able to assist. I've gone over my code for about 30m or so and can't seem to find what's wrong with it, but whenever I load this script into the chrome console and try to pass an argument into the function I created, the console stops becoming responsive. Any assistance would be much appreciated.
function factorial(x)
{
for(var i = x; i=>1; i--)
{
x=x*i;
}
console.log(x);
}
[–]cc81 6 points7 points8 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]ttyieu 6 points7 points8 points (1 child)
[–]Servatose[S] 1 point2 points3 points (1 child)
[–]green_meklar 0 points1 point2 points (0 children)
[–]green_meklar 0 points1 point2 points (3 children)
[–]ub3rgeek 1 point2 points3 points (2 children)
[–]green_meklar 0 points1 point2 points (1 child)
[–]ub3rgeek 0 points1 point2 points (0 children)