article

language object - Function

[WHAT]

  1. [] The function declaration (function statement) defines a function with the specified parameters.
  2. [] You can also define functions using the Function constructor and a function expression.

[WHY]

  1. [] 

[WHERE]

  1. []

[WHEN]

  1. []

[EXAMPLE]

  1. [] function declaration - declares/defines what the function will do

function addTwo(a,b){

  return a+b;

}

  1. [] function execution - executes the given function with the required parameters and returns the result of the execution
let sum = addTwo(3,4);
console.log(sum); // 7

[HOW-TO]

  1. []

[REFERENCE]

  1. [] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function

[RELATED]

  1. []
Details Photos Edit more

Details

ID: 2704

NAME: Function

DESCRIPTION: ]javascript languages NATIVE 'Function' object

AUTHOR: article.author/s

EDITOR: article.editor/s

PUBLISHER: article.publisher/s

STATUS: Write

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

page_photo

actions

Email Email-Owner SMS and