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

Show parent comments

-12

u/StoneCypher Aug 22 '18

OK, try putting some Fortran in there and see what happens

13

u/rabidhamster Aug 22 '18

Uh, it won't work, which is precisely my point: Media queries in JavaScript are not CSS, just as JavaScript is not FORTRAN despite sharing a few basic similarities. I'm not even sure what you're arguing at this point.

-13

u/StoneCypher Aug 22 '18

Except, of course, media queries as defined in css work here

If you are not sure what my point is, it seems weird that you keep saying that I'm wrong

Have a nice day