Get Programming with JavaScript - Listing 5.17
Listing 5.17 - Using the square function
const square = numberToSquare => {
const result = numberToSquare ** 2;
console.log(`${numberToSquare} * ${numberToSquare} = ${result}`);
};
square(10);
square(-2);
square(1111);
square(0.5);