JSFiddle - React, Tailwind, and code Playground

by Mitch Greer

JavaScript

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

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

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