From 591c6503f83420e78ee35e10b093e2b26b9c164a Mon Sep 17 00:00:00 2001 From: Dieter Daems Date: Sat, 2 Jan 2016 20:48:38 +0100 Subject: [PATCH] Add a example to Reverse Arrays waypoint --- .../object-oriented-and-functional-programming.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json b/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json index 792406d7d3..31bddbb831 100644 --- a/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json +++ b/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json @@ -503,6 +503,8 @@ "description": [ "You can use the reverse method to reverse the elements of an array.", "reverse is another array method that alters the array in place, but it also returns the reversed array.", + "var myArray = [1, 2, 3];\n myArray.reverse();", + "returns [3, 2, 1]", "Use reverse to reverse the array variable and assign it to newArray." ], "tests": [