JSFiddle - React, Tailwind, and code Playground

JavaScript

//Declaration 1
var foo1 = function(){

alert('Declaration 1');
}

//Declaration 2
function foo(){
 alert('Declaration 2');
 }
var b= new foo1();
var a=new foo();