const test = (n) =>{
let result = n;
while (result > 1) {
AmountNumber(result);
}
}
const AmountNumber = (n) =>{
n--;
return n;
}
test(20);
http://pythontutor.com/visualize.htm...rjs=iFg0cG3uKI
Error: stopped after running 1000 steps and cannot display visualization. Shorten your code, since Python Tutor is not designed to handle long-running code.
почему так? Вроде простая функция берет число n и с помощью другой функции производит n-- пока while(result >1)