Open in app
Chris I.
5K Followers
About

Sign in

5K Followers
About
Open in app
Chris I.

Chris I.

·Nov 10, 2020

Thanks so much Artem! I've updated the article.

In the factory example, the ‘color’ property is not private to the object itself.
17
2

Artem Streltsov

More from Chris I.

Full Stack Dev. Data Scientist. Ruby, Python, React, AWS. Toronto. chris.i.the.data.guy “at” gmail.com

More From Medium

Comparing Count, Length And Size In Ruby on Rails

Chris I. in Ruby Daily

Ruby Algorithm Questions For Beginners

Chris I. in Ruby Daily

Custom Hot Keys With Vanilla JS In A React Hooks App

Chris I. in JavaScript in Plain English

Everything You Need To Know About Ranges In Ruby

Chris I. in Ruby Daily

Why Factories are better than Classes in JavaScript

Chris I. in JavaScript in Plain English

Comparing Each vs Select vs Map vs Collect in Ruby

Chris I. in Ruby Daily

Factories Are STILL Better Than Classes In JavaScript

Chris I. in JavaScript in Plain English

Deploy Backend And Frontend Apps On The Same Heroku Dyno

Chris I. in Ruby Daily

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store