View on GitHub

reading-notes

Review, Research, and Discussion

1- Explain what a “Singleton” is ?

singleton is a class that allows only a single instance of itself to be created and gives access to that created instance.

### 2- Explain how the Singleton pattern can be used with Node modules, specifically with classes?

you should do the module using class and then you export the module and requier it in other file .

Term | Discripe

Basic Auth

basic access authentication is a method for an HTTP user agent (e.g. a web browser) to provide a user name and password when making a request.