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.

Starter code
or press Ctrl EnterNot run yet

cases

Not run yetThe room has 8 seats

Expected output

1match
See the input and the code for this case
const text = "Seats: 8";
Not run yetThe room has 80 seats

Expected output

1no match
See the input and the code for this case
const text = "Seats: 80";
Not run yetA line about free seats

Expected output

1no match
See the input and the code for this case
const text = "Free Seats: 8";