Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

187
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda