JSFiddle - React, Tailwind, and code Playground

by Vatsal Pande

JavaScript

// Find the Most Commonly Occurring Word

const words = ["apple", "banana", "apple", "orange", "banana", "banana"];

function mostFrequentWord(words) {
  // Your code here
}

console.log(mostFrequentWord(words));