Click in order · JavaScript and TypeScript course · Module 9: Design Patterns and Architecture
Sorting: Factory Pattern
Arrange the elements of the Factory pattern:
Items to click
- dino.type = type;
- const dino = {};
- return dino; }
- function createDinosaur(type) {
You can check the correct answer by solving this task in the CodeWorlds game.