DEV Community

Discussion on: 27 Web Development Terms You Should Absolutely Know About

 
hyftar profile image
Simon Landry • Edited

If that's all you're arguing about; querySelector is part of an API because the function doesn't do just one thing but different things depending on the string passed. It's an API to access the elements in the DOM. Sure we can "Google" and find someone explaining it differently, but OP's explanation has nothing wrong about it and you're being very harsh by saying things like that.