are there dictionaries in javascript like python?
This is an old post, but I thought I should provide an illustrated answer anyway. Use javascript’s object notation. Like so: And to access the values: or you can use javascript literal object notation, whereby the keys not require to be in quotes: