Learn JavaScript
99.1K subscribers
679 photos
16 videos
444 files
78 links
JavaScript Training Courses

💳 Paid ads by: https://telega.io/c/JavaScript_Trainings

🔰 Linkedin: @Linkedin_Learning
🧿 Udemy: @Zero_To_Mastery
📦 Python: @LearnPython3
🔅 Web Development: @Webdev_Trainings
Download Telegram
🔰 JavaScript Array Methods
Please open Telegram to view this post
VIEW IN TELEGRAM
👍2214
There are a lot of applications that benefit from the screen not locking up automatically.

Say, a timer or stopwatch application, a guided meditation app, a live sports score app, navigation app, and much more!

For these applications on the web, browsers provide a simple but useful API called the Wake Lock API 🔒

This API, when invoked, prevents the screen from dimming or locking after a timeout period and makes it alive infinitely - till you release the lock.

⚠️ Do note that these API methods may throw errors, which is not captured here.
33👍1🔥1