Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

queryselector

  1. S

    JavaScript querySelector works, but not querSelectorAll

    I want to replace all .emoji elements, with a random weather emoji. I have written the following code to randomize an emoji: let weatherEmojis = [ "⚡️","☀️","⛅️","☁️","💧","💦","☔️","💨","❄️" ]; var weatherEmoji = weatherEmojis[Math.floor(Math.random() * weatherEmojis.length)]; And the...
Back
Top Bottom