Calculate the intermediate value

Report a typo

The following program calculates the area and volume and checks their values:

let width = 5;
let length = 6;
let height = 7;
let area = width * length;
let volume = area * height;

console.log(area + " " + volume); // writes the values to the console

function check() {
  if (area > 20 && volume > 200) {
    return true;
  } else {
    return false;
  }
}
check();

What will be its output to the console? Write the area and volume values separated by a single space.

Enter a short text
___

Create a free account to access the full topic