---
title: "Discussion on \"OCP: Open-Closed Principle, optimizing JavaScript code\" | Hashnode"
description: "Discussion on \"OCP: Open-Closed Principle, optimizing JavaScript code\". Lesson learned"
url: "https://hashnode.com/posts/ocp-open-closed-principle-optimizing-javascript-code/60bd7665fffc4c13b9cd8585"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [OCP: Open-Closed Principle, optimizing JavaScript code](https://tmorales.hashnode.dev/ocp-open-closed-principle-optimizing-javascript-code?utm_source=hashnode&utm_medium=feed)

Lesson learned

Jun 7, 2021 · 2 min read · tmorales.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#solid-principles](https://hashnode.com/tag/solid-principles)
-   [#beginner](https://hashnode.com/tag/beginner)

## Written by

[Tonatiuh Morales](https://hashnode.com/@tmorales)

@tmorales · México

  
[View profile](https://hashnode.com/@tmorales)

Developer in my free time | SAP Technical Lead. Open to help & collaborate.

Developer in my free time (at least I try), father, husband. Fun fact: I love sports (football, baseball, soccer) and sometimes jogging 😊, also rock music. My favorite teams: 🏈 Philadelphia Eagles, ⚾ Atlanta Braves, ⚽ Santos Laguna, México. Spanish native speaker

## Responses 1

Markdown supported · ⌘↵ to post

[Francesco Ciulla](https://hashnode.com/@FrancescoCiulla)

[Jul 2, 2021](https://hashnode.com/posts/ocp-open-closed-principle-optimizing-javascript-code/60bd7665fffc4c13b9cd8585/comment/60df08704f8e376422a755fa)

Thanks for mentioning me!
