From 314fc1a75a9c95890faaad9809c3a455efc86948 Mon Sep 17 00:00:00 2001 From: Abhisek Pattnaik Date: Sat, 26 Dec 2015 06:59:21 +0530 Subject: [PATCH] Global vs. Local Scope in Functions --- .../basic-javascript.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/seed/challenges/01-front-end-development-certification/basic-javascript.json b/seed/challenges/01-front-end-development-certification/basic-javascript.json index ebe63ec6cf..2e8c897553 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -2024,9 +2024,9 @@ "id": "56533eb9ac21ba0edf2244c0", "title": "Global vs. Local Scope in Functions", "description": [ - "It is possible to have both a local and global variables with the same name. When you do this, the local variable takes precedence over the global variable.", + "It is possible to have both a local and global variables with the same name. When you do this, the local variable takes precedence over the global variable.", "In this example:", - "
var someVar = \"Hat\";
function myFun() {
var someVar = \"Head\";
return someVar;
}
", + "
var someVar = \"Hat\";
function myFun() {
var someVar = \"Head\";
return someVar;
}
", "The function myFun will return \"Head\" because the local version of the variable is present.", "

Instructions

", "Add a local variable to myFunction to override the value of outerWear with \"sweater\"." @@ -2043,9 +2043,9 @@ "", "function myFunction() {", " // Only change code below this line", - "", - "", - "", + " ", + " ", + " ", " // Only change code above this line", " return outerWear;", "}",