JavaScript Algorithm: Birthday Cake Candles

added by JavaScript Kicks
11/29/2019 9:49:02 AM


For today's algorithm, we will create a function called birthdayCakeCandles. To explain the function, let's say you are in charge of the cake for your niece's birthday. You are her uncle and you really don't want to go to her birthday party as that'll mean spending hours in a room full of screaming four to six-year-olds instead of playing video games with your bros at home.