O'Reilly logo

Learning Underscore.js by Alex Pop

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Programming Paradigms with Underscore.js

The previous chapter concluded the overview of most of the Underscore features. This chapter will explore how Underscore can be used in the context of different programming paradigms and has the following sections:

  • An overview of the object-oriented programming (OOP) paradigm
  • Examples of how you can use Underscore in an OOP context
  • A description of the functional programming (FP) paradigm
  • Examples of how you can use Underscore in a FP context

The chapter assumes that you are familiar with OOP concepts in general. In this chapter, we will use the programming paradigm interchangeable with the programming style.

The source code for the examples from this chapter is hosted online at https://github.com/popalexandruvasile/underscorejs-examples/tree/master/programming-paradigms ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required