Skip to content

JavaScript

Members Public

A Complete Guide To JavaScript localStorage

localStorage is a property of the window object in JavaScript that allows you to store key/value pairs in a web browser. The data stored in localStorage persist even after the browser is closed, making it a useful tool for saving user data on the client side.

A Complete Guide To JavaScript localStorage
Members Public

How to Prevent cannot read property split of undefined

Introduction The "cannot read property split of undefined" error occurs when we try to call the split() method on a variable that stores an undefined value. In JavaScript, a variable is said to be undefined if it has been declared but not initialized. In simple words, when we do not

How to Prevent cannot read property split of undefined