educative.io

Educative

The meaning fo key

Hi,
Don’t understand the meaning of ‘key’.
Sorry, but I have difficulties in English and together with JS it is very hard for me.


Type your question above this line.

Course: https://www.educative.io/collection/5679346740101120/5720605454237696
Lesson: https://www.educative.io/collection/page/5679346740101120/5720605454237696/5638404075159552

Hi @masha. The key here means that an index named key has a string value → 'value'. Same as we access an element of an array like a[0]. As this is a hashmap, we can make an index named key which has value → 'value'.

I hope this helps, but if you still do not understand it. Let me know.

Happy Learning :smiley:

Thaks.
At what casses key index is in use? Is it like let string = ‘value’?