if querySelector is the better version of getElementsByX, then what is the better version of

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

For some reason I prefer querySelector lately

Nov 25, 2022, 12:13 PM
1 0 4

comments (single view)

ah, okay, for vanilla js i don’t think there’s any way to make that any more efficient

View all comments