Ask coding questions

← Back to all posts
1
JS ASSIGNMENT 14
ayormeday (7)

i need help with js assignment 14 part 1
this is what i did
// 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 too meet you!.
}

// Please write your code in the lines above
return UserClass

Answered by ayormeday (7) [earned 5 cycles]
View Answer
Commentshotnewtop
2
ayormeday (7)

SEEN MY ERROR, i wrote too instead of to

1
mwilki7 (111)

@ayormeday
Nice!
It's always the little things that cause errors.