We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Explore

After using the map commands, we want our users to be able to see a list of all the Pokémon in a given area.

Assignment

Pokedex > explore pastoria-city-area
Exploring pastoria-city-area...
Found Pokemon:
 - tentacool
 - tentacruel
 - magikarp
 - gyarados
 - remoraid
 - octillery
 - wingull
 - pelipper
 - shellos
 - gastrodon
Pokedex >
export async function commandExit(state: State): Promise<void> {}

This works because variadic parameters (...args) are treated as optional in TypeScript. A function satisfies a type as long as it includes all required parameters and matches the return type.

npm run dev | tee repl.log

Once in the REPL, run the following commands:

  • explore pastoria-city-area
  • exit

Run and submit the CLI tests.