yes, print is supposed to see the number and thats what it does. for loop increase calls increase 200 times and it increase number value by 200 no, cuz number variable scope is not a set function block, the scope of number is manager function block, so manager and all of the print, set, increase and decrease using same number from the manger function scope. just can't understand your last question. Don't dive so fast! you need to learn more about programming and syntax before learn how closure works. that's what your question says.
I was hoping for more explanation on this please. I didn't say it's wrong. I said I don't understand it.
Обсуждают сегодня