My question might sound silly but it is fundamental. I am trying to compare the elements of an array and I am getting inaccurate result.
$(document).ready(function(){
var array =["a","a","a"]
console.log(array[0]===array[1]===array[2])
})
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
why does it return false? What can I do to get the right result?