Understanding callbacks in javascript

Ever won­der how call­backs work? Or how you could cre­ate your own? Call­backs have been around since a very long time and even though exces­sive use of call­backs can cause a lot of pain…