Bits&Bytes Technology

Bits&Bytes Technology Contact information, map and directions, contact form, opening hours, services, ratings, photos, videos and announcements from Bits&Bytes Technology, Rawalpindi.

07/12/2025
Error Handling In JS 😍
13/07/2024

Error Handling In JS 😍

Array Methods 😍  JavaScript
10/07/2024

Array Methods 😍
JavaScript

𝗣𝗮𝗴𝗲 𝗩𝗶𝘀𝗶𝗯𝗶𝗹𝗶𝘁𝘆 𝗔𝗣𝗜✔️𝘛𝘩𝘦 𝘗𝘢𝘨𝘦 𝘝𝘪𝘴𝘪𝘣𝘪𝘭𝘪𝘵𝘺 𝘈𝘗𝘐 𝘱𝘳𝘰𝘷𝘪𝘥𝘦𝘴 𝘦𝘷𝘦𝘯𝘵𝘴 𝘺𝘰𝘶 𝘤𝘢𝘯 𝘸𝘢𝘵𝘤𝘩 𝘧𝘰𝘳 𝘵𝘰 𝘬𝘯𝘰𝘸 𝘸𝘩𝘦𝘯 𝘢 𝘥𝘰𝘤𝘶𝘮𝘦𝘯𝘵 𝘣𝘦𝘤𝘰𝘮𝘦𝘴 𝘷𝘪𝘴𝘪𝘣𝘭𝘦 𝘰...
20/01/2023

𝗣𝗮𝗴𝗲 𝗩𝗶𝘀𝗶𝗯𝗶𝗹𝗶𝘁𝘆 𝗔𝗣𝗜

✔️𝘛𝘩𝘦 𝘗𝘢𝘨𝘦 𝘝𝘪𝘴𝘪𝘣𝘪𝘭𝘪𝘵𝘺 𝘈𝘗𝘐 𝘱𝘳𝘰𝘷𝘪𝘥𝘦𝘴 𝘦𝘷𝘦𝘯𝘵𝘴 𝘺𝘰𝘶 𝘤𝘢𝘯 𝘸𝘢𝘵𝘤𝘩 𝘧𝘰𝘳 𝘵𝘰 𝘬𝘯𝘰𝘸 𝘸𝘩𝘦𝘯 𝘢 𝘥𝘰𝘤𝘶𝘮𝘦𝘯𝘵 𝘣𝘦𝘤𝘰𝘮𝘦𝘴 𝘷𝘪𝘴𝘪𝘣𝘭𝘦 𝘰𝘳 𝘩𝘪𝘥𝘥𝘦𝘯, 𝘢𝘴 𝘸𝘦𝘭𝘭 𝘢𝘴 𝘧𝘦𝘢𝘵𝘶𝘳𝘦𝘴 𝘵𝘰 𝘭𝘰𝘰𝘬 𝘢𝘵 𝘵𝘩𝘦 𝘤𝘶𝘳𝘳𝘦𝘯𝘵 𝘷𝘪𝘴𝘪𝘣𝘪𝘭𝘪𝘵𝘺 𝘴𝘵𝘢𝘵𝘦 𝘰𝘧 𝘵𝘩𝘦 𝘱𝘢𝘨𝘦.

✔️𝘞𝘩𝘦𝘯 𝘵𝘩𝘦 𝘶𝘴𝘦𝘳 𝘮𝘪𝘯𝘪𝘮𝘪𝘻𝘦𝘴 𝘵𝘩𝘦 𝘸𝘪𝘯𝘥𝘰𝘸 𝘰𝘳 𝘴𝘸𝘪𝘵𝘤𝘩𝘦𝘴 𝘵𝘰 𝘢𝘯𝘰𝘵𝘩𝘦𝘳 𝘵𝘢𝘣, 𝘵𝘩𝘦 𝘈𝘗𝘐 𝘴𝘦𝘯𝘥𝘴 𝘢 𝘷𝘪𝘴𝘪𝘣𝘪𝘭𝘪𝘵𝘺 𝘤𝘩𝘢𝘯𝘨𝘦 𝘦𝘷𝘦𝘯𝘵 𝘵𝘰 𝘭𝘦𝘵 𝘭𝘪𝘴𝘵𝘦𝘯𝘦𝘳𝘴 𝘬𝘯𝘰𝘸 𝘵𝘩𝘦 𝘴𝘵𝘢𝘵𝘦 𝘰𝘧 𝘵𝘩𝘦 𝘱𝘢𝘨𝘦 𝘩𝘢𝘴 𝘤𝘩𝘢𝘯𝘨𝘦𝘥.

✔️𝘠𝘰𝘶 𝘤𝘢𝘯 𝘥𝘦𝘵𝘦𝘤𝘵 𝘵𝘩𝘦 𝘦𝘷𝘦𝘯𝘵 𝘢𝘯𝘥 𝘱𝘦𝘳𝘧𝘰𝘳𝘮 𝘴𝘰𝘮𝘦 𝘢𝘤𝘵𝘪𝘰𝘯𝘴 𝘰𝘳 𝘣𝘦𝘩𝘢𝘷𝘦 𝘥𝘪𝘧𝘧𝘦𝘳𝘦𝘯𝘵𝘭𝘺.

'DarkMode' is pretty common nowadays but can we get current system theme?By using the amazing javascript 'matchMedia' ap...
20/01/2023

'DarkMode' is pretty common nowadays but can we get current system theme?

By using the amazing javascript 'matchMedia' api we can do this. The matchMedia api access the css media queries and using css media query of 'prefers-color-scheme: dark' we can get the current system theme.

We can create a custom Hook for 'DarkMode' that also supports the dynamic theme changing like auto mode, this hook will give the boolean value about our current theme is dark or not for example,

If the user change the theme we can still get the current theme and If the user sets 'auto mode' we can get the theme dynamically.

Address

Rawalpindi

Website

Alerts

Be the first to know and let us send you an email when Bits&Bytes Technology posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Share