hi everyone and have a nice day!
im pretty new to javascript as well as propramming. (been for only 1 month)
im practicing this question...
For further actions, you may consider blocking this person and/or reporting abuse
Hi, maybe I can help, you can check the live version here codesandbox
Using a
whileloop to generate a number of eaten cupcakes smaller than the amount made is unnecessary, it's better to generate the amount of cupcakes and then use that number as the ceiling for the amount of eaten cupcakes.Yes it's make sense to use start-end range for eaten and or made cakes and should be better. Already updated my code on sandbox
Hi Sir, i checked the code you guided me, it seems not working somehow. and im just getting to While-operation and i have not known about $, then i got confused. can you make it simplified ?
It's "template literal string in javascript" if you want to look at it. But you can simply change with + for join string like this: