dev2 – Closures and keyword ‘this’


  • ADV Section 11, videos 117 – 131
  • Exercises files to publish on your server as HTML / JS pairs
    • closure-code-a-long.html / closure.js
    • closure-exercise.html / closure-exercise.js (instructions)
    • this-code-a-long.html / this.js
    • this-exercise.html / this-exercise.js (instructions)

Blogging Questions

Declaring a new object creates a new instance of this. Describe how you can access this within an object. Use a code snippet to illustrate your example. It should have an object with a method that when called returns the object itself.

Leave a comment

Your email address will not be published. Required fields are marked *