From a9ff687ce8c248fc6804e9c1ab1e0ca28c183741 Mon Sep 17 00:00:00 2001 From: SaintPeter Date: Tue, 29 Dec 2015 22:35:03 -0800 Subject: [PATCH] Minor fixes from QA --- .../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 0e93d4581f..c20cd9793a 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -129,7 +129,7 @@ "assert(/var a;/.test(code) && /var b = 2;/.test(code), 'message: Do not change code above the line');", "assert(typeof a === 'number' && a === 7, 'message: a should have a value of 7');", "assert(typeof b === 'number' && b === 7, 'message: b should have a value of 7');", - "assert(/b\\s*=\\s*a\\s*;/g.test(code) > 0, 'message: a should be assigned to b with =');" + "assert(/b\\s*=\\s*a\\s*;/g.test(code), 'message: a should be assigned to b with =');" ], "type": "waypoint", "challengeType": "1", @@ -146,7 +146,7 @@ "It is common to initialize a variable to an initial value in the same line as it is declared.", "", "var myVar = 0;", - "Creates a new variable called myVar and assigns it an inital value of 0.", + "Creates a new variable called myVar and assigns it an initial value of 0.", "", "

Instructions

", "Define a variable a with var and initialize it to a value of 9." @@ -984,7 +984,7 @@ "description": [ "We can also use the += operator to concatenate a string onto the end of an existing string variable. This can be very helpful to break a long string over several lines.", "

Instructions

", - "Build myStr over several lines by concatenating these two strings:
\"This is the first sentance. \" and \"This is the second sentance.\" using the += operator." + "Build myStr over several lines by concatenating these two strings:
\"This is the first sentence. \" and \"This is the second sentence.\" using the += operator." ], "releasedOn": "January 1, 2016", "challengeSeed": [ @@ -999,10 +999,10 @@ "" ], "solutions": [ - "var ourStr = \"I come first. \";\nourStr += \"I come second.\";\n\nvar myStr = \"This is the first sentance. \";\nmyStr += \"This is the second sentance.\";" + "var ourStr = \"I come first. \";\nourStr += \"I come second.\";\n\nvar myStr = \"This is the first sentence. \";\nmyStr += \"This is the second sentence.\";" ], "tests": [ - "assert(myStr === \"This is the first sentance. This is the second sentance.\", 'message: myStr should have a value of This is the first sentance. This is the second sentance.');", + "assert(myStr === \"This is the first sentence. This is the second sentence.\", 'message: myStr should have a value of This is the first sentence. This is the second sentence.');", "assert(code.match(/\\w\\s*\\+=\\s*\"/g).length > 1 && code.match(/\\w\\s*\\=\\s*\"/g).length > 1, 'message: Use the += operator to build myStr');" ], "type": "waypoint",