JS

JavaScript Date: Create Dates in JavaScript

What does the JavaScript Date constructor do? How can I use it? What are its limitations? JavaScript has built-in functions to manipulate dates and times. The Date object provides methods to create new instances of the Date class. The JavaScript Date object provides methods for creating new dates, converting between date formats, comparing two dates, …

JavaScript Date: Create Dates in JavaScript Read More »

Object constructor functions: How does the Javascript constructor work?

JavaScript object constructors allow us to build objects dynamically. They provide a convenient alternative to creating objects manually. They also provide a convenient way to initialize variables when creating objects. In this article we’ll see how to create an object using JavaScript object constructor method, we’ll see also when exactly we can use this method …

Object constructor functions: How does the Javascript constructor work? Read More »

Understanding JavaScript Objects: From Basic Concepts to Practical Usage

1)- What is an object in JavaScript? In JavaScript, objects are a fundamental data structure that represent collections of data. In the real world, there are many objects that have many properties and behaviors like pen, pencil, car, knife, fork…. Same thing in JavaScript, objects have a number of properties and methods that allow them …

Understanding JavaScript Objects: From Basic Concepts to Practical Usage Read More »

Send form data received in the backend to the database (MongoDB)

How to send form data from the backend-to the database (MongoDB) In this tutorial we will use the data of the previous tutorial: Send form data to the backend (Node JS). If you did not read this tutorial you can check it here : https://purpose-code.com/send-form-data-to-the-back-end-node-js/ Also, we will use MongoDB as database to store data. …

Send form data received in the backend to the database (MongoDB) Read More »