Strategy pattern: Transcoder example (JavaScript flavour)

By | 22 June, 2014

This example is based on the declaration “Strategy pattern: Transcoder example

Strategy Pattern - TranscoderExample


JS Bin

About the code

Based on as commented with generic example:


  • Declaration by prototype property
  • The default behavior throw an exception in order to force subclasses to implement thesse methods

Concretes Strategies

  • Declaration by prototype property  and Object.create()

Leave a Reply

Your email address will not be published. Required fields are marked *