JSFiddle - React, Tailwind, and code Playground

JavaScript

var i = 1;

function hello() {
	return  i || 
  	typeof i === 'function' ? i() : ( i + 3 );
}

console.log( hello() );