Javascript Object-Oriented Programming (1): Encapsulation

Javascript Object-Oriented Programming (1): Encapsulation Original author: Ruan Yifeng Date: May 17, 2010 What is the hardest part of learning Javascript? I think Object (object) is the most difficult. Because the Javascript Object model is very unique and different from other languages, it is not easy for beginners to master it. The following are my… Continue reading Javascript Object-Oriented Programming (1): Encapsulation

Learn Javascript Closure (Closure)

Learn Javascript Closure (Closure) Original author: Ruan Yifeng Date: August 30, 2009 Closure is a difficult point of the Javascript language, and it is also its characteristic. Many advanced applications rely on closures to achieve. The following are my study notes, which should be very useful for Javascript beginners. One, the scope of variables To… Continue reading Learn Javascript Closure (Closure)