UNPKG

a-cool-package

Version:

It's actually lit

27 lines (25 loc) 749 B
const superCrazyAmazingFunction = (theNameOfYourMum, niceness) => { let endString = theNameOfYourMum switch (niceness) { case (niceness > 10): endString += "is the most amazing person on the world!!!! <3333" break; case (niceness > 8): endString += "is someone that anyone likes to see :)" break; case (niceness > 5): endString += "is a mum, thats already amazing by itself but average" break; case (niceness > 3): endString += "could be better" break; case (niceness > 0): endString += "not nice" break; default: endString += "a bad person and it's better without her" break; } return endString } export default superCrazyAmazingFunction