Ep 5: Detect if caps-lock is on || 9 useful code snippets for everyday JavaScript development.

Опубликовано: 22 Январь 2025
на канале: 8020Lessons
166
5

Welcome to this JavaScript snippets series, In this series, we will look at some of the most common JavaScript snippets which will help you with your everyday JavaScript development.

You can always use 3rd party utility libraries, but knowing these vanilla JavaScript snippets is always beneficial.

And these snippets are so easy and small, that you should always prefer them instead of a 3rd party utility library.

In this video, we will see how to detect the caps-lock status of the user.

Detect if CapsLock is on
KeyboardEvent.getModifierState() is used to determine the state of the CapsLock key on the user's keyboard.

Full Playlist:    • Useful code snippets for everyday Jav...  

#javascript #tutorial #js #function #jsinterview #javascriptinterview #jsforbeginners #http #https #javascriptsnippets #scroll #scrollEvent #handleScroll

-------------------------------------

8020 Lessons is the project to help you equip yourself 💪 with the most essential skills of the 21st century. Learn 20% skills that get you 80% results.

Become a better JavaScript developer in 10 minutes ⏱️ a week.

Concise and to the point 🎯 coding lessons.

Thank You! Master and learn JavaScript like never before: https://8020lessons.in/