i have a class called ui and after saving data in local storage using save method it works but when i'm getting the data with loadData method it gives me undefined .. i want to know why ?!!
class UI{
save(key, value) {
localStorage.setItem(key, value);
}
getValue(key) {
localStorage.getItem(key);
}