Skip to content

Commit

Permalink
Changes var name from location to currentCity to avoid using JS reser…
Browse files Browse the repository at this point in the history
…ved keyword
  • Loading branch information
juliet-e authored Feb 21, 2024
1 parent d18d39b commit dbf7af4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions try-coding-fe/js-intro/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ When working with JavaScript, we use <code>camelCase</code> for variable names,
```js
var email = "[email protected]";
var firstName = "Brandi";
var location = "Tampa, FL 🌴";
var currentCity = "Tampa, FL 🌴";
```

<div class="try-it-new">
<h3>Try It: Variables in JavaScript</h3>
<p>Back in your sandbox replit, declare three variables that describe yourself, using the names <code>name</code>, <code>email</code>, and <code>location</code>.</p>
<p>Back in your sandbox replit, declare three variables that describe yourself, using the names <code>name</code>, <code>email</code>, and <code>currentCity</code>.</p>
<p>Make sure to <code>console.log</code> each variable to verify you've stored it correctly!</p>
</div>

Expand Down

0 comments on commit dbf7af4

Please sign in to comment.