From 3a81e6efb3e699a68f80caa6ab77eed6bc90e09c Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Fri, 14 Aug 2015 14:40:02 -0700 Subject: [PATCH] improve javascript challenge copy --- seed/challenges/basic-javascript.json | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/seed/challenges/basic-javascript.json b/seed/challenges/basic-javascript.json index 678ca0d700..fb8bcbc13f 100644 --- a/seed/challenges/basic-javascript.json +++ b/seed/challenges/basic-javascript.json @@ -7,13 +7,12 @@ "title": "Comment your JavaScript Code", "difficulty":"9.98", "description":[ - "Comment are lines of code that the computer intentionally ignores. Comments are a great way leave notes to yourself and other people who will later need to maintain your code and figure out what it does.", - "Employers will expect you to be able to writing readable code, and comments are a great way to improve readability.", - "Let's take a look at the two ways in which we can write a comment in JavaScript.", - "The double-slash comment will comment out all the text on the line that follows:", - "//This is a comment. ", - "The slash-star-star-slash comment will comment out everything the /*and */ characters:", - "/*This is also a comment*/ ", + "Comments are lines of code that your computer will intentionally ignore. Comments are a great way to leave notes to yourself and to other people who will later need to figure out what it does.", + "Let's take a look at the two ways you can write comments in JavaScript.", + "The double-slash comment will comment out the remainder of the text on the current line:", + "// This is a comment.", + "The slash-star-star-slash comment will comment out everything between the /* and the */ characters:", + "/* This is also a comment */", "Try creating one of each." ], "tests":[ @@ -658,7 +657,7 @@ "In JavaScript, we can divide up our code into reusable parts called functions.", "Here's an example of a function:", "function functionName (a, b) {", - " return(a + b);", + "  return(a + b);", "}", "We can \"call\" our function like this: functionName();, and it will run and return it's return value to us.", "Create and call a function called myFunction." @@ -672,7 +671,7 @@ "", "ourFunction = function() {", " return a - b;", - "}", + "};", "", "//Don't modify above this line", "//Create a function called myFunction that returns the value of a plus b.",