r/javascript • u/[deleted] • Aug 21 '18
Effectively supported in all browsers, JavaScript has its own form of media queries just like CSS.
https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia
465
Upvotes
r/javascript • u/[deleted] • Aug 21 '18
1
u/[deleted] Aug 22 '18
I don't think there's much CSS can that JS can't. It's more the opposite, CSS can't do a lot of stuff JS can.