let b = []; for (i = 0; i < 5; i++){ a = prompt("Enter Name: "); let d = b.push(a); } c = [...new Set(b)] console.log(c)