Skip to content

Commit 26d24ad

Browse files
tmartynytjgrathwell
authored andcommitted
Intro JS curricula: Change name of variable from 'item' to 'orange' to add clarity.
Add space before closing brace for consistency.
1 parent 068b31c commit 26d24ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sites/en/javascript-to-do-list/playing_with_jquery.step

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ steps do
6262
MARKDOWN
6363

6464
source_code :javascript, <<-JAVASCRIPT
65-
item = { description: 'a new item', id: 9000, completed: false}
66-
addItemToPage(item)
65+
var orange = { description: 'Orange', id: 9000, completed: false }
66+
addItemToPage(orange)
6767
JAVASCRIPT
6868

6969
message <<-MARKDOWN
70-
Your list should now have a new item!
70+
Your list should now have an orange!
7171
MARKDOWN
7272
end
7373

0 commit comments

Comments
 (0)