Array majority element - Am I missing something fundamental here?
Challenges
• Last reply from at October 12, 2020 at 2:14PM UTC
While testing the solution for the majority element problem, it doesn't seem like given solution works I may be thinking about this incorrectly hence the post:
```js
function majorityElement {
var temp = nums.sort;
return temp[Math.floor];
}
...