Question: This code is part of an app that collects Pokemon. How would you print the list of the ones collected so far?
- console.log(props.pokeDex);
- console.log(this.props.pokeDex);
- console.log(pokeDex);
- console.log(this.state.pokeDex);
Answer: The correct answer of the above question is Option D:console.log(this.state.pokeDex);