Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript basic function

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

console.log(square(12));
// → 144
 
PREVIOUS NEXT
Tagged: #javascript #basic #function
ADD COMMENT
Topic
Name
8+3 =