Skip to content

Commit e331995

Browse files
committed
Merge branch 'patch-1' of https://github.com/RoseTHERESA/docs into RoseTHERESA-patch-1
2 parents 45fb1ef + 6eaacf5 commit e331995

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ use the __alert__ function to make a message pop up in the browser. Try it out!
7878

7979
message <<-MARKDOWN
8080
Objects can also have __functions__, which can be helpful for altering objects and learning more about them.
81-
Functions are __invoked__ when parentheses, which causes them to run.
81+
Functions are __invoked__ with parentheses, which causes them to run.
8282
MARKDOWN
8383

8484
source_code :javascript, <<-JAVASCRIPT
@@ -87,9 +87,9 @@ Functions are __invoked__ when parentheses, which causes them to run.
8787
JAVASCRIPT
8888

8989
message <<-MARKDOWN
90-
The __push__ function allows us to add new items to an array. the slice function returns a new array
91-
with everything to the write of the __index__ we provided. Here, we passed the function the number 1, so
92-
slice returned an array with everything after the first element in the array.
90+
The __push__ function allows us to add new items to an array. the slice function returns a new array with
91+
with everything to the right of the __index__ we provided. Here, we passed the function the number 1, so
92+
slice returned an array with everything after the second element in the array. (Note that the first element is assigned 0 as its index rather than 1).)
9393
MARKDOWN
9494
end
9595

@@ -136,4 +136,4 @@ end
136136

137137

138138

139-
next_step "playing_with_jquery"
139+
next_step "playing_with_jquery"

0 commit comments

Comments
 (0)