?Am I Close?" ( Javascript)
faziz6006 (2)

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

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

my answer ( it says its wrong?) :

prototype.greeting = function (){

return Hello, it is nice to meet you!;


var prototype = new greeting;

You are viewing a single comment. View All
Answered by vedprad1 (732) [earned 5 cycles]
View Answer
mwilki7 (280)

Make sure you have the right type of quotes surrounding your return statement

faziz6006 (2)

@mwilki7 like this?

return "Hello, it is nice to meet you!";