Posts

Nodejs Quick Tips #1

Creating Multiple Files

Unfortunately, the fs.writeFile does not accept an array for creating a bunch of files at once. To solve this problem, put all files in an array and loop through them to create the files.

Categories: #JavaScript
Tags: #NodeJs
Private Instance Method Variables

Instances Methods and Their Personal State

This post is for intended for JavaScript (not Java).

One may put instance method variables within an instance method to provide encapsulation, but what do you do when you want to maintain a private state for each instance method on each instance method execution?

Categories: #JavaScript