Exercise 1: Who's the Teacher?
In this exercise, you have to implement prototypal inheritance between two objects, Person and Teacher.
We'll cover the following...
Problem Statement
In this exercise, two object literals, Person
and Teacher
are given.
Define the following properties in the Person
object:
-
name
and set is asAmy
. -
age
...