function howMuchILoveYou(nbPetals) {
let phrase = {
0: "not at all",
1: "I love you",
2: "a little",
3: "a lot",
4: "passionately",
5: "madly"
}
return phrase[nbPetals%6]
}
const howMuchILoveYou=n=>['not at all','I love you','a little','a lot','passionately','madly'][n%6]
To embed this project on your website, copy the following code and paste it into your website's HTML: