Hey there (brand new to JavaScript), I am working on a simple program that requires input from multiple users through prompt pop-ups.
For example:
<script type="text/javascript>
var userInput = prompt("Enter your input:");
</script>
It's pretty basic code, right? I'm still getting the hang of it!
My current challenge is to create a script that can analyze user inputs and display the most commonly occurring word. Is there a way to write a program that can achieve this and then use document.write
to output the result?
If anyone has any tips or suggestions, please feel free to share. I appreciate any help as I am struggling with this concept at the moment.