diff --git a/files/en-us/web/api/window/matchmedia/index.md b/files/en-us/web/api/window/matchmedia/index.md index e68f396bb7af5e3..7cb22050e3a007e 100644 --- a/files/en-us/web/api/window/matchmedia/index.md +++ b/files/en-us/web/api/window/matchmedia/index.md @@ -24,6 +24,9 @@ matchMedia(mediaQueryString) - `mediaQueryString` - : A string specifying the media query to parse into a {{domxref("MediaQueryList")}}. + +> [!NOTE] +> Each `mediaQueryString` condition must be wrapped in parentheses, for example: `matchMedia('(min-width: 600px)')` will work, whereas `matchMedia('min-width: 600px')` will not! ### Return value