paint-brush
Javascript state encapsulation without classes in 2019by@adrianmcli
14,437 reads
14,437 reads

Javascript state encapsulation without classes in 2019

by Adrian Li6mJanuary 5th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

I tend to avoid classes whenever possible in Javascript as I usually prefer a functional style over an object oriented one. But one thing that objects do really well is state encapsulation.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Javascript state encapsulation without classes in 2019
Adrian Li HackerNoon profile picture
Adrian Li

Adrian Li

@adrianmcli

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite