I'm trying to create a rock paper scissors game using javascript and I can't seem to figure out a way to store a button's value inside a variable after the button is clicked.
Also, using data-set value for the buttons, if say the code will work, does it store a string value inside the variable?
note: In the javascript code's start function; I'm just trying to see if my computer choice and player choice code is working.
I'm trying to use the document.querySelectorAll along with the dataset value to make the code as clean as possible. Please let me know if my approach with this is wrong.