Why does my key give an undefined value even if me passing the key to the object in the form of a string gives me the correct value

Why is the value of categoryDictonary[item] undefined when categoryDictonary[“Marvel”] gives [“WandaVision”, “Loki”, “Moon Knight”] even when the value of item is “Marvel”enter image description here