Is it possible to check if a specific value exists in a key in sessionStorage?
Let's say that I have a key that is named "item" and I got digits in that key. I want to check if the digit "5" exists in item.
I have tested to write like this:
if(sessionStorage.getItem("item") == "5");
but It doesn't respond as i want.
Is there another way I can check if the digit 5 exists in item?
Use this: