JSFiddle - React, Tailwind, and code Playground JavaScript var x = []; function test() { x.push('xoxo'); } test(); console.log(x);