I am trying to write an if statement to check to see if the amount of numbers a user enters into the array is a perfect square (4, 9, 25, 36...).
if(array.length != Math.sqrt(array))
I know this isn't correct and I know it is probably something easy, but I can't seem to get how to think of an if statement to see if my array is a number that is a perfect square.
Any help is appreciated, thank you.