In this article, we will look at sorting an array alphabetically in JavaScript. We will cover both arrays with strings and arrays with objects. Sorting an Array with Strings When sorting an...
Recent Posts
In this tutorial, I will show you how to programmatically set the focus to an input element using React.js and hooks. We will use two hooks, useRef and useEffect. Set up the Project All you...
Ant Design is a popular React UI library with many styled components ready for use. To get started, let's create a new react app from scratch: npx create-react-app ant-tutorial Open your...
In this article, we are going to create a simple express backend. The express app will connect to a MongoDB database in the cloud with CRUD operations. We will use Mongoose to create models with...
How to Create a Date We create a new date by newing up a Date object. There are four ways to initialize a Date object: #1 Empty constructor const date = new Date(); This will give you...
In this article, I will show you how to get started with ESLint in Visual Studio Code. Linting tools automatically analyze your code for errors and formatting issues. This is great for keeping...