check javascript errors online code example
Example 1: check online status javascript
// In Console type
>navigator.onLine // Boolean to check online status
Example 2: javascript code checker
var total = 0;
var limit = 10;
for (var i=0; i<limit; i++) {
total+=i
};
console.log(total);