Compare the badge strictly

Check whether the badge actually shows the expected count.

your task

Compare text with text. Print “match” when the badge shows the exact expected number. Otherwise print “different”, including for an empty badge.

An empty booking badge passes the check when the expected count is 0. badgeText contains the displayed text. expected contains the count as a number.

Starter code
or press Ctrl EnterNot run yet

cases

Not run yetBadge shows 3, expected 3

Expected output

1match
See the input and the code for this case
const badgeText = "3";
const expected = 3;
Not run yetBadge is empty, expected 0

Expected output

1different
See the input and the code for this case
const badgeText = "";
const expected = 0;
Not run yetBadge shows 4, expected 3

Expected output

1different
See the input and the code for this case
const badgeText = "4";
const expected = 3;