1.

What is the purpose of the event disconnectionEvent?(a) Player demands for disconnection(b) Player disconnects from the channel(c) There is no user interaction(d) Player demands for reconnectionThe question was posed to me in an online quiz.Question is from HTML APIs in chapter Caching, Debugging and Animation of JavaScript

Answer»

Correct answer is (b) Player DISCONNECTS from the channel

To EXPLAIN I WOULD say: navigator.onLine is a property that maintains a true/false value (true for online, false for offline). This property is updated whenever the user switches into “Offline MODE”. The EVENT disconnectionEvent is fired when the player disconnects from the channel, whether a result of user interaction or not.



Discussion

No Comment Found

Related InterviewSolutions