Javascript – Why the first code snippet can solve the stale closure and the second one can't?
It feels like there is nothing difference between the first one and the second one. But the first one code snippet can solve the stale closure. So, why the second one can't? I really can't figure it out. Can anyone…