Coderslang_Master `<!DOCTYPE html>
<html>
<head>
<title>Years</title>
</head>
<body>
<h3>Years</h3>
<ul>
<li>1923</li>
<li>1989</li>
<li>1923</li>
<li>1974</li>
<li>1974</li>
<li>1974</li>
<li>1937</li>
<li>1991</li>
<li>1997</li>
<li>1989</li>
</ul>
<script>
const arr = document.querySelectorAll("li");
arr.forEach((el, i, arr) => {
for (let k = i + 1; k < arr.length; k++)
el.innerText == arr[k].innerText ? arr[k].remove() : "";
});
</script>
</body>
</html>
`