The meaning fo key

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.


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:

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