---
title: "Discussion on \"Design Patterns - Strategy Pattern in JavaScript\" | Hashnode"
description: "Discussion on \"Design Patterns - Strategy Pattern in JavaScript\". There are 23 classical design patterns which was described in the original book,\nDesign Patterns: Elements of Reusable Object-Oriented Software. The patterns provides a solution to a particular problem which is repeated in the software\ndevelopment.\n\n..."
url: "https://hashnode.com/posts/design-patterns-strategy-pattern-in-javascript/5d2ca99d44bbdea13ab51a1f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Design Patterns - Strategy Pattern in JavaScript](https://carlillo.hashnode.dev/design-patterns-strategy-pattern-in-javascript?utm_source=hashnode&utm_medium=feed)

There are 23 classical design patterns which was described in the original book, Design Patterns: Elements of Reusable Object-Oriented Software. The patterns provides a solution to a particular problem which is repeated in the software development. ...

Jul 15, 2019 · carlillo.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#design-patterns](https://hashnode.com/tag/design-patterns)
-   [#programming-ciovqvfcb008mb253jrczo9ye](https://hashnode.com/tag/programming-ciovqvfcb008mb253jrczo9ye)
-   [#strategy](https://hashnode.com/tag/strategy)

## Written by

[Carlos Caballero](https://hashnode.com/@carlillo)

@carlillo · Málaga, Spain

  
[View profile](https://hashnode.com/@carlillo)

Computer Science,JS/TS, Angular, web tech., Java/.Net, TDD/BDD, Agile, DevOps ...

I&#39;m PhD. in Computer Science from Málaga, Spain. Currently, I am teaching developers and degree/master computer science how to be experts in web technologies and computer science.

## Responses 2

Markdown supported · ⌘↵ to post

[Carlos Caballero](https://hashnode.com/@carlillo)

[Jul 16, 2019](https://hashnode.com/posts/design-patterns-strategy-pattern-in-javascript/5d2ca99d44bbdea13ab51a1f/comment/5d2dceecf9cd36ba79888200)

Thanks!!

I want to describe the 23 design patterns with nice examples!

[Maneesh Kumar](https://hashnode.com/@kontactmaneesh)

[Jul 16, 2019](https://hashnode.com/posts/design-patterns-strategy-pattern-in-javascript/5d2ca99d44bbdea13ab51a1f/comment/5d2dac55679d7e6714e28963)

Nice Article.

[Duduman Bogdan Vlad](https://hashnode.com/@dudumanbogdan)

[Jul 17, 2019](https://hashnode.com/posts/design-patterns-strategy-pattern-in-javascript/5d2ca99d44bbdea13ab51a1f/comment/5d2dac55679d7e6714e28963#reply-5d2f2624f55547c1319b707c)

How do you manage this pattern using DI in Typescript, ex: DI from Angular? I don't see this pattern good if using the 'new ClassEntity()' a solution. Any ideas?
