In this chapter, you learned how components can be used in different and interesting ways. You went through the tooltip, the accordion, and most importantly the dialog components. You also learned to better organize our code using Object Literal pattern.
In the next chapter, we will move one step ahead and use AJAX and the reddit API to build a cool news reader.