Value of Local Storage setItem won't be printed either in getItem or in console.log

???

Which is what you’re looking for? I don’t get the output from the undefined. You can’t output a set.

  • Setters add/update a value
  • Getters return a value.