In Typed Language, the values are related to the values instead of variables. It has two types:
Ans: When we talk about local storage, the data doesn’t return to the server for every HTTP request. Consequently, the amount of traffic between client and server decreases. It is not removed till you clear via setting or program manually.
Session Storage resembles local storage in many ways. They have the same API. both f these are used to save keys or value pairs. However, there is one difference. The data stored in the local storage doesn’t expire, whereas, in session storage, data is removed when the page session ends. Session Storage will leave when the browser is closed.
Ans: “==” operator with the help of type correction compares the variables. It allows you to compare numeric information with string, etc. The “===” doesn’t allow that. That is due to the way it functions. It checks the value and the type of two variables. if two variables are unidentical “===” return false. For this operation “==” return true.