Hi I don’t understand that. output should be £112 but it’s £1696 because it adds 16 and next to it 96.
let output = 2
let cal = "£" + output * 8 + 96
console.log(cal)
>Solution :
If you start your expression with a string, the + operator is used to concatenate. Try using parentheses:
let output = 2
let cal = "£" + (output * 8 + 96)
It’s also nice to use template syntax:
let cal = `£${output * 8 + 96}`