Skip to content

Commit

Permalink
Remove unnecessary emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaRevenco authored Jan 19, 2024
1 parent a5c7a1b commit 7d01784
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Yet another issue stems from the way the `instanceof` works. It checks the prese

While still seen in code, these problems led to the use of a pattern that was similar to constructors but addressed a ton of these problems: Factory Functions.

### Factory functions 🏭
### Factory functions

These fancy-sounding functions work very similar to how constructors did, but with one key difference - they levy the power of closures. Instead of using the `new` keyword to create an object, factory functions set up and return the new object when you call the function. They do not use the prototype, which incurs a performance penalty - but as a general rule, this penalty isn’t significant unless you’re creating thousands of objects. Let's take a basic example to compare them to constructor functions.

Expand Down

0 comments on commit 7d01784

Please sign in to comment.