Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update animalShelter.js
  • Loading branch information
greencarlos authored Aug 18, 2020
commit b5c8bf492f40ca7db28f2747bae6de4b58446c10
2 changes: 1 addition & 1 deletion chapter03StackQueues/3.6 - Animal Shelter/animalShelter.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var AnimalShelter = function() {
AnimalShelter.prototype.enqueue = function(animal) {
if (animal.type === 'dog') {
this.dogQ.enqueue(animal);
} else if (animal.type === 'vat') {
} else if (animal.type === 'cat') {
this.catQ.enqueue(animal);
}
this.allQ.enqueue(animal);
Expand Down