SyntaxFix
Write A Post
Hire A Developer
Questions
const arr= [1, 2, 3] arr.forEach(function(element){ if(arr[arr.length-1] === element){ console.log("Last Element") } })