What is the "s" in mqls?

In the following code pattern:

const mqls = window.matchMedia("(max-width: 850px)");
function mediaqueryresponse(mql) {
  if (mqls.matches) {
    // Do sutff

I would assume that “mql” means “media query listener”,

But what is the “s” as in “mqls”?

Thanks in advance,

It’s MediaQueryList not Listener. ‘ls’ is just an abbreviation for list

Link here

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.