JSFiddle - React, Tailwind, and code Playground

JavaScript

var i = 1;
var a = [1,i++];
alert(a)