function countDown(num) { if(num === 0) { console.log('Finished ', num); } else { countDown(num-1); console.log('FINISHED ', num); } } countDown(3); -------------------------------------------
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter