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

254
Views
¿Cómo obtengo el valor de una entrada y la uso en una declaración si-entonces?

Quiero hacer un redentor de moneda en mi expediente. Estoy tratando de usar javascript para obtener la entrada del texto, pero recibo los mismos mensajes: error de sintaxis y error de referencia. ¿Qué significa esto y cómo lo soluciono?

Aquí está mi código exacto:

 <html> <head> <title>Alante de Nuza - Made in Nuza</title> <script> function onClick1() { if document.getElementById("Input1").value == "C120CC9" { document.getElementById("Paragraph1").innerHTMl = "Code Succesful!"; } else if { document.getElementById("Input1").value == "X999XX9" { document.getElementById("Paragraph1").innerHTMl = "Very Sneaky..."; } } } </script> </head> <body> <h1 style="font-family:cursive;">Alante de Nuza redeem</h1> <hr> <input id="Input1" type="text" placeholder="eg X999XX9" style="width:500px; height:100px; font-size:70px; text-align:center;"> <br> <br> <button onclick="onClick1()" style="border-radius:50px; text-align:center; font-size:60px; font-family:cursive; width: 300px; height:100px;">REDEEM</button> <p id="Paragraph1"></p> </body> </html>
about 4 years ago · Juan Pablo Isaza
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!