You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -500,6 +500,7 @@
500
500
| 462 |[What is inline caching?](#what-is-inline-caching)|
501
501
| 463 |[What are the different ways to execute external scripts?](#what-are-the-different-ways-to-execute-external-scripts)|
502
502
| 464 |[What is Lexical Scope?](#what-is-lexical-scope)|
503
+
| 465 |[How to detect system dark mode in javascript?](#how-to-detect-system-dark-mode-in-javascript)|
503
504
<!-- TOC_END -->
504
505
505
506
<!-- QUESTIONS_START -->
@@ -8782,7 +8783,7 @@ The execution context is created when a function is called. The function's code
8782
8783
8783
8784
<!-- QUESTIONS_END -->
8784
8785
8785
-
464. ### How to detect system dark mode in javascript?
8786
+
465. ### How to detect system dark mode in javascript?
8786
8787
8787
8788
The combination of `Window.matchMedia()` utility method along with media query is used to check if the user has selected a dark color scheme in their operating system settings or not. The CSS media query `prefers-color-scheme` needs to be passed to identify system color theme.
0 commit comments