GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Small edits · reprogram2098/JavaScript-Lessons@57d250e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Data_Structures/Dictionaries
    • README.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Data_Structures/Dictionaries/README.md‎

Copy file name to clipboardExpand all lines: Data_Structures/Dictionaries/README.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ In an dictionary we can do 4 basic actions, (please notice that as we did in our
2525
});*
2626
- **Reassign**: Sometimes we wish to change the value to some key in this case we use this syntax:
2727
*dict.keyname1 = "valuename1";*
28-
- Remove or delete: The best way to remove a property from a dictionary is to use the *delete* keyword:
28+
- **Remove or delete:** The best way to remove a property from a dictionary is to use the *delete* keyword:
2929
*delete dict["keyname"];*
30-
- Lookup: Thats is just an elaborate way to say that we wish to check, (to get actually), a value that is associated to a specific key. for example here we wish to prin the value of the key "keyname1" from the dictionary "dict":
30+
- **Lookup:** Thats is just an elaborate way to say that we wish to check, (to get actually), a value that is associated to a specific key. for example here we wish to prin the value of the key "keyname1" from the dictionary "dict":
3131
*console.log(dict['keyname1']);*
3232

3333
Sometimes instead of add or reassign there is a single set operation that adds a new (key,value) pair if one does not already exist, and otherwise reassigns it.

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.