I can find if the local storage key exists or not using the if condition in the below code
    this.data = localStorage.getItem('education'); 
      if(this.data)//check if it exists or not empty
{
        console.log("Exists");
      }
If want to use if condition to find if it does not exist, how do I write that in code? I don't want to use else.
 
     
    