Simulation of Java collections (HashMap, Set, ArrayList, etc.) in JavaScript for edication purpose