Click in order · JavaScript and TypeScript course · Module 9: Design Patterns and Architecture
Sequence: Factory Pattern
Arrange the elements of a simple factory (Factory pattern) in the correct order:
Items to click
- create(type) {
- } }
- return new Dinosaur(type)
- class DinoFactory {
You can check the correct answer by solving this task in the CodeWorlds game.