JSFiddle - React, Tailwind, and code Playground
JavaScript
var add = function(a,b) {
alert(a+b);
};
var add = 55;
add(1,2); // the variable add is now overwritten by the second declaration
var add = function(a,b) {
alert(a+b);
};
var add = 55;
add(1,2); // the variable add is now overwritten by the second declaration