Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Edited for typos
  • Loading branch information
evanzhong authored Dec 10, 2020
1 parent b1261b6 commit 9876bb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buzzfeed-style-quiz/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ Think about what you would find in a normal English dictionary. For example, if
Brownie: a baked rectangle of rich chocolate cake without the addition of blueberries
```

We might logically call the above a **dictionary entry** with the word `Brownie` the description `a baked rectangle of rich chocolate cake without the addition of blueberries`.
We might logically call the above a **dictionary entry** with the word `Brownie` and the description `a baked rectangle of rich chocolate cake without the addition of blueberries`.

In JavaScript, we use slightly different terminology when referencing dictionaries. The word `Brownie` is called a **key** and the description `a baked rectangle of rich chocolate cake without the addition of blueberries` is called a **value**.

To declare a variable to be a dictionary, simply use curly braces `{}` and a colon `:` to separate your **key** from your **value**. Note that we can use commas `,` to separate dictionary entries.
To declare a dictionary variable, simply use curly braces `{}` and a colon `:` to separate your **key** from your **value**. Note that we can use commas `,` to separate dictionary entries.
```js
let my_recipe_dictionary = {
"Brownie": "a baked rectangle of rich chocolate cake without the addition of blueberries",
Expand Down

0 comments on commit 9876bb3

Please sign in to comment.