From cb35d49a210950f672b602412e86346e5f940de5 Mon Sep 17 00:00:00 2001 From: Niraj Nandish Date: Fri, 22 Feb 2019 02:58:31 +0400 Subject: [PATCH] fix(challenges): Fix broken links in English challenges (#35125) --- .../assignment-with-a-returned-value.english.md | 2 +- .../generate-random-fractions-with-javascript.english.md | 2 +- .../basic-javascript/record-collection.english.md | 4 ++-- .../react/introducing-inline-styles.english.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/assignment-with-a-returned-value.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/assignment-with-a-returned-value.english.md index 3217ece57f..bad5dede90 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/assignment-with-a-returned-value.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/assignment-with-a-returned-value.english.md @@ -7,7 +7,7 @@ videoUrl: 'https://scrimba.com/c/ce2pEtB' ## Description
-If you'll recall from our discussion of Storing Values with the Assignment Operator, everything to the right of the equal sign is resolved before the value is assigned. This means we can take the return value of a function and assign it to a variable. +If you'll recall from our discussion of Storing Values with the Assignment Operator, everything to the right of the equal sign is resolved before the value is assigned. This means we can take the return value of a function and assign it to a variable. Assume we have pre-defined a function sum which adds two numbers together, then: ourSum = sum(5, 12); will call sum function, which returns a value of 17 and assigns it to ourSum variable. diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/generate-random-fractions-with-javascript.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/generate-random-fractions-with-javascript.english.md index 8510ee9216..1e3a48c21b 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/generate-random-fractions-with-javascript.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/generate-random-fractions-with-javascript.english.md @@ -9,7 +9,7 @@ videoUrl: 'https://scrimba.com/c/cyWJJs3'
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 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 return the value of the Math.random() function.
## Instructions diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/record-collection.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/record-collection.english.md index 9f44563af0..0a4030d013 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/record-collection.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/record-collection.english.md @@ -15,9 +15,9 @@ There are several rules for handling incomplete data: If prop is "tracks" but the album doesn't have a "tracks" property, create an empty array before adding the new value to the album's corresponding property. If prop is "tracks" and value isn't empty (""), push the value onto the end of the album's existing tracks array. If value is empty (""), delete the given prop property from the album. -Hints
Use bracket notation when accessing object properties with variables. +Hints
Use bracket notation when accessing object properties with variables. Push is an array method you can read about on Mozilla Developer Network. -You may refer back to Manipulating Complex Objects Introducing JavaScript Object Notation (JSON) for a refresher. +You may refer back to Manipulating Complex Objects Introducing JavaScript Object Notation (JSON) for a refresher.
## Instructions diff --git a/curriculum/challenges/english/03-front-end-libraries/react/introducing-inline-styles.english.md b/curriculum/challenges/english/03-front-end-libraries/react/introducing-inline-styles.english.md index b9aa8c369f..16d5d8ab31 100644 --- a/curriculum/challenges/english/03-front-end-libraries/react/introducing-inline-styles.english.md +++ b/curriculum/challenges/english/03-front-end-libraries/react/introducing-inline-styles.english.md @@ -7,7 +7,7 @@ isRequired: false ## Description
-There are other complex concepts that add powerful capabilities to your React code. But you may be wondering about the more simple problem of how to style those JSX elements you create in React. You likely know that it won't be exactly the same as working with HTML because of the way you apply classes to JSX elements. +There are other complex concepts that add powerful capabilities to your React code. But you may be wondering about the more simple problem of how to style those JSX elements you create in React. You likely know that it won't be exactly the same as working with HTML because of the way you apply classes to JSX elements. If you import styles from a stylesheet, it isn't much different at all. You apply a class to your JSX element using the className attribute, and apply styles to the class in your stylesheet. Another option is to apply inline styles, which are very common in ReactJS development. You apply inline styles to JSX elements similar to how you do it in HTML, but with a few JSX differences. Here's an example of an inline style in HTML: <div style="color: yellow; font-size: 16px">Mellow Yellow</div>