Fungsi Dasar JavaScript
const square = function(x) {
return x * x;
};
console.log(square(12));
// → 144
The Arborist
const square = function(x) {
return x * x;
};
console.log(square(12));
// → 144
function name(parameter1, parameter2, parameter3) {
code to be executed
}