Which method should you use?

You are developing a web application that can function when users are not connected to the Internet.
You need to check the Internet connectivity status of a user’s browser.
Which method should you use?

You are developing a web application that can function when users are not connected to the Internet.
You need to check the Internet connectivity status of a user’s browser.
Which method should you use?

A.
Option A

B.
Option B

C.
Option C

D.
Option D



Leave a Reply 9

Your email address will not be published. Required fields are marked *


Wojta

Wojta

None of them is correct.

Correct is: navigator.onLine

M

M

The correct answer is D!
navigator.online or navigator.onLine, it’s the same.

nazish ali

nazish ali

M is right!

Al

Al

Poorly written question or Microsoft is being very particular with their wording.

JavaScript is case sensitive.

navigator.isOnline = undefined (no such property)
navigator.online = undefined (case is incorrect)
navigator.onLine = true (if indeed it is online)

stijn

stijn

navigator.online not mentioned in either ‘exam ref’ or ‘training guide’. therefore it cannot be part of the exam.

Md.Rezaul Kobir

Md.Rezaul Kobir

I am agree with M(ans:D)