Im trying to do an assignment and I’m not grasping how the clone function is supposed to work. It appears to be defined here but I cant implement it in the addPokemon method.
addPokemon method
The Pokemon Class and one of the elemental subclasses
When I try to use pokemon with clone it doesn’t recognize clone as a function.
New contributor
user24883691 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.