JSFiddle - React, Tailwind, and code Playground

by Mitch Greer

JavaScript

var colors = new Array();
var count = colors.push("red", "green")
alert(count);

count = colors.push("black");
alert(count)

var item = colors.shift();
alert(item); 
alert(colors.length)