paint-brush
Javascript: From Objects to Factory Functions And Modulesby@simandebvu
1,601 reads
1,601 reads

Javascript: From Objects to Factory Functions And Modules

by Shingirayi Innocent Mandebvu4mSeptember 2nd, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Javascript: From Objects to Factory Functions And Modules, we have a way of organizing our Javascript code. We use the constructor to create a constructor with Javascript. Constructors look just like normal regular functions. The only difference now is that you have to instantiate them with the new keyword. This explains why this explains why we have no classes in Javascript, we did not have classes before ES6. We saw that constructors, as an optional way of organising our code, also also serve as a factory function.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Javascript: From Objects to Factory Functions And Modules
Shingirayi Innocent Mandebvu HackerNoon profile picture
Shingirayi Innocent Mandebvu

Shingirayi Innocent Mandebvu

@simandebvu

Full Stack Software Developer | Django | LEMP | Rails | React & Redux

About @simandebvu
LEARN MORE ABOUT @SIMANDEBVU'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Shingirayi Innocent Mandebvu HackerNoon profile picture
Shingirayi Innocent Mandebvu@simandebvu
Full Stack Software Developer | Django | LEMP | Rails | React & Redux

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