You can read about diciotnaries in in-editor documentation. Generally You add new elements like this :
var dict = {}
dict["index"] = 1
after this operation dict becomes :
dict = {"index" : 1 }
if entry already exists, its value will be changed. If entry doesn't exist, it will be created with following value