concept key system in category javascript

appears as: key system
Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond

This is an excerpt from Manning's book Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond.

Awesome! You’ve completed your lock and key system and it works great! Best of all, you did it with little code and no need for an external library. Now you can create several locks with several keys, and each lock will only be accessible by its associated key. What if you created several locks and keys and mixed them up?