Match the whole seat label
A pattern can match part of a line even when the full label is wrong.
your task
Keep using a pattern. Print “match” only for the complete line “Seats: 8”. Print “no match” for every other line.
The check accepts both Seats: 80 and Free Seats: 8. Each contains the expected text, but neither is the required room label.
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 yetThe room has 8 seats
Expected output
1
matchSee the input and the code for this case
const text = "Seats: 8";
Not run yetThe room has 80 seats
Expected output
1
no matchSee the input and the code for this case
const text = "Seats: 80";
Not run yetA line about free seats
Expected output
1
no matchSee the input and the code for this case
const text = "Free Seats: 8";