Dictionaries

Overview

Strings for keys, Integers for values.

Dictinaries do not allow dublicate keys to exist.

Sample Codes

Standart Array

var employee = ["Taylor Swift", "Singer", "Nashville"]

Dictionary type

Standart use

let employee2 = [
    "name": "Taylor Swift",
    "job": "Singer", 
    "location": "Nashville"
]

If error

Empty dictionery

Sources

Videos

Articles / Documents

Last updated

Was this helpful?