Premium
Selector Polyfill 1: Implement matchesSimple
matchesSimpleChallenge summary
Match a DOM-like element against a focused subset of tag, identifier, and class selectors.
What you'll practice
- Parse the supported selector forms without accepting unsupported syntax.
- Compare tag names, identifiers, and class membership correctly.
- Return a predictable false result for invalid nodes or selectors.
What Premium unlocks
Premium unlocks the runnable workspace, behavioral checks, implementation walkthrough, and edge-case discussion.
Free related practice
Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.
Premium is $24 a month or $99 a year, less in many countries.