Arc Technologies interview question

Implement event callback handlers in Javascript