Answers for "what are function arguments?"

3

function arguments

function createMenu({ title, body, buttonText, cancellable }) {
  // ...
}

createMenu({
  title: "Foo",
  body: "Bar",
  buttonText: "Baz",
  cancellable: true
});
Posted by: Guest on September-02-2021
0

argument and parameter

function myFunction(paramOne, paramTwo){
	//paramOne and paramTwo above are parameters
	//do something here
    return paramOne + paramTwo
}

myFunction(1,2) // 1 & 2 are arguments
Posted by: Guest on December-06-2021

Code answers related to "what are function arguments?"

Browse Popular Code Answers by Language