About 57 results
Open links in new tab
  1. What does "return" do in Javascript? - Stack Overflow

    Jun 10, 2017 · The return statement stops the execution of a function and returns a value from that function. console.log writes into the browser console. When a return statement is called in a function, …

  2. Como funciona exatamente o return Javascript

    Feb 13, 2014 · Queria saber como ele funciona exatamente, onde é necessário usar dentro de algum escopo como if etc.

  3. javascript - Functions that return a function: what is the difference ...

    return statement: The return statement exits the function and replaces the function call (i.e. where the function was invoked) with the value after it Note: JavaScript returns undefined by default when a …

  4. Para que serve a função "return" do JavaScript?

    O return não é uma função mas sim uma instrução (ou comando/funcionalidade) das funções em muitas linguagens de programação. O que o return faz é devolver um valor que é o produto da função, e …

  5. How to return values in javascript - Stack Overflow

    Feb 23, 2017 · JavaScript provides for passing one value back to the code that called it after everything in the function that needs to run has finished running. JavaScript passes a value from a function back …

  6. Funcionalidad del return en JavaScript - Stack Overflow en español

    Aug 3, 2020 · 1 El return sirve para retornar un valor una vez se termina de ejecutar una función. Entonces el valor retorna justo en donde llamaste a la función, también por eso una invocación de …

  7. javascript - Return array from function - Stack Overflow

    Sep 14, 2016 · I'm writing a game in javascript, and I want to keep the files for matching block IDs to files in a seperate .js file from the map compiler, so that I can edit things easily. However, the IDs are …

  8. javascript - Qué significa que una condición if sólo tenga return ...

    Jul 21, 2022 · El intérprete de Javascript necesita las llaves de bloque para comprender que el conjunto de instrucciones que se encuentran dentro de dicho bloque serán ejecutadas secuencialmente si se …

  9. javascript - What is the difference between return and return ...

    Apr 10, 2014 · In JavaScript, as in many other languages (like C, C++, Java, Python), the return statement has two parts: the keyword return and an (optional) expression. So in, any case, all that is …

  10. What does "return;" mean in javascript? - Stack Overflow

    The return statement in Javascript terminates a function. This code basically says that if !function1() (the opposite of function1() 's return value) is true or truthy, then just stop executing the funciton. Which is …