Create a pattern to match the code below.
'bat' // match
'cat' // match
'at' // don't match
'att' // don't match
You don't need to call the function; just return the result.
Create a pattern to match the code below.
'bat' // match
'cat' // match
'at' // don't match
'att' // don't match
You don't need to call the function; just return the result.
Sample Input 1:
batSample Output 1:
trueCreate a free account to access the full topic