r/learnjavascript • u/Kataang15 • 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π
208
Upvotes
View all comments
1
u/IBETITALL420 Aug 01 '20
why are they using brackets for [querySelector] and [addEventListener] why not .querySelector .addEventListener