I am trying to code a simple rock paper scissors game and want to use "addeventlistener" to return the value of the buttons but im am not how and further i can't seem to console.log it to print what i want either.
code for my rock paper scissors
console.log() accepts only string parameters. What you're trying to provide is variable hi but it is not defined. so either you can do:
console.log()
var hi = 'hello' console.log(hi)
or you can do console.log('hi')
console.log('hi')
For reference, visit W3Schools