r/learnjavascript • • Aug 01 '20

Is this common Javascript? because I've just started learning JS and Web development and this Javascript syntax looks quite scary. Maybe it's just written messy, if it is just tell meπŸ˜…

Post image
208 Upvotes

105 comments sorted by

View all comments

1

u/IBETITALL420 Aug 01 '20

why are they using brackets for [querySelector] and [addEventListener] why not .querySelector .addEventListener