Javascript set-ers


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


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.



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