Could someone help me understand why the map function is only displaying the last result instead of all?
let err = {
email: false,
password: false,
surname: false,
lastname: false,
firma: false,
url: false
};
Object.keys(err).map(el => {
error.innerText = el;
});
When I use console.log, I can see all the results...