JSFiddle - React, Tailwind, and code Playground JavaScript var test = 'start'; (function (t) {t = 'end'} )(test); alert(test)