From df2c747d64bd5621ffb9e994a833a4cd9c57bbce Mon Sep 17 00:00:00 2001 From: Abhisek Pattnaik Date: Sat, 26 Dec 2015 04:17:26 +0530 Subject: [PATCH] Write Reusable JavaScript with Functions --- .../basic-javascript.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/challenges/01-front-end-development-certification/basic-javascript.json b/challenges/01-front-end-development-certification/basic-javascript.json index 4ea89e7175..c907b21888 100644 --- a/challenges/01-front-end-development-certification/basic-javascript.json +++ b/challenges/01-front-end-development-certification/basic-javascript.json @@ -1774,9 +1774,9 @@ "
function functionName() {
console.log(\"Hello World\");
}
", "You can call or invoke this function by using its name followed by parentheses, like this:", "functionName();", - "Each time the function is called it will print out the message \"Hello World\" on the dev console. All of the code between the curly braces will be executed every time the function is called.", + "Each time the function is called it will print out the message \"Hello World\" on the dev console. All of the code between the curly braces will be executed every time the function is called.", "

Instructions

", - "Create a function called myFunction which prints \"Hi World\" to the dev console. Call that function." + "
  1. Create a function called myFunction which prints \"Hi World\" to the dev console.
  2. Call the function.
" ], "tests": [ "assert(typeof myFunction === 'function', 'message: myFunction should be a function');",