In this course you will build a library that will enhance the browser’s localStorage into a collections based database that will be capable of storing collections of multiple items.
You will build a class and its methods and create an instance from the class and apply the methods that your just created.
You will see debugging techniques as we will make an extensive use of the Chrome browser’s inspector to walk through our code line by line and examine values and states of different variables.
Finally, you will be able to publish the library on NPM and make it available for use by other developers with the simple `npm install package-name` command.
The basic setup you need for this project.
A basic description of the localStorage and sessionStorage
Demonstration of the localStorage methods
An overview of the Collection class and methods we are going to implement
Check if the localStorage exists and implement createUID
Implement the helper functions
Create the Collection class
Implement the save method
Implement the findAll method
Implement the findById method.
Implement the update method
Implement the remove method
What is the localStorage?
The localStorage table is found under the following tab inside the chrome inspector.
The data type of the 'key' that you pass into localStorage.setItem(key, value) should always be...
You can create an instance of the Error constructor using the following code.
What does it imply if the following expression gets evaluated to true?
Object.prototype.toString.call(data) === '[object Object]';
This tutorial walks you through the process of publishing your library on NPM.