In this article I will continue covering design patterns. Today's tutorial is about builder strategy pattern. It has can be very beneficial to maintain clean code. There are few tips and tricks which can help you to identify and use builder pattern.
In this tutorial we will build a simple notes application using Node.js and React. First we will build a CRUD Rest API that can create, retrieve, update and delete Notes using Node.js, Express and MongoDB database. Express is a popular web framework for Node.js that supports routing and middleware to respond to incoming requests. For the object data model, we use Mongoose that provides a schema-based solution to model our application data.
Application that we will build looks like this:
JavaScript classes introduced in ECMAScript 2015 are syntactical sugar over JavaScript's existing prototype-based inheritance. So JS is looking more like other OOP languages, but what actually happens under hood? In this article I would like to dig deep into JavaScript and try to explain with code examples and console logs.
Let's declare a class.