JavaScript app showing different event handling

JavaScript app showing different event handling