Build a Rock, Paper, Scissors Game - Step 11

Tell us what’s happening:

its saying sorry, your code does not pass. You’re getting there,
you should have an optionsContainer variable

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

let optionsContainer = document.getElementById("options-container");

let winnerMsgElement = document.getElementById("winner-msg");

let resetGameBtn  = document.getElementById("reset-game-btn");


// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36

Challenge Information:

Build a Rock, Paper, Scissors Game - Step 11

Hi @vansh27052007

Then, create a variable called optionsContainer that will store the element with the class of options-container.

What type of element are you asked to store?

Happy coding

That one passed second one arived
Your winnerMsgElement variable should store the element with the id of winner-msg.
let winnerMsgElement = document.getElementById(“winner-msg”);"

let winnerMsgElement = document.getElementById(“winner-msg”);

the curly quotes you have in the message would not work, but that could be an issue with the post rendering

please post all your code for this challenge

it was const error i was using let

I am using const and it still doesn’t seem to be letting me pass the test:

const optionsContainer = document.getElementById("options-container");

const winnerMsgElement = document.getElementById("winner-msg");

const resetGameBtn = document.getElementById("reset-game-btn");

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.