Created
April 30, 2018 21:15
-
-
Save ldco2016/c0c583020eab73903a3d18bc5269cac8 to your computer and use it in GitHub Desktop.
seating capacity JS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set seatingCapacity(newCapacity) { | |
if (typeof newCapacity === 'number') { | |
this._seatingCapacity = newCapacity; | |
console.log(`${newCapacity} is valid input.`); | |
} else { | |
console.log(`Change ${newCapacity} to a number.`) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.