Change Value of Dictionary using Key
suggest changevar dict = ["name": "John", "surname": "Doe"]
// Set the element with key: 'name' to 'Jane'
dict["name"] = "Jane"
print(dict)
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents