Skip to content

Commit

Permalink
Merge pull request #9 from node-girls/step-9-instructions
Browse files Browse the repository at this point in the history
suggestion for change to step9 documentation
  • Loading branch information
msmichellegar authored Sep 30, 2017
2 parents 9ce1bc0 + 38a9f42 commit 15ac7fe
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions step09.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@ Using an object representing a person, `console.log()` a sentence introducing th
"Hi, my name is {firstName} {lastName}. I am {age} years old, and work as a {occupation}."
```

Hint: you can construct a string by adding different bits together. This includes variables. For example:
Hint: you can construct a string by adding different strings and values together using the <strong>concatenation</strong> operator `+`. This includes the keys and values of objects. For example:

```js
var name = 'Jane';

console.log("People call me " + name);
var animal = {
species: "cat",
name: "Tabitha"
};
console.log("My " + animal.species + "is called " + animal.name + ".");
```

Don't forget, you might need to include spaces.
Expand Down

0 comments on commit 15ac7fe

Please sign in to comment.