r/javascript • • 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

114 comments sorted by

View all comments

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.