Codington
0 of 6 problems solved • 0%
Use in a course

Exercise prompt

Predict a Subtraction

The minus operator - subtracts the number on its right from the number on its left.

Example

console.log(15 - 6);

JavaScript starts with 15, subtracts 6, and displays 9.

Your task

Predict the result of 20 - 7 on the first line. Add an Actual: line that logs the subtraction expression itself, then compare the two results.