Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

241
Views
Addeventlistener not returning button value

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

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

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:

var hi = 'hello'
console.log(hi)

or you can do console.log('hi')

For reference, visit W3Schools

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!