Skip to content

Commit

Permalink
Improve Pokémon object structure and logging
Browse files Browse the repository at this point in the history
  • Loading branch information
imranalam04 committed Oct 10, 2024
1 parent a644ecd commit 63d86b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 7-objects/36-pokemon.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Pokémon 📟
// Codédex

pokemon = {
const pokemon = {
name: "Pikachu",
type: "Electric",
level: 25,
Expand Down

1 comment on commit 63d86b8

@imranalam04
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improve Pokémon object structure and logging

  • Defined the pokemon variable using const to prevent it from being an implicit global variable.

Please sign in to comment.