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

183
Views
What does (some) mean in this javascript block of code?

I know what some() means in JavaScript but I don't understand what it means in this specific code block. Your help would be appreciated.

function myDisplayer(some) {
  document.getElementById("demo").innerHTML = some;
}

function myCalculator(num1, num2) {
  let sum = num1 + num2;
  return sum;
}

let result = myCalculator(5, 5);
myDisplayer(result);
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

function myDisplayer(some) {
  document.getElementById("demo").innerHTML = some;
}

The some here in this code is an argument of type number, you can change the argument name to anything you like except reserved keywords.

Also, your question mention, what is some(), it is incorrect with reference to the code as you asked for a function named as some and your code refer to an argument named as some.

about 4 years ago · Juan Pablo Isaza Report

0

In this code, “some” is a function parameter.

Function parameters are the names listed in the function definition.

Function arguments are the real values passed to (and received by) the function.

You might want to read this to get familiar with this concept.

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!