Design patterns in JavaScript are reusable solutions applied to commonly occurring problems in writing JavaScript web applications . It is quite appropriate to refer JavaScript design patterns as templates to provide solutions to problems but not quite to say that these patterns can replace the developers.