I have an object that contains all the months:
const months = {
"january": 31,
etc...
Then i have a text input. I select the value from the input with javascript (.value) in a variabel called "value".
When I type "january" (without quote marks) in the text input and try doing console.log(months.value); nothing happens.
How can I convert the value a datatype (or something else) that can be used to select "january" in the object "months"?