#Javascript Quiz - Sept 15
##Questions
-
Make a
Person
constructor with attributes:name:string
,height:string
,age:number
,sleeping:boolean
. -
Add prototype methods to
person
:eat
,sleep
, andwakeUp
. (Thesleep
andwakeUp
methods should togglesleeping
totrue/false
, andeat
should return an eating noise.) -
Make a
Student
prototype that inherits fromperson
and has the additional attribute ofstudying:boolean
. -
Add methods to
Student
calledstudy
, andstopStudy
to togglestudying
-
Override the
sleep
method onstudent
to only runsleep
ifstudying
isfalse
.