Albert Ononunu

@albertinospecie (6)
JS Assignment 14: The Class 'prototype'
posted to Ask by Paultheriault

@vedprad1 This is what I did below:

function exerciseOne(UserClass){
// Exercise One: In this exercise you are given a class called UserClass.
// You will be adding a method to the prototype called greeting
// This method will return the string: 'Hello, it is nice to meet you!'
// DO NOT create a new class or object

UserClass.prototype.greeting = function () {
return 'Hello, it is nice to meet you!';
};
}

JS Assignment 14: The Class 'prototype'
posted to Ask by Paultheriault

@vedprad1 I still get the error on my screen "Should add the greeting method to the prototype of UserClass
TypeError: NewUser is not a constructor". What could i be doing wrong?