Codington
0 of 6 problems solved • 0%

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); // outputs 9

Predict the output

A ticket counter starts with 20 tickets and sells 7. Predict what the remaining-ticket display prints.

const tickets = 20; const sold = 7; console.log("Remaining:", tickets - sold);
What will this code print?