Answers for "javascript basic function"

5

simple javascript function

function idk() {
	alert('This is an alert!')
}
//call the function to make the function run by saying "Name of function + ()"
idk()
Posted by: Guest on May-08-2020
0

javascript basic function

const square = function(x) {
  return x * x;
};

console.log(square(12));
// → 144
Posted by: Guest on September-20-2021
0

JavaScript Function Syntax

function name(parameter1, parameter2, parameter3) {
    code to be executed
}
Posted by: Guest on July-18-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language