Professional Documents
Culture Documents
By the end of the ajs module, you should be able to do all of the following tasks on your own,
without using the internet or referring to previous solutions or any other help.
In fact you should not wait until the end of the module. As and when the relevant lectures are
over, you should check which of these tasks you are able to do with that knowledge.
Task 1: Prototyping
1. Create an object with only properties.
2. Create a function object with properties and methods
3. Add more properties to both of the above mentioned objects using prototypes.
4. Create a new Instance of the above objects.
5. Call the new properties added by prototyping.
Task 2: Able to use prototypes and prototypal inheritance
1. Create an object person with some properties or methods like canTalk, canFly
2. Create another object coder with some properties or methods like canCode and
canCook.
3. Inherit the properties and methods of the person object to the coder object using
prototypes.