Javascript set-ers


#1

Will not the parameter for the set function in this case be:

set seatingCapacity(newCapacity) { code },

and not?:

set seatingCapacity(seatingCapacity) {
if (typeOf newCapacity === ‘number’) {
this._seatingCapacity = newCapacity;
} else {
console.log(Change ${newCapacity} to a number.)
}
},

regards Jens


#2

Please submit a bug report from this lesson. You can paste in your message from above.

If you want this post to be acknowledged, please include a link to the exercise so I can move it into Platfrom Problems.

Thanks.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.