I have a Javascript object like this :
Const dataStructure = {
1 : 2000,
2 : 1950,
// and so on
On the other side I have a userInput, I want to find the matched key for it and get the value of that key to send it as a response ti user.
So I go through different solutions(for, forIn and...), but I couldn't retrieve the value
I appreciat your answers