diff --git a/challenges/01-front-end-development-certification/basic-javascript.json b/challenges/01-front-end-development-certification/basic-javascript.json index 81fc7cc5656..2e15db6aa45 100644 --- a/challenges/01-front-end-development-certification/basic-javascript.json +++ b/challenges/01-front-end-development-certification/basic-javascript.json @@ -440,8 +440,7 @@ "title": "Create Decimal Numbers with JavaScript", "description": [ "We can store decimal numbers in variables too. Decimal numbers are sometimes refered to as floating point numbers or floats.", - "Note", - "Not all real numbers can accurately be represented in floating point. This can lead to rounding errors. Details Here.", + "Note
Not all real numbers can accurately be represented in floating point. This can lead to rounding errors. Details Here.", "

Instructions

", "Create a variable myDecimal and give it a decimal value." ], @@ -525,11 +524,9 @@ "The remainder operator % gives the remainder of the division of two numbers.", "Example", "
5 % 2 = 1 because
Math.floor(5 / 2) = 2 (Quotient)
2 * 2 = 4
5 - 4 = 1 (Remainder)
", - "Usage", - "In mathematics, a number can be checked even or odd by checking the remainder of the division of the number by 2.", + "Usage
In mathematics, a number can be checked even or odd by checking the remainder of the division of the number by 2.", "
17 % 2 = 1 (17 is Odd)
48 % 2 = 0 (48 is Even)
", - "Note", - "The remainder operator is sometimes incorrectly refered to as the \"modulus\" operator. It is very similar to modulus, but does not work properly with negative numbers.", + "Note
The remainder operator is sometimes incorrectly refered to as the \"modulus\" operator. It is very similar to modulus, but does not work properly with negative numbers.", "

Instructions

", "Set remainder equal to the remainder of 11 divided by 3 using the remainder (%) operator." ], @@ -1103,8 +1100,7 @@ "For example, the character at index 0 in the word \"Charles\" is \"C\". So if var firstName = \"Charles\", you can get the value of the first letter of the string by using firstName[0].", "

Instructions

", "Use bracket notation to find the first character in the lastName variable and assign it to firstLetterOfLastName.", - "Hint", - "
Try looking at the firstLetterOfFirstName variable declaration if you get stuck." + "Hint
Try looking at the firstLetterOfFirstName variable declaration if you get stuck." ], "challengeSeed": [ "// Example", @@ -1177,8 +1173,7 @@ "Remember that computers start counting at 0, so the first character is actually the zeroth character.", "

Instructions

", "Let's try to set thirdLetterOfLastName to equal the third letter of the lastName variable.", - "Hint", - "
Try looking at the secondLetterOfFirstName variable declaration if you get stuck." + "Hint
Try looking at the secondLetterOfFirstName variable declaration if you get stuck." ], "challengeSeed": [ "// Example", @@ -1213,8 +1208,7 @@ "For example, if var firstName = \"Charles\", you can get the value of the last letter of the string by using firstName[firstName.length - 1].", "

Instructions

", "Use bracket notation to find the last character in the lastName variable.", - "Hint", - "
Try looking at the lastLetterOfFirstName variable declaration if you get stuck." + "Hint
Try looking at the lastLetterOfFirstName variable declaration if you get stuck." ], "challengeSeed": [ "// Example", @@ -1250,8 +1244,7 @@ "For example, you can get the value of the third-to-last letter of the var firstName = \"Charles\" string by using firstName[firstName.length - 3]", "

Instructions

", "Use bracket notation to find the second-to-last character in the lastName string.", - " Hint", - "
Try looking at the thirdToLastLetterOfFirstName variable declaration if you get stuck." + " Hint
Try looking at the thirdToLastLetterOfFirstName variable declaration if you get stuck." ], "challengeSeed": [ "// Example", @@ -1325,8 +1318,7 @@ "You start an array declaration with an opening square bracket, end it with a closing square bracket, and put a comma between each entry, like this:
var sandwich = [\"peanut butter\", \"jelly\", \"bread\"].", "

Instructions

", "Create a new array called myArray that contains both a string and a number (in that order).", - "Hint", - "
Refer to the example code in the text editor if you get stuck." + "Hint
Refer to the example code in the text editor if you get stuck." ], "challengeSeed": [ "// Example", @@ -2828,8 +2820,7 @@ "Cases for 1, 2, and 3 will all produce the same result.", "

Instructions

", "Write a switch statement to set answer for the following ranges:
1-3 - \"Low\"
4-6 - \"Mid\"
7-9 - \"High\"", - "Note", - "You will need to have a case statement for each number in the range." + "Note
You will need to have a case statement for each number in the range." ], "releasedOn": "January 1, 2016", "challengeSeed": [ @@ -3922,8 +3913,7 @@ "description": [ "Random numbers are useful for creating random behavior.", "JavaScript has a Math.random() function that generates a random decimal number between 0 (inclusive) and not quite up to 1 (exclusive). Thus Math.random() can return a 0 but never quite return a 1", - "Note", - "Like Storing Values with the Equal Operator, all function calls will be resolved before the return executes, so we can simply return the value of the Math.random() function.", + "Note
Like Storing Values with the Equal Operator, all function calls will be resolved before the return executes, so we can simply return the value of the Math.random() function.", "

Instructions

", "Change myFunction to return a random number instead of returning 0." ],