Pokemon Search App explanation

I am working with the last project for JavaScript and i am not understanding this note:

Does this mean that i should create a regex to filter the input or does this show me how the user input should be?

yes it is telling you what the API is expecting in terms of input. So if you type ‘Pikachu’ as input, the code should make that all lower case ‘pikachu’.
You can use any method you like to normalize the input value so it works with the API

So i can use .toLowerCase() only and no regex is needed, right?

it is up to you. You can check the testcases and see what kind of inputs you will need to worry about.

1 Like