JSFiddle - React, Tailwind, and code Playground

JavaScript

var Arr = [1, 4, 8, 9];
alert(Arr);
somevar = 12;
Arr = [somevar];
alert(Arr);