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
Answer D is correct
https://www.w3schools.com/jsref/prop_nav_online.asp