JSFiddle - React, Tailwind, and code Playground
by roeburg
HTML
<div />
JavaScript
$(function () {
// Global definition of aCentaur.
var aCentaur = "a horse with rider,";
// A local aCentaur variable is declared in this function.
function antiquities() {
var aCentaur = "A centaur is probably a mounted Scythian warrior";
}
antiquities();
aCentaur += " as seen from a distance by a naive innocent.";
$("div").html(aCentaur);
// Output: "a horse with rider, as seen from a distance by a naive innocent."
})