Ok so I just want to start off by saying I know very little about javascript. I am currently in a beginners course for javascript and am just being introduced to objects.

The goal of what I am trying to do is have a field were a user can type in text. From there after pressing a button The code needs to do two main things.

1. Give a number of occurrences of each letter of the alphabet used in the text

user enters: Hello world

eg. A=0, B=0,.. E=1,.. L= 3, etc

2. Length of words

eg. 5-letter word = 2 (this needs to display only the ones that are found)

Like I said I am just being introduced to objects and have a minimal foundation with functions and arrays. Hopefully someone can help me with this or at least give me some sort of direction on where to start.