xxxxxxxxxx
const sampleFunction = function() { // function name used as variable name instead
console.log("Hello")
}
sampleFunction() // prints “Hello”
xxxxxxxxxx
const getRectArea = function(width, height) {
return width * height;
};
console.log(getRectArea(3, 4));
// expected output: 12