From 95f5e8dcd46484c6c3a23e8898795d38394f13a4 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/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json b/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json index 792406d7d3..31bddbb831 100644 --- a/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json +++ b/seed/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": [