Creating a simple TODO list using arrays
Arrays is one of the most used data structures in general, it does not matter if we are using JavaScript, .NET, Java, Python, or any other language. This is one of the reasons most languages have native support to this data structure and JavaScript has an excellent API (Application Programming Interface) for the Array
class.
Whenever we access the database, we will get a collection of records back, and we can use arrays to manage the information retrieved from the database. If we are using JavaScript in the frontend, and we make a call to a server API, we usually will get back a collection of records in JSON (JavaScript Object Notation) format, and we can parse the JSON into an array so we can manage and manipulate the data as needed so we can display it on the screen for the user.
Let's see a simple example of an HTML page using JavaScript where we can create tasks, complete tasks, and remove tasks. Of course, we will use arrays to manage...