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

103
Views
Issue with user input

I am currently creating a simple calculator program and have run across an issue with this line of code:

    var n1 = readInt("Enter the First Number in Equation ");
    var op1 = readLine("Enter the first operator ]");
    var n2 = readInt("Enter the Second Number in the Equation ");
    var op2 = readLine("Enter the Second Operator ");
    var n3 = readInt("Enter the Third Number in the Equation ");

The application gives me a "SyntaxError: Unexpected end of input" and cites the line right after the previously shown code. Is there any issues with the given code? Or am I missing something else?

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

0

I think that the problem is in this "]":

var op1 = readLine("Enter the first operator ]");

Delete it and try.

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!