function calculateArea(length = 1, width = 1) {
return length * width;
}
console.log(calculateArea()); // Output: 1 (1 * 1)
console.log(calculateArea(5)); // Output: 5 (5 * 1)
console.log(calculateArea(5, 10)); // Output: 50 (5 * 10)
console.log(calculateArea(undefined, 7)); // Output: 7 (1 * 7)
/*
run:
1
5
50
7
*/