Beginner JavaScript OOP vs Functional

前端 未结 5 1627
后悔当初
后悔当初 2021-01-30 11:50

I\'m just starting to research different programming styles (OOP, functional, procedural).

I\'m learning JavaScript and starting into underscore.js and came along this s

5条回答
  •  情书的邮戳
    2021-01-30 12:27

    Both map is functional, and both code based on a concpet, value => value by map function.

    However, both can also be seen OOP, because object.map style.

    I would not recoomend you to understand functional programming via Underscore.

提交回复
热议问题