JSFiddle - React, Tailwind, and code Playground

JavaScript

var x = "asdf";
const constantX = x;

alert("before mutation: " + constantX);
x = "mutated"
alert("after mutation: " + constantX);