Please help me to return the value of the unpaired element from the array[2,3,2,4,5,3,4], that is 5. Please help me with this. Here in the array, only 5 is not having similar pair, all other numbers have the same pair like 2,2 3,3 ...so on.
<head>
<title>Testing JavaScript</title>
</head>
<body>
<script>
console.log("Console unpaired element from array")
const years =[2,3,2,4,5,3,4];
const del=[...new Set(years)];
console.log(del);
</script>
</body>
</html>