Add to a number read as text
A seat count read from a page arrives as text.
your task
Print “Seats taken: ” followed by the total. Use a template literal, a string written between backticks, for the message.
The page shows 3 taken seats. A booking adds 2 more, but the report says 32. takenText holds page text. newSeats holds a number.
Run code runs your code once for each case. It compares what your code prints with the expected output.
Starter code
or press Ctrl EnterNot run yet
cases
Not run yet3 taken, 2 new
Expected output
1
Seats taken: 5See the input and the code for this case
const takenText = "3"; const newSeats = 2;
Not run yet10 taken, 1 new
Expected output
1
Seats taken: 11See the input and the code for this case
const takenText = "10"; const newSeats = 1;