happyNewYear(10); function happyNewYear(count) { for (let index = count; index >= 1; index--) { console.log(index); } console.log("Happy new year!"); }
To embed this project on your website, copy the following code and paste it into your website's HTML: