1 2 3 4 5
function logout(event) { event.preventDefault(); localStorage.removeItem("token"); window.location.href = "/"; }