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

146
Views
When to use double quotes/single quotes in parentheses?

When to use and not use single or double quotes within functions?

for example:

function convertToInteger(str) {
  return parseInt(str); // why do we not use double-quotes here? is this as simple as we never use quotes around arguments when calling a function?
}

convertToInteger("56");
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

the variables inside the function are called arguments. They serve to store the item you passed. As you passed it, it will use whatever value you enter, but if you put a value in quotes, you would be setting a fixed value.

about 4 years ago · Juan Pablo Isaza Report

0

Variable value should be in quotes , variable name should not be in quotes .

convertToInteger("56");

or

var datavalue="56";

convertToInteger(datavalue);

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!