JSFiddle - React, Tailwind, and code Playground JavaScript var online = navigator.onLine; alert(online);