Skip to content

Instantly share code, notes, and snippets.

@tsh-code
Created May 12, 2019 18:04
class ClubEntry {
isOldEnough (age) {
return age >= 21
}
fbList (time, isPresent) {
if (time <= 10 && isPresent === true) {
return 'free'
}
return 'hasToPay'
}
clubEntryPrice (sex, age) {
if (sex === 'female' && age >= 18) {
return 0
} else if (age >= 18) {
return 10
}
return 'noAccess'
}
}
module.exports = { ClubEntry };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment