for..of
.ids.forEach(function(id) {
const input = document.getElementById(id);
input.value = localStorage.getItem(id);
input.addEventListener("change", function() {
localStorage.setItem(id, input.value);
});
});
border-left: 2px solid red
не смог?