Matchsticks to Square
You are given an array of lengths of matchsticks. You want to use these matchsticks to form a square. The square's sides should all have equal lengths. Return true if you can form a square with the given matchsticks, and false otherwise.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)