JSFiddle - React, Tailwind, and code Playground
JavaScript
alert(delete colors);// can be deleted, returns true
function myFunc(){
var colors = ['red','green','blue'];
alert(delete colors);//cannot be deleted, returns false
}
myFunc();
alert(delete colors);// can be deleted, returns true