gilbert189 @gilbert189

Do you prefer using the getElementsBy... functions or querySelector?

For some reason I prefer querySelector lately

Nov 25, 2022, 7:12 AM
4

comments

getElementsBy functions because i really hate the little stuff you have to add for selecting things with querySelector (#id and .class specifically) for some reason

aren’t those the exact same as CSS?

getElementsBy, but I think I’ll switch to querySelector the next time I’m doing something

querySelector