Question: This code is part of an app that collects Pokemon. How would you print the list of the ones collected so far?

  1. console.log(props.pokeDex);
  2. console.log(this.props.pokeDex);
  3. console.log(pokeDex);
  4. console.log(this.state.pokeDex);

Answer: The correct answer of the above question is Option D:console.log(this.state.pokeDex);