JSFiddle - React, Tailwind, and code Playground

JavaScript

x = 10
lol();
rofl();

function lol(){
    x = 5
}
function rofl(){
    alert(x)
}