Articles tagged in: JavaScript



JavaScript — Get Battery Status

Browsers become powerful when it comes to interacting with the user’s system. For example, the Battery API allows you to retrieve information about the system’s battery charge level. You may check whether a device is charging and has enough energy. This tutorial shows you how to retrieve the …

Continue Reading

JavaScript — Test for LocalStorage Support

One of our projects serves thousands of users every day. The users are non-technical and have all sorts of technical devices. The devices may be old and outdated, but they’re still used. We need to ensure the website works on such devices too. All major browsers support localStorage. It’ …

Continue Reading

JavaScript — How to JSON Stringify Errors

You can create a JSON string from anything in JavaScript using the JSON.stringify(anything) method. However, the resulting JSON string may not contain the expected values. For example, if you’re JSON serializing a JavaScript error, you’ll notice that its JSON string doesn’t contain any properties. JavaScript …

Continue Reading
Page 1 of 14

Explore the Library

Find interesting tutorials and solutions for your problems.