JSFiddle - React, Tailwind, and code Playground

JavaScript

var map = { };
map[5] = function() {
	alert('Hey!');
  delete map[5];
}

map[5]();