FACG5 / Later-team

0 stars 0 forks source link

why did you declare objct outside ? #14

Open RamyAlshurafa opened 6 years ago

RamyAlshurafa commented 6 years ago

https://github.com/FACG5/Later-team/blob/aaf09e86bb9ef670f8be49789e2e8d704cffb617/puplic/js/index.js#L4-L13 we learned that every nested scope can reach the contained scope so there is no need to declare objct outside to reach it because cb(objct,count); inside nested scope