For instance:
let num = 20;
const sub = 6;
const add = 10;
num = num - sub;
num = num + add;
if (num > 20){
num = 20;
}
console.log("Only 6 was actually added to var num before reaching its maximum value");
Is there a way to adjust the console log to reflect that only 6 was truly added to var num before reaching its limit?