In JavaScript create an object called a monster class. The monster class should have a language argument string and a stomach represented by an array. The monster should support functions eat() and speak(). Class notation is needed to define the Monster's object interface. The eat() function will store whatever argument is passed to it and return what it has eaten. The speak() function will return the string passed to it.
After completing the above
Great an object called Gremlin that extends the Monster interface and takes the same argument.
The gremlin should:
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here