JSFiddle - React, Tailwind, and code Playground

by Amal Das

JavaScript

function countDown(n){
console.log(n);
	const newNumber = n - 1;
  if(newNumber>0){
  	countDown(newNumber);
  }
}
countDown(4)