JSFiddle - React, Tailwind, and code Playground

JavaScript

var a_array = [];
var a = '1';
a_array.push(parseInt(a));
console.log(a_array);