JSFiddle - React, Tailwind, and code Playground

JavaScript

function test() {
	 // This will throw an error since only the variable hello is hoisted and not its value
  
  // Function expression
	var hello = function() {

  if(arguments[0]<5)
  {
		console.log('hello world!');  
    test(++arguments[0]);
  }

  }
  hello(arguments[0]);
}

test(0);