Why does the color of all elements not change? How does the Html Selector work?
Talk Programming , Career, Mental Health, Talk Personal Finance ❤️ Post a query and receive responses ✅
Post a query and receive responses. Ask anything, Ask Mitra ❤️
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
elem is not an array its a variable that is being reassigned 3 times
to make an array use const elem = []
Question vanda ni code nai paste garnu parne ni sajilo hunthyo answer dina
you are defining elem as a variable and changing its value 3 times…
to use all three define elem as a array
const elem = [];