What is the main difference between Closure,Callback,Promise in JavaScript and how all are they Unique? : The below code has all three types and all three does the same action and are similar enough. I would like to know how all are they unique and their major differences.