Your question is not specific enough to give a solid answer. After discussing in the comments it is clear you are actively trying to learn design patterns so it may not be clear to you the best way to ask the question. I am providing this as an answer so I have room to type.
Resources
dofactory - I use this as my reference source when looking for a pattern that matches my need.
Head First Design Patterns - I used this book to get a good introduction into design patterns and how to use them. Learning design patterns was a pivotal point for my understanding development. It shows you how to truly use interfaces and abstractions to achieve common problems in software development.
Beginner Guide to Design Patterns - Nice article to get you started with design patterns.
Javascript Design Patterns - (BONUS) This site was incredible for learning javascript design patterns. I am including to illustrate a point I make below about looking up design patterns for any language you use.
When looking at dofactory you can see there are three areas the patterns fall into; Creational, Structural, Behavioral. When looking for a pattern know what you are trying to achieve.
Few Tips
- Don't force a pattern if it does not naturally fit the problem.
- Don't over engineer the solution by trying to force patterns into every line of code you write, they are useful but not always needed.
- Do use multiple patterns when necessary, it is perfectly 'Ok' to have multiple patterns playing close together, again.. if it is a natural fit.
- Do learn a few common patterns, this small list is my own but a google search will reveal others personal list of commonly used patterns;
- Strategy
- [Abstract] Factory
- Singleton
- Command
- Decorator
- Observer
- Do look up design patterns for any language you attempt to learn, it will give you a better understanding how to better utilize the language. (see bonus link above)
- Do spread your wings after you get a decent understanding of the GoF patterns and look into the Enterprise Design Patterns.
I hope this answer helps guide you on the path to learning the design patterns. I know it does not exactly answer your question but hopefully it will help you understand a little better and enable you to return with a more specific question about design patterns and the usage for your code.