Session Storage - Menghapus Data

Halo bang, boleh tanyak ini, belum ngerti sya…
Udah cobak pulak belum bisa…

Hi @Adi_Firman ,

Sepertinya kamu lupa atau mungkin typo, di baris 26 yang kamu convert ke string itu namanya footBaller tapi yang diminta soal, isi variable footBaller dengan data array footballPlayer

var footBaller = JSON.stringify(footballPlayer);

Siap bang @Doltons_Edward sudah bisa

function saveFootballer(){

var footBaller = JSON.stringify(footballPlayer);

sessionStorage.setItem("footballPlayer", footBaller)

}

function saveKDrama(){

var kDrama = JSON.stringify(koreanDrama);

sessionStorage.setItem("kDrama", kDrama)

}

function clearAll(){

sessionStorage.clear()

console.log("all clear!")

}

Well this is good :clap: