Merge branch 'master' of github.com:FreeCodeCamp/freecodecamp
This commit is contained in:
@ -12,6 +12,7 @@ var links =
|
|||||||
"Currying": "https://leanpub.com/javascript-allonge/read#pabc",
|
"Currying": "https://leanpub.com/javascript-allonge/read#pabc",
|
||||||
"Smallest Common Multiple": "https://www.mathsisfun.com/least-common-multiple.html",
|
"Smallest Common Multiple": "https://www.mathsisfun.com/least-common-multiple.html",
|
||||||
"Permutations": "https://www.mathsisfun.com/combinatorics/combinations-permutations.html",
|
"Permutations": "https://www.mathsisfun.com/combinatorics/combinations-permutations.html",
|
||||||
|
"HTML Entities": "http://dev.w3.org/html5/html-author/charref",
|
||||||
|
|
||||||
// ========= GLOBAL OBJECTS
|
// ========= GLOBAL OBJECTS
|
||||||
"Global Array Object" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array",
|
"Global Array Object" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array",
|
||||||
|
@ -832,7 +832,7 @@
|
|||||||
"difficulty": "2.03",
|
"difficulty": "2.03",
|
||||||
"description": [
|
"description": [
|
||||||
"Perform a search and replace on the sentence using the arguments provided and return the new sentence.",
|
"Perform a search and replace on the sentence using the arguments provided and return the new sentence.",
|
||||||
"First argument is the sentence the perform the search and replace on.",
|
"First argument is the sentence to perform the search and replace on.",
|
||||||
"Second argument is the word that you will be replacing (before).",
|
"Second argument is the word that you will be replacing (before).",
|
||||||
"Third argument is what you will be replacing the second argument with (after).",
|
"Third argument is what you will be replacing the second argument with (after).",
|
||||||
"NOTE: Preserve the case of the original word when you are replacing it. For example if you mean to replace the word 'Book' with the word 'dog', it should be replaced as 'Dog'",
|
"NOTE: Preserve the case of the original word when you are replacing it. For example if you mean to replace the word 'Book' with the word 'dog', it should be replaced as 'Dog'",
|
||||||
@ -966,7 +966,8 @@
|
|||||||
"expect(fearNotLetter('yz')).to.be.undefined;"
|
"expect(fearNotLetter('yz')).to.be.undefined;"
|
||||||
],
|
],
|
||||||
"MDNlinks": [
|
"MDNlinks": [
|
||||||
"String.charCodeAt()"
|
"String.charCodeAt()",
|
||||||
|
"String.fromCharCode()"
|
||||||
],
|
],
|
||||||
"challengeType": 5,
|
"challengeType": 5,
|
||||||
"nameCn": "",
|
"nameCn": "",
|
||||||
@ -1064,7 +1065,7 @@
|
|||||||
"name": "Bonfire: Convert HTML Entities",
|
"name": "Bonfire: Convert HTML Entities",
|
||||||
"difficulty": "2.07",
|
"difficulty": "2.07",
|
||||||
"description": [
|
"description": [
|
||||||
"Convert the characters \"&\", \"<\", \">\", '\"', and \"'\", in a string to their corresponding HTML entities.",
|
"Convert the characters \"&\", \"<\", \">\", '\"' (double quote), and \"'\" (apostrophe), in a string to their corresponding HTML entities.",
|
||||||
"Remember to use <a href='/field-guide/how-do-i-get-help-when-I-get-stuck' target='_blank'>RSAP</a> if you get stuck. Try to pair program. Write your own code."
|
"Remember to use <a href='/field-guide/how-do-i-get-help-when-I-get-stuck' target='_blank'>RSAP</a> if you get stuck. Try to pair program. Write your own code."
|
||||||
],
|
],
|
||||||
"challengeSeed": [
|
"challengeSeed": [
|
||||||
@ -1077,10 +1078,12 @@
|
|||||||
],
|
],
|
||||||
"tests": [
|
"tests": [
|
||||||
"assert.strictEqual(convert('Dolce & Gabbana'), 'Dolce & Gabbana', 'should escape characters');",
|
"assert.strictEqual(convert('Dolce & Gabbana'), 'Dolce & Gabbana', 'should escape characters');",
|
||||||
|
"assert.strictEqual('<input type="submit">Submit</input>', '<input type="submit">Submit</input>', 'should escape characters');",
|
||||||
"assert.strictEqual(convert('abc'), 'abc', 'should handle strings with nothing to escape');"
|
"assert.strictEqual(convert('abc'), 'abc', 'should handle strings with nothing to escape');"
|
||||||
],
|
],
|
||||||
"MDNlinks": [
|
"MDNlinks": [
|
||||||
"RegExp"
|
"RegExp",
|
||||||
|
"HTML Entities"
|
||||||
],
|
],
|
||||||
"challengeType": 5,
|
"challengeType": 5,
|
||||||
"nameCn": "",
|
"nameCn": "",
|
||||||
|
Reference in New Issue
Block a user