The code for 'step 2' of the encapsulation example in instalment 93 of the Programming by Stealth series. Both the data and functions are encapsulated.

This page is intended to be interacted with via the JavaScript console.

Plain Text Output

HTML Output