JSFiddle - React, Tailwind, and code Playground JavaScript var f = []; f["1_f_1"] = "1"; f["2_f_2"] = "2"; f["3_f_3"] = "3"; alert(f.length);