|
|
{"_id":"q-en-freeCodeCamp-0027c152c40d885a5c1739ca68ddcd30b0555c812a7be0d84e57556505e54f6d","text":"def draw(self, number): drawn = [] if number >= len(self.contents): <del> return self.contents </del> <ins> drawn.extend(self.contents) self.contents = [] </ins> else: for i in range(number): drawn.append("} |
|
|
{"_id":"q-en-freeCodeCamp-008b273577a49ba4a2871b50fd3a1257f0d0f6296de62adbfbd41a8e6046d2e1","text":"```` - Additional information in the form of a note should be formatted `<strong>Note:</strong> Rest of note text...` <ins> - If multiple notes are needed, then list all of the notes in separate sentences using the format `<strong>Notes:</strong> First note text. Second note text.`. </ins> - Use double quotes where applicable ## Formatting seed code"} |
|
|
{"_id":"q-en-freeCodeCamp-00e7b0164a26861ae6e1f4cd9c99d997ad38e11ab1738ab90e6aee854b8039b2","text":"assert(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[0]?.style?.fontSize === '6rem'); ``` <del> Your `.hero-subtitle, .author, .quote, .list-header` selector should have a `font-size` set to `1.8rem`. </del> <ins> Your `.hero-subtitle, .author, .quote, .list-title` selector should have a `font-size` set to `1.8rem`. </ins> ```js assert(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[1]?.style?.fontSize === '1.8rem');"} |
|
|
{"_id":"q-en-freeCodeCamp-042908f416b75b2b25a62e938a5bf532aaf13f6615c0115b33533a6d1dbdcf2d","text":"--- <del> The kitchen </del> <ins> Kitchen </ins> ### --feedback--"} |
|
|
{"_id":"q-en-freeCodeCamp-056f1945a19c5797751c72f5037ec1cc29ae53a90663fcb1f1b395ee2a9c6e62","text":"\"invalid-protocol\": \"URL must start with http or https\", \"url-not-image\": \"URL must link directly to an image file\", \"use-valid-url\": \"Please use a valid URL\" <ins> }, \"certification\": { \"certifies\": \"This certifies that\", \"completed\": \"has successfully completed the freeCodeCamp.org\", \"developer\": \"Developer Certification, representing approximately\", \"executive\": \"Executive Director, freeCodeCamp.org\", \"verify\": \"Verify this certification at {{certURL}}\", \"issued\": \"Issued\" </ins> } }"} |
|
|
{"_id":"q-en-freeCodeCamp-05ea99031872297fce837c5d6b5152e5c903265eef44b6e4942f3799d734f983","text":"## Instructions <section id='instructions'> <ins> Modify the <code>myApp.js</code> file to log \"Hello World\" to the console. </ins> </section> ## Tests"} |
|
|
{"_id":"q-en-freeCodeCamp-065de47a056ff55b6dd7fd0b7701753aaa33143c884fc6e9f8daea229768792f","text":"\"assert(Enzyme.mount(React.createElement(CheckUserAge)).find('div').find('input').length === 1 && Enzyme.mount(React.createElement(CheckUserAge)).find('div').find('button').length === 1, 'message: The <code>CheckUserAge</code> component should render with a single <code>input</code> element and a single <code>button</code> element.') |
|
|
{"_id":"q-en-freeCodeCamp-06bea0a9405cf6837c7d1a93da700adfeb06c4da6ce8655b51d4bfb05b3d2c1a","text":"# --description-- <del> The text `* Daily Value %` should be aligned to the right. Create a `.right` selector and use the `justify-content` property to do it. </del> <ins> The text `% Daily Value *` should be aligned to the right. Create a `.right` selector and use the `justify-content` property to do it. </ins> # --hints--"} |
|
|
{"_id":"q-en-freeCodeCamp-0982b2e8a8545086a0e8f1b1c3a51117378f4ceca1b0782206e1d8e9160d433b","text":"# --description-- <del> Create a third `@media` query for `only screen` with a `max-width` of `550px`. Within, create a `.hero-title` selector with a `font-size` set to `6rem`, a `.hero-subtitle, .author, .quote, .list-header` selector with a `font-size` set to `1.8rem`, a `.social-icons` selector with a `font-size` set to `2rem`, and a `.text` selector with a `font-size` set to `1.6rem`. </del> <ins> Create a third `@media` query for `only screen` with a `max-width` of `550px`. Within, create a `.hero-title` selector with a `font-size` set to `6rem`, a `.hero-subtitle, .author, .quote, .list-title` selector with a `font-size` set to `1.8rem`, a `.social-icons` selector with a `font-size` set to `2rem`, and a `.text` selector with a `font-size` set to `1.6rem`. </ins> # --hints--"} |
|
|
{"_id":"q-en-freeCodeCamp-09af21171be3bbfea264b818615fd4e3f2bd15955cdf0376acc16bce68076313","text":"You should declare a variable named `xp`. ```js <del> assert.match(code, /xp/); </del> <ins> assert.match(code, /lets+xp/); </ins> ``` You should not assign a value to your variable."} |
|
|
{"_id":"q-en-freeCodeCamp-0ab9ddb161a0cc6acb7cf4d16d7c831af0212b8aa0e546e077a4efdc24825f38","text":"man -f shutdown ``` <ins> #### Display the man page of ASCII table: ```bash man ascii ``` </ins> ### More information: * [Wikipedia](https://en.wikipedia.org/wiki/Man_page)"} |
|
|
{"_id":"q-en-freeCodeCamp-0b5314ea9873103f54762d1d833387c7575b863b58c57c961970da9584263735","text":"Getting Started --------------- <ins> Note: If this is your first time working with a node-gyp dependent module, please follow the [node-gyp installation guide](https://github.com/nodejs/node-gyp#installation) to ensure a working npm build. </ins> The easiest way to get started is to clone the repository:"} |
|
|
{"_id":"q-en-freeCodeCamp-0c6d8004bc08a22aff644d97786a656bbe9fdcb811f0ae941e354fd6445d01d7","text":"Your `idToText` function should return the result of calling `.find()` on the `cells` array with a callback function that takes an `cell` parameter and returns `cell.id === id`. <ins> Both of your functions should use implicit returns. </ins> # --hints-- You should declare an `idToText` variable in your `evalFormula` function."} |
|
|
{"_id":"q-en-freeCodeCamp-0e507c2778a574c04ea03d9c55f420aafadbf4c0fb0ccff2e5abe86dc0c21b95","text":"\"title\": \"Periodic Table Database\", \"intro\": [ \"This is one of the required projects to earn your certification.\", <del> \"For this project, you will create Bash a script to get information about chemical elements from a periodic table database.\" </del> <ins> \"For this project, you will create a Bash script to get information about chemical elements from a periodic table database.\" </ins> ] }, \"build-a-salon-appointment-scheduler-project\": {"} |
|
|
{"_id":"q-en-freeCodeCamp-0f9f3586b612fa31a080ad0412240a6c0217e969a2c1e771713855b302bc572c","text":"<main className='information'> <div className='information-container'> <del> <h3>This certifies that</h3> </del> <ins> <h3>{t('certification.certifies')}</h3> </ins> <h1> <strong>{displayName}</strong> </h1> <del> <h3>has successfully completed the freeCodeCamp.org</h3> </del> <ins> <h3>{t('certification.completed')}</h3> </ins> <h1> <strong>{certTitle}</strong> </h1> <h4> <del> Developer Certification, representing approximately{' '} {completionTime} hours of coursework </del> <ins> {t('certification.developer')} {completionTime} hours of coursework </ins> </h4> </div> </main>"} |
|
|
{"_id":"q-en-freeCodeCamp-106d6e8f8982561d7ba39569d0e5991895ac17483c49df1d29cab0b02ec0bcb7","text":"# --description-- <del> This is one of the required projects to earn your certification. For this project, you will create Bash a script to get information about chemical elements from a periodic table database. </del> <ins> This is one of the required projects to earn your certification. For this project, you will create a Bash script to get information about chemical elements from a periodic table database. </ins> # --instructions--"} |
|
|
{"_id":"q-en-freeCodeCamp-12784011ca8f8db73a14313bcb0ae893f5e5d323a858b52c81a910bb6f45b88d","text":"--- <del> ```js console.log(`${string1} ${string2}`); ``` </del> <ins> ```console.log(`${string1} ${string2}`);``` </ins> ---"} |
|
|
{"_id":"q-en-freeCodeCamp-13ca893009691046fa09533cf0ec1ddf45f617b77f8de70a278bf618b89656e7","text":"Fulfill the below user stories and get all of the tests to pass. Use whichever libraries or APIs you need. Give it your own personal style. <del> You can use HTML, JavaScript, CSS, and the D3 svg-based visualization library. The tests require axes to be generated using the D3 axis property, which automatically generates ticks along the axis. These ticks are required for passing the D3 tests because their positions are used to determine alignment of graphed elements. You will find information about generating axes at <https://github.com/d3/d3/blob/master/API.md#axes-d3-axis>. Required (non-virtual) DOM elements are queried on the moment of each test. If you use a frontend framework (like Vue for example), the test results may be inaccurate for dynamic content. We hope to accommodate them eventually, but these frameworks are not currently supported for D3 projects. </del> <ins> You can use HTML, JavaScript, CSS, and the D3 svg-based visualization library. The tests require axes to be generated using the D3 axis property, which automatically generates ticks along the axis. These ticks are required for passing the D3 tests because their positions are used to determine alignment of graphed elements. You will find information about generating axes at <https://github.com/d3/d3/blob/master/API.md#axes-d3-axis>. Required DOM elements are queried on the moment of each test. If you use a frontend framework (like Vue for example), the test results may be inaccurate for dynamic content. We hope to accommodate them eventually, but these frameworks are not currently supported for D3 projects. </ins> **User Story #1:** I can see a title element that has a corresponding `id=\"title\"`."} |
|
|
{"_id":"q-en-freeCodeCamp-1581878a553b2f1b04886edd07387a5856b7664da529c1398215dcaf73859a8c","text":"# --instructions-- <del> In the package.json file, your current rule for how npm may upgrade `@freecodecamp/example` is to use a specific version (1.2.13). But now, you want to allow the latest 1.2.x version. </del> <ins> In the package.json file, your current rule for how npm may upgrade `@freecodecamp/example` is to use a specific version (`1.2.13`). But now, you want to allow the latest `1.2.x` version. </ins> Use the tilde (`~`) character to prefix the version of `@freecodecamp/example` in your dependencies, and allow npm to update it to any new _patch_ release."} |
|
|
{"_id":"q-en-freeCodeCamp-177a570eba08ff180724305dedf02b887deeeb519ea6acebae02b80c4ac2bfc9","text":"return ( <FullWidthRow key={superBlock}> <Spacer /> <del> <h3>Full Stack Certification</h3> </del> <ins> <h3>Legacy Full Stack Certification</h3> </ins> <div> <p> Once you've earned the following freeCodeCamp certifications, you'll <del> be able to claim The Full Stack Developer Certification: </del> <ins> be able to claim the Legacy Full Stack Developer Certification: </ins> </p> <ul> <li>Responsive Web Design</li>"} |
|
|
{"_id":"q-en-freeCodeCamp-1860d5cc6cdcf6c59b70664e642c96a613a05f28d571a5afcb26c98a2b18c650","text":"Functional programming is all about creating and using non-mutating functions. <del> The last challenge introduced the `concat` method as a way to combine arrays into a new one without mutating the original arrays. Compare `concat` to the `push` method. `push` adds an item to the end of the same array it is called on, which mutates that array. Here's an example: </del> <ins> The last challenge introduced the `concat` method as a way to merge arrays into a new array without mutating the original arrays. Compare `concat` to the `push` method. `push` adds items to the end of the same array it is called on, which mutates that array. Here's an example: </ins> ```js const arr = [1, 2, 3]; <del> arr.push([4, 5, 6]); </del> <ins> arr.push(4, 5, 6); </ins> ``` <del> `arr` would have a modified value of `[1, 2, 3, [4, 5, 6]]`, which is not the functional programming way. </del> <ins> `arr` would have a modified value of `[1, 2, 3, 4, 5, 6]`, which is not the functional programming way. </ins> <del> `concat` offers a way to add new items to the end of an array without any mutating side effects. </del> <ins> `concat` offers a way to merge new items to the end of an array without any mutating side effects. </ins> # --instructions-- <del> Change the `nonMutatingPush` function so it uses `concat` to add `newItem` to the end of `original` instead of `push`. The function should return an array. </del> <ins> Change the `nonMutatingPush` function so it uses `concat` to merge `newItem` to the end of `original` without mutating `original` or `newItem` arrays. The function should return an array. </ins> # --hints--"} |
|
|
{"_id":"q-en-freeCodeCamp-1b7aeea71d3bc7c5c2095d605c4855e80d3614ad0f9b8d7f78b87b8fb779cc50","text":"<del> # Contributors Guide </del> <ins> # Contributor's Guide </ins> ## I want to help! We welcome pull requests from Free Code Camp campers (our students) and seasoned JavaScript developers alike! Follow these steps to contribute: <del> 1. Check our [public Waffle Board](https://waffle.io/freecodecamp/freecodecamp). 2. Pick an issue, let us know you're working on it, and start working on it. If you've found a bug that is not on the board, [follow these steps](#found-a-bug). 3. You can find issues we are seeking assistance on by searching for the [Help Wanted](https://github.com/FreeCodeCamp/FreeCodeCamp/labels/help%20wanted) tag. 4. Feel free to ask for help in our [Help Contributors](https://gitter.im/FreeCodeCamp/HelpContributors) Gitter room. </del> <ins> 1. Find an issue that needs assistance by searching for the [Help Wanted](https://github.com/FreeCodeCamp/FreeCodeCamp/labels/help%20wanted) tag. 2. Let us know you are working on it, by posting a comment on the issue. 3. Feel free to ask for help in our [Help Contributors](https://gitter.im/FreeCodeCamp/HelpContributors) Gitter room. If you've found a bug that is not on the board, [follow these steps](#found-a-bug). </ins> ## Contribution Guidelines 1. Fork the project: [How To Fork And Maintain a Local Instance of Free Code Camp](https://github.com/FreeCodeCamp/FreeCodeCamp/wiki/How-To-Fork-And-Maintain-a-Local-Instance-of-Free-Code-Camp) 2. Create a branch specific to the issue or feature you are working on. Push your work to that branch. ([Need help with branching?](https://github.com/Kunena/Kunena-Forum/wiki/Create-a-new-branch-with-git-and-manage-branches)) 3. Name the branch something like `fix/xxx` or `feature/xxx` where `xxx` is a short description of the changes or feature you are attempting to add. For example `fix/email-login` would be a branch where I fix something specific to email login. <del> 4. You should have [ESLint running in your editor](http://eslint.org/docs/user-guide/integrations.html), and it will highlight anything doesn't conform to [Free Code Camp's JavaScript Style Guide](https://github.com/FreeCodeCamp/FreeCodeCamp/wiki/Free-Code-Camp-JavaScript-Style-Guide) (you can find a summary of those rules [here](https://github.com/FreeCodeCamp/FreeCodeCamp/blob/staging/.eslintrc). Please do not ignore any linting errors, as they are meant to **help** you and to ensure a clean and simple code base. Make sure none of your JavaScript is longer than 80 characters per line. </del> <ins> 4. [Set up Linting](#linting-setup) to run as you make changes. 5. When you are ready to share your code, run the test suite `npm test` and ensure all tests pass. For Windows contributors, skip the jsonlint pretest run by using `npm run test-challenges`, as jsonlint will always fail on Windows, given the wildcard parameters. </ins> 5. Squash your Commits. Ref: [rebasing](https://github.com/FreeCodeCamp/FreeCodeCamp/wiki/git-rebase) <del> 6. Once your code is ready, submit a [pull request](https://github.com/FreeCodeCamp/FreeCodeCamp/wiki/Pull-Request-Contribute) from your branch to Free Code Camp's `staging` branch. We'll do a quick code review and give you feedback, then iterate from there. </del> <ins> 6. Submit a [pull request](https://github.com/FreeCodeCamp/FreeCodeCamp/wiki/Pull-Request-Contribute) from your branch to Free Code Camp's `staging` branch. [Travis CI](https://travis-ci.org/FreeCodeCamp/FreeCodeCamp) will then take your code and run `npm test`. Make sure this passes, then we'll do a quick code review and give you feedback, then iterate from there. </ins> Prerequisites"} |
|
|
{"_id":"q-en-freeCodeCamp-1b8a3a353d57c87b8e8bc8f1b5b2933a7a247781a39fffa4aa7f0d506d7e613b","text":"# --description-- <del> Find the number of non-empty subsets of ${11, 22, 33, ldots, {250250}^{250250}}$, the sum of whose elements is divisible by 250. Enter the rightmost 16 digits as your answer. </del> <ins> Find the number of non-empty subsets of ${{1}^{1}, {2}^{2}, {3}^{3}, ldots, {250250}^{250250}}$, the sum of whose elements is divisible by 250. Enter the rightmost 16 digits as your answer. </ins> # --hints--"} |
|
|
{"_id":"q-en-freeCodeCamp-1b906d0c27dc693721f708222dcd4c3d9ba494ccf43ce7bf0f030a13ddcb89c7","text":"# --description-- <del> The phrase `let me show you` can be used to direct attention and introduce something. For example: `Here's the main office area. And over there, let me show you, that's the conference room.` </del> <ins> The phrase `let me show you` can be used to direct attention and introduce something. For example: `This is the main office area. Let me show you to the conference room.` </ins> # --question-- ## --text-- <del> What is the speaker directing attention to after saying `let me show you`? </del> <ins> What is Maria directing attention to? </ins> ## --answers-- <del> The main office area </del> <ins> Main office area </ins> ### --feedback--"} |
|
|
{"_id":"q-en-freeCodeCamp-1c188e82454c818f14c6030a096429f011a61b1bd67acf2c849e136a4063b9c2","text":"import debug from 'debug'; import { isEmail } from 'validator'; import format from 'date-fns/format'; <ins> import { reportError } from '../middlewares/sentry-error-handler.js'; </ins> import { ifNoUser401 } from '../utils/middleware'; import { observeQuery } from '../utils/rx';"} |
|
|
{"_id":"q-en-freeCodeCamp-1c5f380adfabbb684dd90c60fec5c50fcc55cd7ed5906d778a6e42cc6d2239a6","text":".hero-subtitle, .author, .quote, <del> .list-header { </del> <ins> .list-title { </ins> font-size: 1.8rem; }"} |
|
|
{"_id":"q-en-freeCodeCamp-1ca92af9c7a9318709265cb74c7f2dd9e6afbdc2298cfc70b1f31d9bc73c6e15","text":"- Your function must always return the entire `records` object. - If `value` is an empty string, delete the given `prop` property from the album. - If `prop` isn't `tracks` and `value` isn't an empty string, assign the `value` to that album's `prop`. <del> - If `prop` is `tracks` and value isn't an empty string, add the `value` to the end of the album's `tracks` array. You need to create this array first if the album does not have a `tracks` property. </del> <ins> - If `prop` is `tracks` and `value` isn't an empty string, you need to update the album's `tracks` array. First, if the album does not have a `tracks` property, assign it an empty array. Then add the `value` as the last item in the album's `tracks` array. </ins> **Note:** A copy of the `recordCollection` object is used for the tests. You should not directly modify the `recordCollection` object."} |
|
|
{"_id":"q-en-freeCodeCamp-1caaf0bb206d255294a1d5f8fa11a27db22eec215fb0de23e1bfbc9e312cde25","text":"programmer = \"CamperChan\"; ``` <del> Note that when reassigning a variable that has already been declared, you do **not** use the `let` keyword. </del> <ins> Note that when reassigning a variable, you do **not** use the `let` keyword again. </ins> After your `console.log`, assign the value `\"World\"` to your `character` variable."} |
|
|
{"_id":"q-en-freeCodeCamp-1d16868d0b78e376669e1122323424e41bf71194256f4c36aa77f7ac541fcabb","text":"Your `#video` should have a `src` attribute. ```js <del> const el = document.getElementById('video') assert(!!el && !!el.src) </del> <ins> let el = document.getElementById('video') const sourceNode = el.children; let sourceElement = null; if (sourceNode.length) { sourceElement = [...video.children].filter(el => el.localName === 'source')[0]; } if (sourceElement) { el = sourceElement; } assert(el.hasAttribute('src')); </ins> ``` You should have a `form` element with an `id` of `form`."} |
|
|
{"_id":"q-en-freeCodeCamp-1e348c242b09d78b776fbbcab8bfa79dd5a7ce6c0df51ff3c3c32951c69b19b5","text":"editor.addAction({ id: 'toggle-accessibility', label: 'Toggle Accessibility Mode', <del> keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.KEY_E], </del> <ins> keybindings: [ monaco.KeyMod.CtrlCmd | monaco.KeyCode.KEY_E, monaco.KeyMod.WinCtrl | monaco.KeyCode.KEY_E ], </ins> run: () => { const currentAccessibility = storedAccessibilityMode();"} |
|
|
{"_id":"q-en-freeCodeCamp-1e43d5a681ecc04ece7608cd30b240e882f9cd3ccc95f930fc5da19ddf3548ee","text":"isDonating } = user; <del> console.log(showDonation); </del> return ( <Fragment> <Camper"} |
|
|
{"_id":"q-en-freeCodeCamp-1e84641af5f02d2083727627384531b82f7280f78a41bd235b3dd22cc20b5aa6","text":"\"invalid-protocol\": \"URL 必须以 http 或 https 开头\", \"url-not-image\": \"URL 必须直接链接到图片文件\", \"use-valid-url\": \"请使用有效的 URL\" <ins> }, \"certification\": { \"certifies\": \"Chinese: This certifies that\", \"completed\": \"Chinese: has successfully completed the freeCodeCamp.org\", \"developer\": \"Chinese: Developer Certification, representing approximately\", \"executive\": \"Chinese: Executive Director, freeCodeCamp.org\", \"verify\": \"Chinese: Verify this certification at {{certURL}}\", \"issued\": \"Chinese: Issued\" </ins> } }"} |
|
|
{"_id":"q-en-freeCodeCamp-22f5affef886eda7a3d067b2abb2ca890b70868fce74cd31cce51217e6306fb6","text":"# --description-- <del> The `border-radius` property accepts up to four values to round the round the top-left, top-right, bottom-right, and bottom-left corners. </del> <ins> The `border-radius` property accepts up to four values to round the top-left, top-right, bottom-right, and bottom-left corners. </ins> Round the top-left corner of `.three` by 30 pixels, the top-right by 25 pixels, the bottom-right by 60 pixels, and bottom-left by 12 pixels."} |
|
|
{"_id":"q-en-freeCodeCamp-2361d594ea4537ebbe6267721dc9d43b52968006f1bcfffd9364ab8030f009a1","text":"Fulfill the below user stories and get all of the tests to pass. Use whichever libraries or APIs you need. Give it your own personal style. <del> You can use HTML, JavaScript, CSS, and the D3 svg-based visualization library. Required (non-virtual) DOM elements are queried on the moment of each test. If you use a frontend framework (like Vue for example), the test results may be inaccurate for dynamic content. We hope to accommodate them eventually, but these frameworks are not currently supported for D3 projects. </del> <ins> You can use HTML, JavaScript, CSS, and the D3 svg-based visualization library. Required DOM elements are queried on the moment of each test. If you use a frontend framework (like Vue for example), the test results may be inaccurate for dynamic content. We hope to accommodate them eventually, but these frameworks are not currently supported for D3 projects. </ins> **User Story #1:** My heat map should have a title with a corresponding `id=\"title\"`."} |
|
|
{"_id":"q-en-freeCodeCamp-23633968ef84a80965cf39907ffd355144aade98c4957101c95d49d041a13f48","text":"#learn-app-wrapper h2.medium-heading { margin-bottom: 50px; <del> margin-top: 0px; </del> text-align: center; }"} |
|
|
{"_id":"q-en-freeCodeCamp-23954a7fd47e41d97d15590ca7c5368601b7ea90c663e7327d4d55429cf0149b","text":"\"description\": [ \"In computer science, <code>data structures</code> are things that hold data. JavaScript has seven of these. For example, the <code>Number</code> data structure holds numbers.\", \"Let's learn about the most basic data structure of all: the <code>Boolean</code>. Booleans can only hold the value of either true or false. They are basically little on-off switches.\", <del> \"Let's modify our <code>welcomeToBooleans</code>function so that it will return <code>true</code>instead of <code>false</code>when the run button is clicked.\" </del> <ins> \"Let's modify our <code>welcomeToBooleans</code> function so that it will return <code>true</code> instead of <code>false</code> when the run button is clicked.\" </ins> ], \"tests\": [ \"assert(typeof(welcomeToBooleans()) === 'boolean', 'message: The <code>welcomeToBooleans()</code> function should return a boolean ( |
|
|
{"_id":"q-en-freeCodeCamp-242b7ce8067d85cff2d0e9accbd19cb5b7ffba93dc1a3f3dd4359556c7f4475e","text":"Spreadsheet software typically uses `=` at the beginning of a cell to indicate a calculation should be used, and spreadsheet functions should be evaluated. <del> Update your `if` condition to also check if the first character of `value` is `=`. </del> <ins> Use the `&&` operator to add a second condition to your `if` statement that also checks if the first character of `value` is `=`. </ins> # --hints-- <del> Your `if` condition should also check if the first character of `value` is `=`. You may use `[0]`, `.startsWith()`, or `.charAt(0)`. </del> <ins> You should use the `&&` operator to add a second condition to your `if` statement that also checks if the first character of `value` is `=`. You may use `[0]`, `.startsWith()`, or `.charAt(0)`. </ins> ```js assert.match(code, /consts+updates*=s*(?s*events*)?s*=>s*{s*consts+elements*=s*event.target;?s*consts+values*=s*element.value.replace(s*/s/gs*,s*('|\"|`)1s*) |
|
|
{"_id":"q-en-freeCodeCamp-243562d420ce972357db59ab0c2f0faafa93254bd54017f615aa14e90c8347d6","text":"\"description\": [ \"Wir haben also gesehen dass Id Deklarationen die von Klassen überschreiben, egal wo sie in deinem <code>style</code> Element CSS stehen.\", \"Es gibt noch andere Wege CSS zu überschreiben. Erinnerst du dich an Inline Styles?\", <del> \"Benutze <code>in-line style</code> um dein <code>h1</code> Element weiß zu machen. Vergiss nicht, Inline Styles sehen so aus:\", </del> <ins> \"Benutze <code>inline style</code> um dein <code>h1</code> Element weiß zu machen. Vergiss nicht, Inline Styles sehen so aus:\", </ins> \"<code>< |
|
|
{"_id":"q-en-freeCodeCamp-24578eceb7ec6bf18b1b975a44a02c75ab5879f66a4ae804a5ed4035e14457fa","text":"## Instructions <section id='instructions'> <del> In the <code>penguin</code> class, create a variable name <code>--penguin-skin</code> and give it a value of <code>gray</code> </del> <ins> In the <code>penguin</code> class, create a variable name <code>--penguin-skin</code> and give it a value of <code>gray</code>. </ins> </section> ## Tests"} |
|
|
{"_id":"q-en-freeCodeCamp-254df91b4dd83ed27e6822926cd7e9e3e298a5196828676e59bad120d391f5f7","text":"assert.include(document.querySelector('#author-container > div')?.className, 'user-card'); ``` <del> Your `div` element should have the `id` of `index`. Remember to use template interpolation to set the `id`. </del> <ins> Your `div` element should have the `id` of `index`. Remember to use string interpolation to set the `id`. </ins> ```js displayAuthors([{author: \"Naomi\"}]);"} |
|
|
{"_id":"q-en-freeCodeCamp-2665f4ddd6ed620a593accc973cdfc7af01a354c66a206387c6d458894740725","text":"Variable naming follows specific rules: names can include letters, numbers, dollar signs, and underscores, but cannot contain spaces and must not begin with a number. <del> Declare a `character` variable in your code. </del> <ins> Use the `let` keyword to declare a variable called `character`. </ins> _Note_: It is common practice to end statements in JavaScript with a semicolon. `;`"} |
|
|
{"_id":"q-en-freeCodeCamp-28c3958eeb1b5ff381f56a3f18d75c41bac64efd6f5858b0a5fbb2d60eed189a","text":"<li>Front End Libraries</li> <li>Data Visualization</li> <li>APIs and Microservices</li> <del> <li>Quality Assurance</li> </del> <ins> <li>Legacy Information Security and Quality Assurance</li> </ins> </ul> </div>"} |
|
|
{"_id":"q-en-freeCodeCamp-29dc4bff6316f5f0bf70e425140891b387d57464b771e56d50c2b949d1062962","text":"# --description-- <del> We don't want a player's only weapon to break. The logical or operator checks if two statements are true. </del> <ins> We don't want a player's only weapon to break. The logical AND operator checks if two statements are true. </ins> <del> Use the <dfn>logical and</dfn> operator `&&` to add a second condition to your `if` statement. The player's weapon should only break if `inventory.length` does not equal (`!==`) one. </del> <ins> Use the <dfn>logical AND</dfn> operator `&&` to add a second condition to your `if` statement. The player's weapon should only break if `inventory.length` does not equal (`!==`) one. </ins> Here is an example of an `if` statement with two conditions:"} |
|
|
{"_id":"q-en-freeCodeCamp-2a2fa599d44eba9bc727f603fe21d6647d23b81181a631abaa4d28af3c79d0a6","text":"`myRegex` should use lazy matching ```js <del> assert(/?/g.test(myRegex)) |
|
|
{"_id":"q-en-freeCodeCamp-2a81d193059b81d22cf1d0e77659c75adf651d04827573b7cd0697492fb80e65","text":"loadScript(subscription, deleteScript) { if (deleteScript) scriptRemover('paypal-sdk'); <del> let queries = `?client-id=${this.props.clinetId}&disable-funding=credit,card`; </del> <ins> let queries = `?client-id=${this.props.clientId}&disable-funding=credit,card`; </ins> if (subscription) queries += '&vault=true'; scriptLoader("} |
|
|
{"_id":"q-en-freeCodeCamp-2bcb8cff59f50dfebe3f32768b4018097ddfeed0ead455932ac796c60635444f","text":"\"Aquí está el código que puedes poner en tu evento de pulsación para lograrlo:\", \"<blockquote>$.getJSON(\"/json/cats.json\", function(json) {</code></br> $(\".message\").html(JSON.stringify(json)) |
|
|
{"_id":"q-en-freeCodeCamp-2bcea5235dd77775c0f6cf2f7551d4b4f5418fc84a25252ec2f6d9ab4d19b8cb","text":"Your `for` loop should use `i < count` as the condition. ```js <del> assert.match(__helpers.removeJSComments(code), /fors*(s*lets+is*=s*0;s*is*<s*count;/); </del> <ins> assert.match(__helpers.removeJSComments(code), /fors*(s*lets+is*=s*0s*;s*is*<s*counts*;/); </ins> ``` # --seed--"} |
|
|
{"_id":"q-en-freeCodeCamp-2c724729613020706965ec821cebbd21ce5b94bb332db04be6c9d6b3ebdef082","text":"\"<code>Bracket notation</code> is a way to get a character at a specific <code>index</code> within a string.\", \"Computers don't start counting at 1 like humans do. They start at 0.\", \"For example, the character at index 0 in the word \"Charles\" is \"C\". So if <code>var firstName = \"Charles\"</code>, you can get the value of the first letter of the string by using <code>firstName[0]</code>.\", <del> \"Use <code>bracket notation</code> to find the first character in a the <code>firstLetterOfLastName</code> variable.\", </del> <ins> \"Use <code>bracket notation</code> to find the first character in the <code>firstLetterOfLastName</code> variable.\", </ins> \"Try looking at the <code>firstLetterOfFirstName</code> variable declaration if you get stuck.\" ], \"tests\": ["} |
|
|
{"_id":"q-en-freeCodeCamp-2e0dc47e42c1ee5317c7d9794ea24f800404b188ade060b613acb545735cf260","text":"<td><a href=\"/docs/arabic/CONTRIBUTING.md\"> عربي </a></td> <td><a href=\"/docs/chinese/CONTRIBUTING.md\"> 中文 </a></td> <td><a href=\"/docs/portuguese/CONTRIBUTING.md\"> Português </a></td> <del> <td><a href=\"/docs/russian/CONTRIBUTING.md\"> русский </a></td> </del> <ins> <td><a href=\"/docs/russian/CONTRIBUTING.md\"> Русский </a></td> </ins> <td><a href=\"/docs/spanish/CONTRIBUTING.md\"> Español </a></td> <td><a href=\"/docs/greek/CONTRIBUTING.md\"> Ελληνικά </a></td> </tr>"} |
|
|
{"_id":"q-en-freeCodeCamp-2f285a05a9fe1fdd4811c0ea4dedc05986a46ed3c8be716d3cab944e1f4127fa","text":"\"id\": \"56533eb9ac21ba0edf2244d4\", \"title\": \"Comparison with the Greater Than Operator\", \"description\": [ <del> \"The greater than operator (<code>> |
|
|
{"_id":"q-en-freeCodeCamp-2fd059b43de8796d3f7d67c92a8f5863cf3f734c2557ca93754d67046134d996","text":"const mapStateToProps = createSelector( userSelector, user => ({ <del> ...user.profileUI, </del> user }) );"} |
|
|
{"_id":"q-en-freeCodeCamp-3023cc36b6065718535946b655b8ad9354a4bf99260a05caadda02a4282fe1fc","text":"], \"helpRoom\": \"Help\", \"fileName\": \"01-responsive-web-design/basic-css.json\" <del> } </del> No newline at end of file <ins> } </ins>"} |
|
|
{"_id":"q-en-freeCodeCamp-3056538c6935e04f95b0b4340103ee8f5c6e27ea73b4821096ebb21eecd45a8c","text":"// when non-empty search input submitted return query ? window.location.assign( <del> `https://freecodecamp.org/news/search/?query=${encodeURIComponent( </del> <ins> `https://www.freecodecamp.org/news/search/?query=${encodeURIComponent( </ins> query )}` )"} |
|
|
{"_id":"q-en-freeCodeCamp-30690fa906ade1cbc89e8622ce1e4f9d521b425e51334c0577b5f59535aa3c85","text":"You can help expand them and make their wording better. You can also update the user stories to explain the concept better or remove redundant ones and improve the challenge tests to make them more accurately test people's code. <del> **If you're interested in improving these coding challenges, here's [how to work on coding challenges](/how-to-work-on-coding-challenges.md).** </del> <ins> **If you're interested in improving these coding challenges, here's [how to work on coding challenges](how-to-work-on-coding-challenges.md).** </ins> ### Learning Platform"} |
|
|
{"_id":"q-en-freeCodeCamp-31316a42d2433ed8e2d8cb9eff98b14b45c2091149f8ad87b30e7e2a77d6e725","text":"assert.match(attack.toString(), /ifs*(Math.random()s*<=s*.1/); ``` <del> You should use the logical and operator `&&`. </del> <ins> You should use the logical AND operator `&&`. </ins> ```js assert.match(attack.toString(), /ifs*(Math.random()s*<=s*.1s*&&/); ``` <del> You should use the logical and operator to check if `inventory.length` does not equal `1`. </del> <ins> You should use the logical AND operator to check if `inventory.length` does not equal `1`. </ins> ```js assert.match(attack.toString(), /ifs*(Math.random()s*<=s*.1s*&&s*inventory.lengths*!==s*1s*)/);"} |
|
|
{"_id":"q-en-freeCodeCamp-31725c62c09c8d1665118bcebdd8b24a36d9549e4e3317c18c834b5eff4b9768","text":"<ins> import { FastifyPluginCallbackTypebox, Type } from '@fastify/type-provider-typebox'; type Endpoints = [string, 'GET' | 'POST'][]; export const endpoints: Endpoints = [ ['/refetch-user-completed-challenges', 'POST'], ['/certificate/verify-can-claim-cert', 'GET'], ['/api/github', 'GET'] ]; export const deprecatedEndpoints: FastifyPluginCallbackTypebox = ( fastify, _options, done ) => { endpoints.forEach(([endpoint, method]) => { fastify.route({ method, url: endpoint, schema: { response: { 410: Type.Object({ message: Type.Object({ type: Type.Literal('info'), message: Type.Literal( 'Please reload the app, this feature is no longer available.' ) }) }) } }, handler: async (_req, reply) => { void reply.status(410); return { message: { type: 'info', message: 'Please reload the app, this feature is no longer available.' } } as const; } }); }); done(); }; </ins>"} |
|
|
{"_id":"q-en-freeCodeCamp-377b1be1b17b8fc334ebba8d29910c0761098bcf65a16604c94c6cb04513e22d","text":"} const propTypes = { <del> clinetId: PropTypes.string, </del> <ins> clientId: PropTypes.string, </ins> createOrder: PropTypes.func, createSubscription: PropTypes.func, donationAmount: PropTypes.number,"} |
|
|
{"_id":"q-en-freeCodeCamp-377ccad437ddb4ae617c8b3c8af9afd13b74b4cc3b85342a18cc2dced4d72d9e","text":".col-xs-12.col-sm-9.col-md-10 li.large-p.faded.negative-10 a(href='#' + challengeBlock.dashedName)= challengeBlock.name <del> h3= challengeBlock </del> else .hidden-xs.col-sm-3.col-md-2 .progress.progress-bar-padding.text-center.thin-progress-bar"} |
|
|
{"_id":"q-en-freeCodeCamp-388e036c49b0867bc731635b9b479d203b612c646382f97b35da3fccd1986aef","text":"\"id\": \"bad87fee1348bd9aedf07756\", \"title\": \"Override All Other Styles by using Important\", \"description\": [ <del> \"Yay! We just proved that in-line styles will override all the CSS declarations in your <code>style</code> element.\", </del> <ins> \"Yay! We just proved that inline styles will override all the CSS declarations in your <code>style</code> element.\", </ins> \"But wait. There's one last way to override CSS. This is the most powerful method of all. But before we do it, let's talk about why you would ever want to override CSS.\", \"In many situations, you will use CSS libraries. These may accidentally override your own CSS. So when you absolutely need to be sure that an element has specific CSS, you can use <code>!important</code>\", <del> \"Let's go all the way back to our <code>pink-text</code> class declaration. Remember that our <code>pink-text</code> class was overridden by subsequent class declarations, id declarations, and in-line styles.\", </del> <ins> \"Let's go all the way back to our <code>pink-text</code> class declaration. Remember that our <code>pink-text</code> class was overridden by subsequent class declarations, id declarations, and inline styles.\", </ins> \"Let's add the keyword <code>!important</code> to your pink-text element's color declaration to make 100% sure that your <code>h1</code> element will be pink.\", \"An example of how to do this is:\", \"<code>color: red !important |
|
|
{"_id":"q-en-freeCodeCamp-38a6a802464e3445a100d1fdf71b80962adc622af86095c67fa71dfb0dfd2464","text":"dragAndDrop: true, lightbulb: { enabled: false <del> } </del> <ins> }, quickSuggestions: false </ins> }; this._editor = null;"} |
|
|
{"_id":"q-en-freeCodeCamp-39f12b41e850ff046c7922c4838684da3248aea8cdab8c0a4b35526bbf0a8248","text":"# --description-- <del> Inside the `case` for `mm-dd-yyyy-h-mm`, set the `textContent` property of `currentDateParagraph` to `${month}-${day}-${year} ${hours} Hours ${minutes} Minutes`. </del> <ins> When the user selects the `Month, Day, Year, Hours, Minutes` option from the dropdown, you need to display the date in the format `mm-dd-yyyy h Hours m Minutes`. Inside the `case` for `mm-dd-yyyy-h-mm`, use string interpolation to assign the formatted date from above to the `textContent` property of `currentDateParagraph`. Make sure to use the `month`, `day`, `year`, `hours`, and `minutes` variables in your answer. </ins> # --hints-- <del> You should assign `${month}-${day}-${year} ${hours} Hours ${minutes} Minutes` to the `textContent` property of `currentDateParagraph`. </del> <ins> Your answer should follow this format: `mm-dd-yyyy h Hours m Minutes`. Replace `mm`, `dd`, `yyyy`, `h`, and `m` with the `month`, `day`, `year`, `hours`, and `minutes` variables you created earlier. </ins> ```js const pattern = /cases*('|\")mm-dd-yyyy-h-mm1s*:s*currentDateParagraph.textContents*=s*`(${month}-${day}-${year} ${hours} Hours ${minutes} Minutes)`/ |
|
|
{"_id":"q-en-freeCodeCamp-3a1a7de49218b7ff7cb02deb291d8c75461c94661a87e53b08df5f56c68bb5ef","text":"testString: myRegex.lastIndex = 0; assert(myRegex.test('Eleanor Roosevelt')); - text: Your regex <code>myRegex</code> should return <code>false</code> for the string <code>Franklin Rosevelt</code> testString: myRegex.lastIndex = 0; assert(!myRegex.test('Franklin Rosevelt')); <ins> - text: Your regex <code>myRegex</code> should return <code>false</code> for the string <code>Frank Roosevelt</code> testString: myRegex.lastIndex = 0; assert(!myRegex.test('Frank Roosevelt')); </ins> - text: You should use <code>.test()</code> to test the regex. testString: assert(code.match(/myRegex.test(s*myStrings*)/)); - text: Your result should return <code>true</code>."} |
|
|
{"_id":"q-en-freeCodeCamp-3ab189227bfaac4575acc24937339819e93deadb178a20b0bc0a5c7b02344028","text":"<p> <strong>Quincy Larson</strong> </p> <del> <p>Executive Director, freeCodeCamp.org</p> </del> <ins> <p>{t('certification.executive')}</p> </ins> </div> <Row> <del> <p className='verify'>Verify this certification at {certURL}</p> </del> <ins> <p className='verify'> {t('certification.verify', { certURL: certURL })} </p> </ins> </Row> </footer> </Row>"} |
|
|
{"_id":"q-en-freeCodeCamp-3afc68c630c4904822ff4b9a53b7541803dd62d70f492d9e528c0be6932f4a2e","text":"render() { const { duration, planId, amount } = this.state; const isSubscription = duration !== 'onetime'; <ins> if (!paypalClientId) { return null; } </ins> return ( <PayPalButtonScriptLoader amount={amount} <del> clinetId={paypalClientId} </del> <ins> clientId={paypalClientId} </ins> createOrder={(data, actions) => { return actions.order.create({ purchase_units: ["} |
|
|
{"_id":"q-en-freeCodeCamp-3bf98d09f7eba8617b9fdfd263136756150f79fcf5e1f33c4e75355128dd993c","text":"except: continue if len(exp_ball_list_copy) == 0: <del> success += 1 probability = success/num_experiments </del> <ins> success += 1 probability = success/num_experiments </ins> return probability ```"} |
|
|
{"_id":"q-en-freeCodeCamp-3c7803ef1f580ce90a4056afae1d14088bec9789b889f09263644c5973d3ce05","text":"{ objectID: `default-hit-${searchQuery}`, query: searchQuery, <del> url: `https://freecodecamp.org/news/search/?query=${encodeURIComponent( </del> <ins> url: `https://www.freecodecamp.org/news/search/?query=${encodeURIComponent( </ins> searchQuery )}`, title: `See all results for ${searchQuery}`,"} |
|
|
{"_id":"q-en-freeCodeCamp-3e1e080a6f908753d1f81252315f22f348d9eee07250b08426585bcd27d796eb","text":"Your code should have two `meta` elements. ```js <del> assert(code.match(/<meta.*/?>/g).length === 2) |
|
|
{"_id":"q-en-freeCodeCamp-3eac9dae7fd8bcb8dd595e84c86603291b3d7a3d7c48e9d97dbefaf70370a688","text":") return drawn <del> def experiment(hat, expected_balls, num_balls_drawn, num_experiments): </del> <ins> def experiment(hat, expected_balls, num_balls_drawn, num_experiments): </ins> expected_balls_list = [] drawn_list = [] success = 0"} |
|
|
{"_id":"q-en-freeCodeCamp-40828b02eae4af827106c0d2e79672cc81416df7913302cb619de6b8dad5a480","text":"Typeface plays an important role in the accessibility of a page. Some fonts are easier to read than others, and this is especially true on low-resolution screens. <del> Change the font for both the `h1` and `h2` elements to `Verdana`, and use another sans-serif _web safe_ font as a fallback. </del> <ins> Change the font for both the `h1` and `h2` elements to `Verdana`, and use another web-safe font in the sans-serif family as a fallback. </ins> Also, add a `border-bottom` of `4px solid #dfdfe2` to `h2` elements to make the sections distinct."} |
|
|
{"_id":"q-en-freeCodeCamp-41822624089ad8b392929bbbc5733d2d09b34a21065de6c07c2f601bfb170843","text":"id: 'execute-challenge', label: 'Run tests', /* eslint-disable no-bitwise */ <del> keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.Enter], </del> <ins> keybindings: [ monaco.KeyMod.CtrlCmd | monaco.KeyCode.Enter, monaco.KeyMod.WinCtrl | monaco.KeyCode.Enter ], </ins> run: () => { if (props.usesMultifileEditor && !isFinalProject(props.challengeType)) { if (challengeIsComplete()) {"} |
|
|
{"_id":"q-en-freeCodeCamp-41ab65d3fbbb815f545a2c61463ae471b214ec88f313ddbd209e24e053208278","text":"testString: 'assert(checkObj({city: \"Seattle\"}, \"city\") === \"Seattle\");' - text: '<code>checkObj({city: \"Seattle\"}, \"district\")</code> should return <code>\"Not Found\"</code>.' testString: 'assert(checkObj({city: \"Seattle\"}, \"district\") === \"Not Found\");' <ins> - text: '<code>checkObj({pet: \"kitten\", bed: \"sleigh\"}, \"gift\")</code> should return <code>\"Not Found\"</code>.' testString: 'assert(checkObj({pet: \"kitten\", bed: \"sleigh\"}, \"gift\") === \"Not Found\");' </ins> ``` </section>"} |
|
|
{"_id":"q-en-freeCodeCamp-422b7b731c2be16583751f2552d7f005f207bf536410ecebf4d827b2faa2184c","text":"```js // multiplies the first input value by the second and returns it const multiplier = (item, multi) => item * multi; <ins> multiplier(4, 2); // returns 8 </ins> ``` </section>"} |
|
|
{"_id":"q-en-freeCodeCamp-4315f1d4d55a1ffc13affa777cdf6178c5dfdf384b1f68edd0b1c04849c012b3","text":"void fastify.register(devLoginCallback, { prefix: '/auth' }); } void fastify.register(settingRoutes); <ins> void fastify.register(deprecatedEndpoints); </ins> return fastify; };"} |
|
|
{"_id":"q-en-freeCodeCamp-4457a792509374fb5e348eb147f2e4bee40c17f71b5e4ddcf35f120691c63af1","text":"selectionHighlight: false, overviewRulerBorder: false, hideCursorInOverviewRuler: true, <del> renderIndentGuides: false, </del> <ins> renderIndentGuides: props.challengeType === challengeTypes.python, </ins> minimap: { enabled: false },"} |
|
|
{"_id":"q-en-freeCodeCamp-44b695b89c3a3937e6d2a311626c48aaacfb1a55faf3a1df87b82b61baaf296b","text":"editor.addAction({ id: 'save-editor-content', label: 'Save editor content', <del> keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.KEY_S], </del> <ins> keybindings: [ monaco.KeyMod.CtrlCmd | monaco.KeyCode.KEY_S, monaco.KeyMod.WinCtrl | monaco.KeyCode.KEY_S ], </ins> run: props.challengeType === challengeTypes.multifileCertProject && props.isSignedIn"} |
|
|
{"_id":"q-en-freeCodeCamp-4799c55aecb8b296f99794f82f88f2cda16187b344cb8470a0b0534ecabfffb6","text":"## Instructions <section id='instructions'> <del> Combine the two if statements into one statement which will return <code>\"Yes\"</code> if <code>val</code> is less than or equal to <code>50</code> and greater than or equal to <code>25</code>. Otherwise, will return <code>\"No\"</code>. </del> <ins> Replace the two if statements with one statement, using the && operator, which will return <code>\"Yes\"</code> if <code>val</code> is less than or equal to <code>50</code> and greater than or equal to <code>25</code>. Otherwise, will return <code>\"No\"</code>. </ins> </section> ## Tests"} |
|
|
{"_id":"q-en-freeCodeCamp-4b01435667e3b5b90f05f44e64a10f4769b64104fbe55c3a4589eca37960caf9","text":"(data) => { assert.match( data, <del> /passport.use.*new GitHubStrategy/gi, </del> <ins> /passport.use.*new GitHubStrategy/gis, </ins> 'Passport should use a new GitHubStrategy' ); assert.match("} |
|
|
{"_id":"q-en-freeCodeCamp-4cfed05b3fe6d211e879b43ce52a7fe05e660d759ec5036873a986538104652c","text":"In the last challenge, you told npm to only include a specific version of a package. That’s a useful way to freeze your dependencies if you need to make sure that different parts of your project stay compatible with each other. But in most use cases, you don’t want to miss bug fixes since they often include important security patches and (hopefully) don’t break things in doing so. <del> To allow an npm dependency to update to the latest PATCH version, you can prefix the dependency’s version with the tilde (`~`) character. Here's an example of how to allow updates to any 1.3.x version. </del> <ins> To allow an npm dependency to update to the latest PATCH version, you can prefix the dependency’s version with the tilde (`~`) character. Here's an example of how to allow updates to any `1.3.x` version. </ins> ```json \"package\": \"~1.3.8\""} |
|
|
{"_id":"q-en-freeCodeCamp-4e083542efbc772f0c7aa550ccf02883e31df8d75e1718809d03bd0723b3541c","text":"When you are done, make sure a working demo of your project is hosted somewhere public. Then submit the URL to it in the Solution Link field. <del> The `package.json` file is the center of any Node.js project or npm package. It stores information about your project, similar to how the <head> section of an HTML document describes the content of a webpage. It consists of a single JSON object where information is stored in key-value pairs. There are only two required fields; \"name\" and \"version\", but it’s good practice to provide additional information about your project that could be useful to future users or maintainers. </del> <ins> The `package.json` file is the center of any Node.js project or npm package. It stores information about your project, similar to how the `head` section of an HTML document describes the content of a webpage. It consists of a single JSON object where information is stored in key-value pairs. There are only two required fields; `name` and `version`, but it’s good practice to provide additional information about your project that could be useful to future users or maintainers. </ins> <del> If you look at the file tree of your project, you will find the package.json file on the top level of the tree. This is the file that you will be improving in the next couple of challenges. </del> <ins> If you look at the file tree of your project, you will find the `package.json` file on the top level of the tree. This is the file that you will be improving in the next couple of challenges. </ins> One of the most common pieces of information in this file is the `author` field. It specifies who created the project, and can consist of a string or an object with contact or other details. An object is recommended for bigger projects, but a simple string like the following example will do for this project."} |
|
|
{"_id":"q-en-freeCodeCamp-4e1de396b84473e7c41dbab3e3dc99ab8493397079467e591bd163f758946f2f","text":"onChange={this.handleChange} onFocus={this.handleFocus} onSubmit={this.handleSearch} <del> showLoadingIndicator={true} </del> <ins> showLoadingIndicator={false} </ins> translations={{ placeholder }} /> </ObserveKeys>"} |
|
|
{"_id":"q-en-freeCodeCamp-50ad1839d8985b7059ff9d8c6a169b177164d09d45e5c016e447f0c44705e521","text":"componentDidMount() { this.props.updateProjectForm({}); } <del> componentDidUpdate() { this.props.updateProjectForm({}); } componentWillUnmount() { this.props.updateProjectForm({}); } </del> handleSubmit(values) { this.props.updateProjectForm(values); this.props.onSubmit();"} |
|
|
{"_id":"q-en-freeCodeCamp-514550a1dd66a2becef8631b751d210358fb5787d487c773b4ae9262caa07ca2","text":"height: 100%; width: 100%; } <ins> .CodeMirror-lint-tooltip { z-index: 9999; } </ins> No newline at end of file"} |
|
|
{"_id":"q-en-freeCodeCamp-51dc70d904ceae3ab78361aa06c52a96cc2ef1748468db9f69fad0cb48a446fc","text":"\"Hagamos que cuando un usuario pulse el botón \"Get Message\", el texto del elemento con la clase <code>message</code> cambie para decir \"Here is the message\".\", \"Podemos hacerlo añadiendo el siguiente código dentro de nuestro evento de pulsación:\", \"<code>$(\".message\").html(\"Here is the message\") |
|
|
{"_id":"q-en-freeCodeCamp-52c36d0cb49026c6e252e7b9df71672889ec5f8ae22712cf9d761764e3780348","text":"transform: translateY(-50%); } <ins> .landing-skill-icon { color: #215f1e; font-size: 150px; } .black-text { color: #333; font-weight: 400; font-size: 40px; } .font-awesome-padding { margin-top: 45px; margin-bottom: 20px; } </ins> .background-svg { width: 220px; height: 220px;"} |
|
|
{"_id":"q-en-freeCodeCamp-53bef0bfb230260c32916879e28837cd1f59e0199e7b97398a9d0930172992da","text":"\"invalid-protocol\": \"La URL debe comenzar con http o https\", \"url-not-image\": \"URL debes enlazar directamente a un archivo de imagen\", \"use-valid-url\": \"Utiliza un URL válido\" <ins> }, \"certification\": { \"certifies\": \"Spanish: This certifies that\", \"completed\": \"Spanish: has successfully completed the freeCodeCamp.org\", \"developer\": \"Spanish: Developer Certification, representing approximately\", \"executive\": \"Spanish: Executive Director, freeCodeCamp.org\", \"verify\": \"Spanish: Verify this certification at {{certURL}}\", \"issued\": \"Spanish: Issued\" </ins> } }"} |
|
|
{"_id":"q-en-freeCodeCamp-5514e221ee48a3d221fae75d82fd1c72ad9109a47e1322283be5720244fefd9d","text":"Similar to how the tilde we learned about in the last challenge allows npm to install the latest PATCH for a dependency, the caret (`^`) allows npm to install future updates as well. The difference is that the caret will allow both MINOR updates and PATCHes. <del> Your current version of `@freecodecamp/example` should be \"~1.2.13\" which allows npm to install to the latest 1.2.x version. If you were to use the caret (^) as a version prefix instead, npm would be allowed to update to any 1.x.x version. </del> <ins> Your current version of `@freecodecamp/example` should be `~1.2.13` which allows npm to install to the latest `1.2.x` version. If you were to use the caret (^) as a version prefix instead, npm would be allowed to update to any `1.x.x` version. </ins> ```json \"package\": \"^1.3.8\" ``` <del> This would allow updates to any 1.x.x version of the package. </del> <ins> This would allow updates to any `1.x.x` version of the package. </ins> # --instructions--"} |
|
|
{"_id":"q-en-freeCodeCamp-5618492c5544ad9db3f4d6c3597a0f5018798e788e4b59ad3fc29028d3db92d9","text":"\"Here are the <a href='http://en.wikipedia.org/wiki/User_story' target='_blank'>user stories</a> you must enable, and optional bonus user stories:\", \"<span class='text-info'>User Story:</span> As a user, I can access all of the portfolio webpage's content just by scrolling.\", \"<span class='text-info'>User Story:</span> As a user, I can click different buttons that will take me to the portfolio creator's different social media pages.\", <del> \"<span class='text-info'>User Story:</span> As a user, I can see thumbnail images of different projects the portfolio creator has built (if you don't haven't built any websites before, use placeholders.)\", </del> <ins> \"<span class='text-info'>User Story:</span> As a user, I can see thumbnail images of different projects the portfolio creator has built (if you haven't built any websites before, use placeholders.)\", </ins> \"<span class='text-info'>Bonus User Story:</span> As a user, I navigate to different sections of the webpage by clicking buttons in the navigation.\", \"Don't worry if you don't have anything to showcase on your portfolio yet - you will build several several apps on the next few CodePen challenges, and can come back and update your portfolio later.\", \"There are many great portfolio templates out there, but for this challenge, you'll need to build a portfolio page yourself. Using Bootstrap will make this much easier for you.\","} |
|
|
{"_id":"q-en-freeCodeCamp-56223da06b08bde6d7e24b5f6ee89ef19eea19d1e1baff44f625b2cc1f05c7ba","text":"max-height: 100%; font-size: 27px; white-space: normal; <ins> width: 100%; </ins> } .default-layout {"} |
|
|
{"_id":"q-en-freeCodeCamp-59bd1b5c934fad72263c5a05eae8995e4f65ea5de13d320feb9ffa5b7c1dc603","text":"reload(probability_calculator) probability_calculator.random.seed(95) <del> def test_hat_draw(self): </del> <ins> class UnitTests(unittest.TestCase): maxDiff = None def test_hat_draw(self): </ins> hat = probability_calculator.Hat(red=5,blue=2) actual = hat.draw(2) expected = ['blue', 'red']"} |
|
|
{"_id":"q-en-freeCodeCamp-5a0f8e8cbf4a667d9f1c3328b9c0d2f597dfa46f9bb79a192bc7fe59e94eea02","text":"{currentCertTitles.map(title => ( <Certification key={title} certName={title} t={t} /> ))} <ins> <Spacer size='medium' /> </ins> <SectionHeader>{t('settings.headings.legacy-certs')}</SectionHeader> <LegacyFullStack {...props} /> {legacyCertTitles.map(title => ("} |
|
|
{"_id":"q-en-freeCodeCamp-5cb615338fcb8302f75d5ce15a360adfc4a7c7902ec3e12247ce9db8c01e81b6","text":"h4.negative-10.text-nowrap Live Content Manager img.profile-image(src='https://s3.amazonaws.com/freecodecamp/jason-rueckert.jpg' alt=\"Jason Rueckert's picture\") h4.text-nowrap Seattle, Washington <del> p.negative-10 \"My high school job was testing basketball shoes for Nike. I learned code to work smarter, not harder. I have no thyroid.\" </del> No newline at end of file <ins> p.negative-10 \"My high school job was testing basketball shoes for Nike. I learned code to work smarter, not harder. I have no thyroid.\" </ins>"} |
|
|
{"_id":"q-en-freeCodeCamp-5e319515b5e237da32789e4bed9ab54cfe9c4e78d26a0ed6e616e270f64aa34c","text":"</html> `, { runScripts: 'dangerously', <del> virtualConsole </del> <ins> virtualConsole, url: 'http://localhost' </ins> }); const { window } = dom;"} |
|
|
{"_id":"q-en-freeCodeCamp-5ef7dedf806b7fdb07c5f693505e991a4526e3340503b2f25c1d37214bc2508f","text":"The attack of the monster will be based on the monster's `level` and the player's `xp`. In the `getMonsterAttackValue` function, use `const` to create a variable called `hit`. Assign it the equation `(level * 5) - (Math.floor(Math.random() * xp));`. <del> This will set the monster's attack to five times their `level` minus a random number between 0 and the player's `xp`. </del> <ins> This will set the monster's attack to five times their `level` minus a random number between `0` and the player's `xp`. </ins> # --hints--"} |
|
|
{"_id":"q-en-freeCodeCamp-5f5dea838d64144373c7fd9630e7b7f489d7dfd036f70ee510e0eb9d6a05b77c","text":"import { omit } from 'lodash-es'; import { call, <del> delay, </del> put, select, takeLatest, <del> takeEvery </del> <ins> takeEvery, debounce </ins> } from 'redux-saga/effects'; import { createFlashMessage } from '../../components/Flash/redux';"} |
|
|
{"_id":"q-en-freeCodeCamp-63ef97f58b671d301e2634f10954e8aa57a2669281218fe2e30600a301da2369","text":"], \"tests\": [ \"assert($(\"i\").hasClass(\"fa fa-thumbs-up\"), 'Add an <code>i</code> element with the classes <code>fa</code> and <code>fa-thumbs-up</code>.')\", <ins> \"assert($(\"i.fa-thumbs-up\").parent().text().match(/Like/gi), 'Your <code>fa-thumbs-up</code> icon should be located within the Like button.')\", </ins> \"assert($(\"button\").children(\"i\").length > 0, 'Nest your <code>i</code> element within your <code>button</code> element.')\", \"assert(editor.match(/</i>/g), 'Make sure your <code>i</code> element has a closing tag.')\" ],"} |
|
|
{"_id":"q-en-freeCodeCamp-643fa548c3268814b7db2ab638c2b53f36d4c33f936b68a574a62bb48c6e96af","text":"Fulfill the below user stories and get all of the tests to pass. Use whichever libraries or APIs you need. Give it your own personal style. <del> You can use HTML, JavaScript, CSS, and the D3 svg-based visualization library. Required (non-virtual) DOM elements are queried on the moment of each test. If you use a frontend framework (like Vue for example), the test results may be inaccurate for dynamic content. We hope to accommodate them eventually, but these frameworks are not currently supported for D3 projects. </del> <ins> You can use HTML, JavaScript, CSS, and the D3 svg-based visualization library. Required DOM elements are queried on the moment of each test. If you use a frontend framework (like Vue for example), the test results may be inaccurate for dynamic content. We hope to accommodate them eventually, but these frameworks are not currently supported for D3 projects. </ins> **User Story #1:** My choropleth should have a title with a corresponding `id=\"title\"`."} |
|
|
{"_id":"q-en-freeCodeCamp-644ea9d4a69a59d02b33151122423735fba78958d17eba95b34068acb71f4e31","text":"\"<code>i</code> means that we want to ignore the case (uppercase or lowercase) when searching for the pattern.\", \"<code>Regular expressions</code> are written by surrounding the pattern with <code>/</code> symbols.\", \"Let's try selecting all the occurrences of the word <code>and</code> in the string <code>Ada Lovelace and Charles Babbage designed the first computer and the software that would have run on it</code>.\", <del> \"We can do this by replacing the <code>.</code> part of our regular expression with the current <code>regular expression</code> with the word <code>and</code>.\" </del> <ins> \"We can do this by replacing the <code>.</code> part of our regular expression with the word <code>and</code>.\" </ins> ], \"tests\": [ \"assert(test==2, 'message: Your <code>regular expression</code> should find two occurrences of the word <code>and</code>.') |
|
|
{"_id":"q-en-freeCodeCamp-66a806fc80f35bef2db7dc8562a140fc419a4689dfc938186faeced016b5d193","text":"- text: Your code should use the <code>map</code> method. testString: assert(code.match(/.map/g)); - text: <code>ratings</code> should equal <code>[{\"title\":\"Inception\",\"rating\":\"8.8\"},{\"title\":\"Interstellar\",\"rating\":\"8.6\"},{\"title\":\"The Dark Knight\",\"rating\":\"9.0\"},{\"title\":\"Batman Begins\",\"rating\":\"8.3\"},{\"title\":\"Avatar\",\"rating\":\"7.9\"}]</code>. <del> testString: assert(JSON.stringify(ratings) === JSON.stringify([{\"title\":\"Inception\",\"rating\":\"8.8\"},{\"title\":\"Interstellar\",\"rating\":\"8.6\"},{\"title\":\"The Dark Knight\",\"rating\":\"9.0\"},{\"title\":\"Batman Begins\",\"rating\":\"8.3\"},{\"title\":\"Avatar\",\"rating\":\"7.9\"}])); </del> <ins> testString: assert.deepEqual(ratings, [{\"title\":\"Inception\",\"rating\":\"8.8\"},{\"title\":\"Interstellar\",\"rating\":\"8.6\"},{\"title\":\"The Dark Knight\",\"rating\":\"9.0\"},{\"title\":\"Batman Begins\",\"rating\":\"8.3\"},{\"title\":\"Avatar\",\"rating\":\"7.9\"}]); </ins> ```"} |
|
|
{"_id":"q-en-freeCodeCamp-674e33ed6c462a38d6031bd8f7fb0963aa578c20e9d0da0e197ea831f0c313ee","text":"describe('<Table />', () => { it('should apply striped bg color to every odd <tr> element', () => { <del> render(<Table data-testid='test' striped />) |
|
|
{"_id":"q-en-freeCodeCamp-6a15c7903e70a5d8bec2878af0bb790311a536ec018dac84f7785c13fc134df1","text":"--- # --description-- <ins> In your `highPrecedence` function, declare a variable using `const` and assign it a regex that checks if the string passed to the `str` parameter matches the pattern of a number followed by a `*` or `/` operator followed by another number. </ins> <del> In your `highPrecedence` function, declare a `regex` variable. Assign it a regular expression that matches a number (including decimal numbers) followed by a `*` or `/` operator followed by another number. Each number, and the operator, should be in separate capture groups. Incorporate the regular expression you've defined into your `highPrecedence` function to test if the provided string `str` matches the pattern. Use the `test()` method on your `regex` variable and return the result. </del> <ins> Your function should return a boolean value. Remember that you can use the `test()` method for this. </ins> # --hints-- <del> You should declare a `regex` variable in your `highPrecedence` function. </del> <ins> You should declare a variable in your `highPrecedence` function for your regex. </ins> ```js <del> assert.match(code, /consts+highPrecedences*=s*((s*strs*)|str)s*=>s*{s*(?:const|let|var)s+regex/); </del> <ins> assert.match(code, /consts+highPrecedences*=s*((s*strs*)|str)s*=>s*{s*(?:const|let|var)s+w+/); </ins> ``` <del> You should use `const` to declare your `regex` variable. </del> <ins> You should use `const` to declare your regex variable. </ins> ```js <del> assert.match(code, /consts+highPrecedences*=s*((s*strs*)|str)s*=>s*{s*consts+regex/); </del> <ins> assert.match(code, /consts+highPrecedences*=s*((s*strs*)|str)s*=>s*{s*consts+w+/); </ins> ``` <del> Your `regex` variable should be a regular expression. </del> <ins> Your regex variable should contain a regular expression. </ins> ```js <del> assert.match(code, /consts+highPrecedences*=s*((s*strs*)|str)s*=>s*{s*consts+regexs*=s*//); </del> <ins> assert.match(code, /consts+highPrecedences*=s*((s*strs*)|str)s*=>s*{s*consts+w+s*=s*//); </ins> ``` <del> Your highPrecedence should return `regex.test(str);` </del> <ins> Your `highPrecedence` function should return a boolean value. </ins> ```js <del> assert.match(code, /returns+regex.test(str);?/); </del> <ins> assert.isBoolean(highPrecedence(\"12*2\")); </ins> ``` <del> Please enter a properly functioning regex. </del> <ins> Your `highPrecedence` function should correctly check if the string matches the pattern of a number followed by a `*` or `/` operator followed by another number. </ins> ```js <del> assert.strictEqual(highPrecedence(\"5*3\"), true); </del> <ins> assert.isTrue(highPrecedence(\"5*3\")); assert.isFalse(highPrecedence(\"5\")); assert.isTrue(highPrecedence(\"10/2\")); assert.isFalse(highPrecedence(\"*\")); </ins> ``` # --seed--"} |
|
|
{"_id":"q-en-freeCodeCamp-6c6f5abbb26ea0eaef784484d3ec873b373b7f5a21cc79cf4a04860e2ea356d8","text":"\"Cuando estamos recorriendo estos objetos, usemos esta propiedad <code>imageLink</code> para visualizar la imagen en un elemento <code>img</code>.\", \"Aquí está el código que hace esto:\", \"<code>html += \"<img src = '\" + val.imageLink + \"'>\" |
|
|
{"_id":"q-en-freeCodeCamp-6cb490d277e4e8818213e493408dd74fd2cbb6f92efa9e06e34f65bf2e5e316b","text":"return ( <Button bsStyle='default' <del> className={(block ? 'btn-cta-big' : '') + ' signup-btn btn-cta'} </del> <ins> className={(block ? 'btn-cta-big btn-block' : '') + ' signup-btn btn-cta'} </ins> data-test-label={dataTestLabel} href={href} onClick={() => gtagReportConversion()}"} |
|
|
{"_id":"q-en-freeCodeCamp-6f772ecd29c0927ca0095a6608f79390a983bd7910075de01e5f1b6cac109274","text":"}, { \"id\":\"cf1111c1c12feddfaeb8bdef\", <del> \"title\": \"Find White Space with Regular Expressions\", </del> <ins> \"title\": \"Find Whitespace with Regular Expressions\", </ins> \"difficulty\":\"9.986\", \"description\":[ <del> \"We can also use selectors like <code>s</code> to find spaces in a string.\", </del> <ins> \"We can also use selectors like <code>s</code> to find whitespace in a string.\", \"The whitespace characters are <code>\" \"</code> (space), <code>r</code> (carriage return), <code>n</code> (newline), <code>t</code> (tab), and <code>f</code> (form feed).\", </ins> \"It is used like this:\", \"<code>/s+/g</code>\", <del> \"Select all the spaces in the sentence string.\" </del> <ins> \"Select all the whitespace characters in the sentence string.\" </ins> ], \"tests\":[ \"assert(test === 7, 'message: Your RegEx should have found seven spaces in the <code>testString</code>.') |
|
|
{"_id":"q-en-freeCodeCamp-6f8f2ec4690908b50e012318c7b373a6c27e188593766d9eeb07bc7cb3cf4c77","text":"\"@commitlint/cli\": \"^7.0.0\", \"@commitlint/config-conventional\": \"^7.0.1\", \"@commitlint/travis-cli\": \"^7.0.0\", <del> \"@freecodecamp/challenge-md-parser\": \"^1.0.0\", </del> <ins> \"@freecodecamp/challenge-md-parser\": \"^0.0.1\", </ins> \"@semantic-release/changelog\": \"^2.0.2\", \"@semantic-release/git\": \"^5.0.0\", \"babel-cli\": \"^6.3.17\","} |
|
|
{"_id":"q-en-freeCodeCamp-716ed0a99336d96c333a5894aad136a78559c688b8998eec06621cb6e6341f2d","text":"extends layout block content <del> .hidden-xs a(href='https://github.com/freecodecamp/freecodecamp') img(style='position: absolute; top: 40; right: 0; border: 0; margin-top: -30px;', src='https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67', alt='Fork me on GitHub', data-canonical-src='https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png') </del> .jumbotron .text-center h1.hug-top Code with Us"} |
|
|
{"_id":"q-en-freeCodeCamp-723644e62065ecd5949dd53b7dbc4dcfc955e3b0ddae59f762d351a9f175d1d2","text":"#### 2. [JavaScript Algorithms and Data Structures Certification](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/) <ins> - [Learn Introductory JavaScript by Building a Pyramid Generator](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/#learn-introductory-javascript-by-building-a-pyramid-generator) </ins> - [Learn Basic JavaScript by Building a Role Playing Game](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/#learn-basic-javascript-by-building-a-role-playing-game) - [Learn Form Validation by Building a Calorie Counter](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/#learn-form-validation-by-building-a-calorie-counter) - [Learn Basic String and Array Methods by Building a Music Player](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/#learn-basic-string-and-array-methods-by-building-a-music-player)"} |
|
|
{"_id":"q-en-freeCodeCamp-746b8002fd608e92169ad20ccab9831ccd5eeac6e609aea21f7dade117875e9c","text":"<Col sm={10} smOffset={1} xs={12}> <Spacer /> <h1 className='text-center big-heading'> <del> {name ? 'Welcome back, ' + name + '.' : 'Welcome to freeCodeCamp.org'} </del> <ins> {name ? `Welcome back, ${name}.` : `Welcome to freeCodeCamp.org`} </ins> </h1> <Spacer /> </Col>"} |
|
|
{"_id":"q-en-freeCodeCamp-74c10be5dad5285bfa395b6c0c92436f45a0f892f11f281214cc6d6eaf618fba","text":"const count = 8; const rows = []; <del> --fcc-editable-region-- </del> function padRow() { } <ins> --fcc-editable-region-- </ins> padRow(); --fcc-editable-region--"} |
|
|
{"_id":"q-en-freeCodeCamp-76b0c1849a1bb1baedd510a4a3030f4bcac513bb137a83d1d6bbac27b02fbeaa","text":"\"Después, iteremos a traveś de nuestro JSON, añadiendo más HTML a esa variable. Cuando se termina el ciclo, vamos a presentarla. \", \"Aquí está el código que hace esto:\", \"<blockquote>json.forEach(function(val) {</br> var keys = Object.keys(val) |
|
|
{"_id":"q-en-freeCodeCamp-76ff868e2fb9983e82d6c81869b8fbae2246072e67a0b39bac40ce48401f800a","text":"\"assert.deepEqual(friendly(['2015-07-01', '2015-07-04']), ['July 1st','4th'], 'ending month should be omitted since it is already mentioned') |
|
|
{"_id":"q-en-freeCodeCamp-77b2e2d2823ae18b3eddb0b7bcab16b09f876bc4746c69279a35ab722ce62eb0","text":"- text: The value of <code>remainder</code> should be <code>2</code> testString: assert(remainder === 2); - text: You should use the <code>%</code> operator <del> testString: assert(/s+?remainders*?=s*?.*%.*;/.test(code)); </del> <ins> testString: assert(/s+?remainders*?=s*?.*%.*;?/.test(code)); </ins> ```"} |
|
|
{"_id":"q-en-freeCodeCamp-7914cc5f8da3e379adfe2d102637d7f194580ab6babbaa87a19c29bdd851a7fd","text":"# --description-- <del> Following the same pattern, use that code in the `fightBeast` and `fightDragon` functions. Remember that `beast` is at index `1` and `dragon` is at index `2`. Also, remove the `console.log` call from your `fightDragon` function. </del> <ins> Following the same pattern as the `fightSlime` function, use that code in the `fightBeast` and `fightDragon` functions. Remember that `beast` is at index `1` and `dragon` is at index `2`. Also, remove the `console.log` call from your `fightDragon` function. </ins> # --hints--"} |
|
|
{"_id":"q-en-freeCodeCamp-7a5b14a92e4f681d1bf3589a2caa3385f20c4bc989386529399a4b680e447b4c","text":"import { connect } from 'react-redux' |
|
|
{"_id":"q-en-freeCodeCamp-7b96a1fd6254002bca9bd99a4d8e54ddadb4f6b9df0c4b588fb16916994c1057","text":"br br a.btn.nonprofit-cta.btn-success(href=\"/nonprofits\") I'm with a nonprofit and want help coding something <del> include partials/about include partials/faq </del> No newline at end of file <ins> .big-break h2 Campers you'll hang out with: .row .col-xs-12.col-sm-12.col-md-4 img.img-responsive.testimonial-image.img-center(src=\"https://s3.amazonaws.com/freecodecamp/testimonial-jen.jpg\", alt=\"@jenthebest's testimonial image\") .testimonial-copy Getting back on track with Free Code Camp and committing to a new career in 2015! h3 - @jenthebest .col-xs-12.col-sm-12.col-md-4 img.img-responsive.testimonial-image.img-center(src=\"https://s3.amazonaws.com/freecodecamp/testimonial-tate.jpg\", alt=\"@TateThurston's testimonial image\") .testimonial-copy Just built my company's website with skills I've learned from Free Code Camp! h3 - @TateThurston .col-xs-12.col-sm-12.col-md-4 img.img-responsive.testimonial-image.img-center(src=\"https://s3.amazonaws.com/freecodecamp/testimonial-cynthia.jpg\", alt=\"@cynthialanel's testimonial image\") .testimonial-copy I'm currently working through Free Code Camp to improve my JavaScript. The community is very welcoming! h3 - @cynthialanel .big-break h2 Skills you'll learn: .text-center .col-xs-12.col-sm-12.col-md-3 .landing-skill-icon.ion-social-html5 .black-text HTML5 .col-xs-12.col-sm-12.col-md-3 .landing-skill-icon.ion-social-css3 .black-text CSS3 .col-xs-12.col-sm-12.col-md-3 .landing-skill-icon.ion-social-javascript .black-text JavaScript .col-xs-12.col-sm-12.col-md-3 .landing-skill-icon.fa.fa-database.font-awesome-padding .black-text Databases .col-xs-12.col-sm-12.col-md-3 .landing-skill-icon.ion-social-chrome .black-text DevTools .col-xs-12.col-sm-12.col-md-3 .landing-skill-icon.ion-social-nodejs .black-text Node.js .col-xs-12.col-sm-12.col-md-3 .landing-skill-icon.ion-social-angular .black-text Angular.js .col-xs-12.col-sm-12.col-md-3 .landing-skill-icon.ion-ios-loop-strong .black-text Agile .big-break h2 h2 Fast facts about our community: h3.col-xs-offset-0.col-sm-offset-1.col-md-offset-2 ul.text-left li.ion-code We're 100% free and open source li.ion-code We're thousands of professionals who are learning to code li.ion-code We're building projects for dozens of nonprofits li.ion-code We share one goal: to boost our careers with code .big-break a.btn.btn-cta.signup-btn(href=\"/login\") Start learning to code (it's free) </ins> No newline at end of file"} |
|
|
{"_id":"q-en-freeCodeCamp-7ce3f2fb6b1fe78ed17b317baf0d1e9c73351eb2ae086c9bcad413d21bbdaf1d","text":"Essentially, we expect basic familiarity with some of the aforementioned technologies, tools, and libraries. With that being said, you are not required to be an expert on them to contribute. <del> **If you want to help us improve our codebase, you can either [set up freeCodeCamp locally](/how-to-setup-freecodecamp-locally.md)** </del> <ins> **If you want to help us improve our codebase, you can either [set up freeCodeCamp locally](how-to-setup-freecodecamp-locally.md)** </ins> OR"} |
|
|
{"_id":"q-en-freeCodeCamp-7d02002468abf7407c55605e6849503f681e424b103ab30dc4631826ccddf336","text":"const url = new URL(val); const topDomain = url.hostname.split('.').slice(-2); if (topDomain.length === 2) { <del> return topDomain.join('.') === domain; </del> <ins> return Array.isArray(domain) ? domain.some(d => topDomain.join('.') === d) : topDomain.join('.') === domain; </ins> } return false; } catch (e) {"} |
|
|
{"_id":"q-en-freeCodeCamp-7db1eb3b3a2855bd4f8b4daed8555fa3691cc11bd0b913da6bacb81f50acc94c","text":"\"Si lo permites, verás que el texto en el teléfono de la derecha cambiará con tu latitud y longitud\", \"Aquí hay un código que hace esto:\", \"<blockquote>if (navigator.geolocation) {</br> navigator.geolocation.getCurrentPosition(function(position) {</br> $(\"#data\").html(\"latitude: \" + position.coords.latitude + \"<br>longitude: \" + position.coords.longitude) |
|
|
{"_id":"q-en-freeCodeCamp-7e14372497e932fa972517f23f3140828afcbe54320128eaa588a81625474dc7","text":"<del> --- id: 5a9d7295424fe3d0e10cad14 title: Cascading CSS variables challengeType: 0 videoUrl: 'https://scrimba.com/c/cyLZZhZ' --- ## Description <section id='description'> When you create a variable, it is available for you to use inside the element in which you create it. It also is available for any elements nested within it. This effect is known as <dfn>cascading</dfn>. Because of cascading, CSS variables are often defined in the <dfn>:root</dfn> element. <code>:root</code> is a <dfn>pseudo-class</dfn> selector that matches the root element of the document, usually the <code>html</code> element. By creating your variables in <code>:root</code>, they will be available globally and can be accessed from any other selector later in the style sheet. </section> ## Instructions <section id='instructions'> Define a variable named <code>--penguin-belly</code> in the <code>:root</code> selector and give it the value of <code>pink</code>. You can then see how the value will cascade down to change the value to pink, anywhere that variable is used. </section> ## Tests <section id='tests'> ```yml tests: - text: Declare the <code>--penguin-belly</code> variable in the <code>:root</code> and assign it to <code>pink</code>. testString: assert(code.match(/:roots*?{[sS]*--penguin-bellys*?:s*?pinks*?;[sS]*}/gi), 'Declare the <code>--penguin-belly</code> variable in the <code>:root</code> and assign it to <code>pink</code>.'); ``` </section> ## Challenge Seed <section id='challengeSeed'> <div id='html-seed'> ```html <style> :root { /* add code below */ /* add code above */ } body { background: var(--penguin-belly, #c6faf1); } .penguin { --penguin-skin: gray; --penguin-beak: orange; position: relative; margin: auto; display: block; margin-top: 5%; width: 300px; height: 300px; } .right-cheek { top: 15%; left: 35%; background: var(--penguin-belly, white); width: 60%; height: 70%; border-radius: 70% 70% 60% 60%; } .left-cheek { top: 15%; left: 5%; background: var(--penguin-belly, white); width: 60%; height: 70%; border-radius: 70% 70% 60% 60%; } .belly { top: 60%; left: 2.5%; background: var(--penguin-belly, white); width: 95%; height: 100%; border-radius: 120% 120% 100% 100%; } .penguin-top { top: 10%; left: 25%; background: var(--penguin-skin, gray); width: 50%; height: 45%; border-radius: 70% 70% 60% 60%; } .penguin-bottom { top: 40%; left: 23.5%; background: var(--penguin-skin, gray); width: 53%; height: 45%; border-radius: 70% 70% 100% 100%; } .right-hand { top: 0%; left: -5%; background: var(--penguin-skin, gray); width: 30%; height: 60%; border-radius: 30% 30% 120% 30%; transform: rotate(45deg); z-index: -1; } .left-hand { top: 0%; left: 75%; background: var(--penguin-skin, gray); width: 30%; height: 60%; border-radius: 30% 30% 30% 120%; transform: rotate(-45deg); z-index: -1; } .right-feet { top: 85%; left: 60%; background: var(--penguin-beak, orange); width: 15%; height: 30%; border-radius: 50% 50% 50% 50%; transform: rotate(-80deg); z-index: -2222; } .left-feet { top: 85%; left: 25%; background: var(--penguin-beak, orange); width: 15%; height: 30%; border-radius: 50% 50% 50% 50%; transform: rotate(80deg); z-index: -2222; } .right-eye { top: 45%; left: 60%; background: black; width: 15%; height: 17%; border-radius: 50%; } .left-eye { top: 45%; left: 25%; background: black; width: 15%; height: 17%; border-radius: 50%; } .sparkle { top: 25%; left: 15%; background: white; width: 35%; height: 35%; border-radius: 50%; } .blush-right { top: 65%; left: 15%; background: pink; width: 15%; height: 10%; border-radius: 50%; } .blush-left { top: 65%; left: 70%; background: pink; width: 15%; height: 10%; border-radius: 50%; } .beak-top { top: 60%; left: 40%; background: var(--penguin-beak, orange); width: 20%; height: 10%; border-radius: 50%; } .beak-bottom { top: 65%; left: 42%; background: var(--penguin-beak, orange); width: 16%; height: 10%; border-radius: 50%; } .penguin * { position: absolute; } </style> <div class=\"penguin\"> <div class=\"penguin-bottom\"> <div class=\"right-hand\"></div> <div class=\"left-hand\"></div> <div class=\"right-feet\"></div> <div class=\"left-feet\"></div> </div> <div class=\"penguin-top\"> <div class=\"right-cheek\"></div> <div class=\"left-cheek\"></div> <div class=\"belly\"></div> <div class=\"right-eye\"> <div class=\"sparkle\"></div> </div> <div class=\"left-eye\"> <div class=\"sparkle\"></div> </div> <div class=\"blush-right\"></div> <div class=\"blush-left\"></div> <div class=\"beak-top\"></div> <div class=\"beak-bottom\"></div> </div> </div> ``` </div> </section> ## Solution <section id='solution'> ```js var code = \":root {--penguin-belly: pink |
|
|
{"_id":"q-en-freeCodeCamp-7e75cde1127be419e69de50aa420efdb76649dc3585f42e85998dba3e270d909","text":"[settingsTypes.updateUserFlagComplete]: (state, { payload }) => payload ? spreadThePayloadOnUser(state, payload) : state, [settingsTypes.verifyCertComplete]: (state, { payload }) => <del> payload ? spreadThePayloadOnUser(state, payload) : state </del> <ins> payload ? spreadThePayloadOnUser(state, payload) : state, [settingsTypes.submitProfileUIComplete]: (state, { payload }) => payload ? { ...state, user: { ...state.user, [state.appUsername]: { ...state.user[state.appUsername], profileUI: { ...payload } } } } : state </ins> }, initialState );"} |
|
|
{"_id":"q-en-freeCodeCamp-7edd1f07966b263c560714052b6fe7c18452a4e8168b40cf75bd2b35b36db920","text":"# --instructions-- <del> Write an `@each` directive that goes through a list: `blue, black, red` and assigns each variable to a `.color-bg` class, where the `color` part changes for each item. Each class should set the `background-color` the respective color. </del> <ins> Write an `@each` directive that goes through a list: `blue, black, red` and assigns each variable to a `.color-bg` class, where the `color` part changes for each item to the respective color. Each class should set the `background-color` to the respective color as well. </ins> # --hints--"} |
|
|
{"_id":"q-en-freeCodeCamp-7ee11c540a42eb871ded4c747de9de1f559ebb6396c3adb2728731987c310f7d","text":"h4.negative-10.text-nowrap Community Builder img.profile-image(src='https://s3.amazonaws.com/freecodecamp/branden-byers.jpg' alt=\"Branden Byers picture\") h4.text-nowrap Madison, Wisconsin <del> p.negative-10 \"I'm a massage therapist and Stay-at-home-dad. I learned Hypercard, then Rails, but now I feel at home with JavaScript.\" </del> <ins> p.negative-10 \"Cookbook author and stay-at-home-dad. Started coding as a kid, got distracted, but now I'm back in full JavaScript force!\" </ins> .col-xs-12.col-sm-4.col-md-3.team-member h3.negative-10.text-nowrap Michael Johnson h4.negative-10.text-nowrap Nonprofit Coordinator"} |
|
|
{"_id":"q-en-freeCodeCamp-809e96adb74b441195836bce1f6fef081b3944236ad0c436acf2feed46650156","text":"```yml tests: - text: The function <code>countOnline</code> should use a `for in` statement to iterate through the object keys of the object passed to it. <del> testString: assert(code.match(/fors*(s*(var|let)s+[a-zA-Z_$]w*s+ins+[a-zA-Z_$]w*s*)s*{/)); </del> <ins> testString: assert(code.match(/fors*(s*(var|let|const)s+[a-zA-Z_$]w*s+ins+[a-zA-Z_$]w*s*)s*{/)); </ins> - text: 'The function <code>countOnline</code> should return <code>1</code> when the object <code>{ Alan: { online: false }, Jeff: { online: true }, Sarah: { online: false } }</code> is passed to it' testString: assert(countOnline(usersObj1) === 1); - text: 'The function <code>countOnline</code> should return <code>2</code> when the object <code>{ Alan: { online: true }, Jeff: { online: false }, Sarah: { online: true } }</code> is passed to it'"} |
|
|
{"_id":"q-en-freeCodeCamp-81fa7f1d920a97af7b23e5821736049dd252e625019aa6069d9b4bd9db96fbb3","text":"<h2 class=\"author-name\">${author}</h2> <img class=\"user-img\" src=\"${image}\" alt=\"${author} avatar\" /> <div class=\"purple-divider\"></div> <del> <p class=\"bio\">${bio.length > 50 ? bio.slice(0, 49) + '...' : bio}</p> </del> <ins> <p class=\"bio\">${bio.length > 50 ? bio.slice(0, 50) + '...' : bio}</p> </ins> <a class=\"author-link\" href=\"${url}\" target=\"_blank\">${author} author page</a> </div> `;"} |
|
|
{"_id":"q-en-freeCodeCamp-82ba036863a7a8d1dbe4c1952b81a739c2e3b01c0cc50d04c90786c1115e407c","text":"\"title\": \"Declare String Variables\", \"description\": [ \"In the previous challenge, we used the code <code>var myName = \"your name\"</code>. This is what we call a <code>String</code> variable. It is nothing more than a \"string\" of characters. JavaScript strings are always wrapped in quotes.\", <del> \"Now let's create two new string variables: <code>myFirstName</code>and <code>myLastName</code> and assign them the values of your first and last name, respectively.\" </del> <ins> \"Now let's create two new string variables: <code>myFirstName</code> and <code>myLastName</code> and assign them the values of your first and last name, respectively.\" </ins> ], \"tests\": [ \"assert((function(){if(typeof(myFirstName) !== \"undefined\" && typeof(myFirstName) === \"string\" && myFirstName.length > 0){return true |
|
|
{"_id":"q-en-freeCodeCamp-83871e88d50541743c0cafe6ca44f791e342ffca0501a6217680e927b0286584","text":"## Description <section id='description'> <del> To create a CSS Variable, you just need to give it a <code>name</code> with <code>two dashes</code> in front of it and assign it a <code>value</code> like this: </del> <ins> To create a CSS variable, you just need to give it a <code>name</code> with <code>two dashes</code> in front of it and assign it a <code>value</code> like this: </ins> ```css --penguin-skin: gray;"} |
|
|
{"_id":"q-en-freeCodeCamp-86c5fa572ad204bc0726fa30641cbbdeaf7c97ec52d49b1bc961473ae3fbf1f8","text":"Fulfill the below user stories and get all of the tests to pass. Use whichever libraries or APIs you need. Give it your own personal style. <del> You can use HTML, JavaScript, CSS, and the D3 svg-based visualization library. The tests require axes to be generated using the D3 axis property, which automatically generates ticks along the axis. These ticks are required for passing the D3 tests because their positions are used to determine alignment of graphed elements. You will find information about generating axes at <https://github.com/d3/d3/blob/master/API.md#axes-d3-axis>. Required (non-virtual) DOM elements are queried on the moment of each test. If you use a frontend framework (like Vue for example), the test results may be inaccurate for dynamic content. We hope to accommodate them eventually, but these frameworks are not currently supported for D3 projects. </del> <ins> You can use HTML, JavaScript, CSS, and the D3 svg-based visualization library. The tests require axes to be generated using the D3 axis property, which automatically generates ticks along the axis. These ticks are required for passing the D3 tests because their positions are used to determine alignment of graphed elements. You will find information about generating axes at <https://github.com/d3/d3/blob/master/API.md#axes-d3-axis>. Required DOM elements are queried on the moment of each test. If you use a frontend framework (like Vue for example), the test results may be inaccurate for dynamic content. We hope to accommodate them eventually, but these frameworks are not currently supported for D3 projects. </ins> **User Story #1:** My tree map should have a title with a corresponding `id=\"title\"`."} |
|
|
{"_id":"q-en-freeCodeCamp-86d6feb3a907bb7475af2e69e31548b56f8b29c17b8958d9bb46f3e98bfb0da2","text":"is2018DataVisCert && isApisMicroservicesCert && isFrontEndLibsCert && <del> is2020QaCert && is2020InfosecCert && </del> <ins> isInfosecQaCert && </ins> isJsAlgoDataStructCert && isRespWebDesignCert;"} |
|
|
{"_id":"q-en-freeCodeCamp-898583c368b0ec565c4f7dfeb2f924c214505fcb7b34ec31cb85337a67854b6e","text":"text-align: left; } <del> @media screen and (max-width: 767px) { .help-modal .btn-lg { font-size: 16px; } } </del> .help-text-warning { text-align: left; }"} |
|
|
{"_id":"q-en-freeCodeCamp-8abcb80121cc7764a738948f99cf3e3606ab93c47a2940fc70e7e3bca9fd4779","text":"Puedes ayudarnos a: <del> - [📝 Investigar, escribir y actualizar nuestras guías.](#investiga-escribe-y-actualiza-nuestros-artículos-de-guía) </del> <ins> - [📝 Investigar, escribir y actualizar nuestras guías.](#investiga-escribe-y-actualiza-nuestras-guías) </ins> - [💻 Crear, actualizar y corregir errores en nuestros desafíos de código.](#crear-actualizar-y-corregir-errores-en-nuestros-desafíos-de-codificación) - [🌐 Traducir artículos de guía y desafíos de código.](#traducir-artículos-de-guía-y-desafíos-de-codificación) <del> - [🛠 Corregir errores en la plataforma de aprendizaje de freeCodeCamp.org.](#ayúdenos-a-corregir-errores-en-la-plataforma-de-aprendizaje-de-freeCodeCamp.org) </del> <ins> - [🛠 Corregir errores en la plataforma de aprendizaje de freeCodeCamp.org.](#investiga-escribe-y-actualiza-nuestras-guías) </ins> ### Investiga, escribe y actualiza nuestras guías"} |
|
|
{"_id":"q-en-freeCodeCamp-8c023bd9c174dd60eb45ff4f0eb83a0b6646810e69bfae63e5e364ccc7ea8c28","text":"assert.deepEqual(binarySearch(_testArray, 13), [13]); ``` <ins> `binarySearch(testArray, 70)` should return `[13, 19, 22, 49, 70]`. ```js assert.deepEqual(binarySearch(_testArray, 70), [13, 19, 22, 49, 70]); ``` </ins> # --seed--"} |
|
|
{"_id":"q-en-freeCodeCamp-92797f6212552f26ee65b930b85e29a8e4878748e67cdde1e13429b3eb9b9589","text":"assert(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.media?.mediaText === 'only screen and (max-width: 550px)'); ``` <del> Your new `@media` rule should have a `.hero-title` selector, a `.hero-subtitle, .author, .quote, .list-header` selector, a `.social-icons` selector, and a `.text` selector. These selectors should be in this order. </del> <ins> Your new `@media` rule should have a `.hero-title` selector, a `.hero-subtitle, .author, .quote, .list-title` selector, a `.social-icons` selector, and a `.text` selector. These selectors should be in this order. </ins> ```js assert(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[0]?.selectorText === '.hero-title'); <del> assert(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[1]?.selectorText === '.hero-subtitle, .author, .quote, .list-header'); </del> <ins> assert(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[1]?.selectorText === '.hero-subtitle, .author, .quote, .list-title'); </ins> assert(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[2]?.selectorText === '.social-icons'); assert(new __helpers.CSSHelp(document).getCSSRules('media')?.[2]?.cssRules?.[3]?.selectorText === '.text'); ```"} |
|
|
{"_id":"q-en-freeCodeCamp-929f06c2a424937796a92b0df0fb23db2f4e06a176bd6d426c33b6c5203b660a","text":"--- ## Case Studies <del> The Software Engineering Ethics Research Institute of the Department of Computer and Information Sciences at East Tennessee State University published a series of Case Studies to help sensitize practicing software developers and students to the various types of ethical dilemmas they may face. [The International Standard for Professional Software Development and Ethical Responsibility](http://seeri.etsu.edu/TheSECode.htm) forms the basis for much of the analysis in each case. </del> <ins> The Markkula Center for Applied Ethics at Santa Clara University published a large collection of case studies to help expose practicing software developers and students to the various types of ethical dilemmas they may face. </ins> Cases: <del> * [**Big Brother Spyware**](http://seeri.etsu.edu/SECodeCases/ethicsC/BigBrother.htm) – Raises the issues of the tension between privacy, security, and whistleblowing in a post 11 September environment. </del> <ins> * [**Privacy, Technology, and School Shootings**](https://www.scu.edu/ethics/privacy/case-study-on-online-privacy/) - Schools are increasingly monitoring students' online activity. </ins> <del> * [**Computerized Patient Records**](http://seeri.etsu.edu/SECodeCases/ethicsC/Computerized%20Patient%20Records.htm) – The case uses patient records to examine the developer’s responsibility for information security. It evaluates a series of alternatives. </del> <ins> * [**Disclosing Software Vulnerabilities**](https://www.scu.edu/ethics/focus-areas/business-ethics/resources/the-vulnerability-disclosure-debate/) </ins> <del> * [**Death By Wire**](http://seeri.etsu.edu/SECodeCases/ethicsC/DeathByWire.htm) – The case address issues that arise from the shift of control from mechanically based systems to purely electronic/computer systems. It explores a situation where this process has been extended to heavy vehicles. It also looks at what happens when control of safety-critical equipments is turned over to a computer. </del> <ins> * [**Shipping Defective Products to Customers**](https://www.scu.edu/ethics/focus-areas/more/engineering-ethics/engineering-ethics-cases/to-ship-or-not-to-ship/) </ins> <del> * [**Digital Wallets and Whistle Blowing**](http://seeri.etsu.edu/SECodeCases/ethicsC/DigitalWallets.htm) – This is based on a real case involving security and includes an analysis of the decision related to when and how to whistle blow. </del> <ins> * [**Time-Sharing Space**](https://www.scu.edu/ethics/focus-areas/more/engineering-ethics/engineering-ethics-cases/time-sharing-space/) - An intern suspects a fellow intern is being condescending due to her gender. </ins> <del> * [**For Girls Only**](http://seeri.etsu.edu/SECodeCases/ethicsC/ForGirlsOnly.htm) – This case looks at a real case of gender bias in the development of software. </del> <ins> * [**Copyright Concerns**](https://www.scu.edu/ethics/focus-areas/more/engineering-ethics/engineering-ethics-cases/copyright-concerns/) - An employee develops software with some code that they had previously written while employed at another company. </ins> <del> * [**Nano-Technology: Swallow That Chip**](http://seeri.etsu.edu/SECodeCases/ethicsC/NanoTechnology.htm) – This case uses the vehicle of nano-technology to explore ways to address privacy and security issues that face software developers... </del> <ins> * [**Unintended Effects**](https://www.scu.edu/ethics/focus-areas/more/engineering-ethics/engineering-ethics-cases/unintended-effects/) - A manager believes his company is providing the wrong form of technology to an in-need community. </ins> <del> * [**Patriot Missile Case**](http://seeri.etsu.edu/SECodeCases/ethicsC/PatriotMissile.htm) – This piece examines the importance of configuration management and effective design as they relate to the Patriot Missile Disaster. * [**Therac-25**](http://users.csc.calpoly.edu/~jdalbey/SWE/Papers/THERAC25.html) – This case highlights the danger of software-based controls on life-threatening systems. </del> <ins> * [**Insurmountable Differences**](https://www.scu.edu/ethics/focus-areas/more/engineering-ethics/engineering-ethics-cases/insurmountable-differences/) - Responding to racially motivated remarks in the workplace. </ins> #### More Information <del> Additional information is available through the [Software Engineering Ethics Research Institute](http://seeri.etsu.edu) </del> <ins> * [The Markkula Center's homepage.](https://www.scu.edu/ethics/) </ins>"} |
|
|
{"_id":"q-en-freeCodeCamp-9544ff11e14f7474d81f9b51533b5cac52b1b19bdb5b9415f581b82ae33c0ccf","text":"# --description-- <del> Two or more strings can be concatenated by using the `+` operator. For example: `'Hello' + ' there!'` results in `'Hello there!`. </del> <ins> Two or more strings can be concatenated by using the `+` operator. For example: `'Hello' + ' there!'` results in `'Hello there!'`. </ins> Call the `print()` function and use the `+` operator to concatenate the `text` variable to the string `'Encrypted text: '`. Pay attention to the spacing."} |
|
|
{"_id":"q-en-freeCodeCamp-9563c8dbd8612040a98551fad51d705517d2daf889ed661001d440410370536f","text":"bindActionCreators({ submitProfileUI }, dispatch) |
|
|
{"_id":"q-en-freeCodeCamp-9665d078b306f5307b9fbd1d641eae6721a808c28fb47558d7166af42f9ca81a","text":"git cherry-pick <commit-hash> ``` <del> 4. Resolve any conflicts, and cleanup, install run tests </del> <ins> 4. Resolve any conflicts, cleanup, install dependencies and run tests </ins> ```console npm run clean"} |
|
|
{"_id":"q-en-freeCodeCamp-968e8777a6463600630e5edebbc634d2b38d38ca2de7a59ed9014d872b24cb1d","text":"} ``` <del> However, this should be used with care as using multiple conditional operators without proper indentation may make your code hard to read. For example: </del> <ins> It is considered best practice to format multiple conditional operators such that each condition is on a separate line, as shown above. Using multiple conditional operators without proper indentation may make your code hard to read. For example: </ins> ```js function findGreaterOrEqual(a, b) {"} |
|
|
{"_id":"q-en-freeCodeCamp-969d026f30d6161e7f67d89220554bb27a93a85eef958abcb5a14c8b8bb94878","text":"<article> <del> <h2><a id=\"second\" href=\"\">Is Chuck Norris a Cat Person?</a></h2> </del> <ins> <h2><a id=\"second\" href=\"#\">Is Chuck Norris a Cat Person?</a></h2> </ins> <p>Chuck Norris is widely regarded as the premier martial artist on the planet, and it's a complete coincidence anyone who disagrees with this fact mysteriously disappears soon after. But the real question is, is he a cat person?...</p>"} |
|
|
{"_id":"q-en-freeCodeCamp-9cd9010a484fefd1e349d6f07bb5c367deb845f150c9b49a88d94ff4e3c5de15","text":"# --instructions-- <del> Add your name as the `author` of the project in the package.json file. </del> <ins> Add your name as the `author` of the project in the `package.json` file. </ins> **Note:** Remember that you’re writing JSON, so all field names must use double-quotes (\") and be separated with a comma (,). # --hints-- <del> package.json should have a valid \"author\" key </del> <ins> `package.json` should have a valid \"author\" key </ins> ```js (getUserInput) =>"} |
|
|
{"_id":"q-en-freeCodeCamp-9f0da0991cc001c7be5f12e82895c75d027ff28a80302626cbbb49c209192ef1","text":"\"id\": \"56533eb9ac21ba0edf2244d5\", \"title\": \"Comparison with the Greater Than Or Equal To Operator\", \"description\": [ <del> \"The <code>greater than or equal to</code> operator (<code>>=</code>) compares the values of two numbers. If the number to the left is greater than or equal to the number to the right, it returns <code>true</code>. Otherwise, it returns <code>false</code>.<br>Like the equality operator, <code>greater than or equal to</code> operator will convert data types while comparing.\", </del> <ins> \"The <code>greater than or equal to</code> operator (<code>>=</code>) compares the values of two numbers. If the number to the left is greater than or equal to the number to the right, it returns <code>true</code>. Otherwise, it returns <code>false</code>.\", \"Like the equality operator, <code>greater than or equal to</code> operator will convert data types while comparing.\", </ins> \"<strong>Examples</strong>\", \"<blockquote> 6 >= 6 // true<br> 7 >= '3' // true<br> 2 >= 3 // false<br>'7' >= 9 // false</blockquote>\", \"<h4>Instructions</h4>\","} |
|
|
{"_id":"q-en-freeCodeCamp-9fb2986656a0771eb9d944ad08422a5e8c9e92de70280c1c8403b315becc8926","text":"{certPath ? ( <Link className='timeline-cert-link' <del> external={true} to={`certification/${username}/${certPath}`} </del> <ins> to={`/certification/${username}/${certPath}`} </ins> > {challengeTitle} <CertificationIcon />"} |
|
|
{"_id":"q-en-freeCodeCamp-9fcaa364e0f3f98b85153039733ce5481e8f5fdc77dff33804d2f133390a9f84","text":"'invalid-protocol': 'URL must start with http or https', 'url-not-image': 'URL must link directly to an image file', 'use-valid-url': 'Please use a valid URL' <ins> }, certification: { certifies: 'This certifies that', completed: 'has successfully completed the freeCodeCamp.org', developer: 'Developer Certification, representing approximately', executive: 'Executive Director, freeCodeCamp.org', verify: 'Verify this certification at {{certURL}}', issued: 'Issued' </ins> } } |
|
|
{"_id":"q-en-freeCodeCamp-a338fe8f784cef0d3d5af63a029ac4023be46ea51d5d6304d6b2e62219495ad7","text":"# --hints-- <del> Your code should use the `hsl()` function to declare the color `green`. </del> <ins> Your code should use the `hsl()` function to declare the color green. </ins> ```js assert(code.match(/.greens*?{s*?background-colors*:s*?hsl/gi)); ``` <del> Your code should use the `hsl()` function to declare the color `cyan`. </del> <ins> Your code should use the `hsl()` function to declare the color cyan. </ins> ```js assert(code.match(/.cyans*?{s*?background-colors*:s*?hsl/gi)); ``` <del> Your code should use the `hsl()` function to declare the color `blue`. </del> <ins> Your code should use the `hsl()` function to declare the color blue. </ins> ```js assert(code.match(/.blues*?{s*?background-colors*:s*?hsl/gi));"} |
|
|
{"_id":"q-en-freeCodeCamp-a3b33b9dc662a3409098a61d270341455b66f399cfd5dc1d3398bfdbd6d90698","text":"<Col className='certifications' sm={10} smPush={1}> <Link className='btn btn-lg btn-primary btn-block' <del> external={true} </del> to={`/certification/${username}/${cert.certSlug}`} > View {cert.title}"} |
|
|
{"_id":"q-en-freeCodeCamp-a3b7b0bcd46c93ab8cb3670c13fdd42fecc926ccb29b56c853c4defb261adaa6","text":"takeEvery(types.updateUserFlag, updateUserFlagSaga), takeLatest(types.submitNewAbout, submitNewAboutSaga), takeLatest(types.submitNewUsername, submitNewUsernameSaga), <del> takeLatest(types.validateUsername, validateUsernameSaga), </del> <ins> debounce(2000, types.validateUsername, validateUsernameSaga), </ins> takeLatest(types.submitProfileUI, submitProfileUISaga), takeEvery(types.verifyCert, verifyCertificationSaga) ];"} |
|
|
{"_id":"q-en-freeCodeCamp-a40de38f5ba0dcab83928b4e60f0b864050e39052359fc2d44e125924ba6a792","text":"challengeFile.fileKey === fileKey ? { ...challengeFile, ...updates } : { ...challengeFile } <del> ) </del> <ins> ), isBuildEnabled: true </ins> }; }, [actionTypes.storedCodeFound]: (state, { payload }) => ({"} |
|
|
{"_id":"q-en-freeCodeCamp-a52984dc06fce44b55d074a81fa00a9ae1ad42416c2757e13babc468cdd584af","text":"return [ takeLatest(types.executeChallenge, executeCancellableChallengeSaga), takeLatest( <del> [ types.updateFile, types.previewMounted, types.challengeMounted, types.resetChallenge ], </del> <ins> [types.updateFile, types.challengeMounted, types.resetChallenge], </ins> previewChallengeSaga ), <ins> takeLatest(types.previewMounted, previewChallengeSaga, { flushLogs: false }), </ins> takeLatest(types.projectPreviewMounted, previewProjectSolutionSaga) ]; }"} |
|
|
{"_id":"q-en-freeCodeCamp-a618a2192dada80500cd5efdadba79df0541ccec3e988d8fbab7e7d5bea39b96","text":"# --hints-- <ins> You should have four `article` elements in your second `section`. ```js const secondSection = document.querySelectorAll('section')[1] const articles = secondSection.querySelectorAll('article') assert(articles.length === 4) ``` </ins> You should have four `.dessert` elements. ```js"} |
|
|
{"_id":"q-en-freeCodeCamp-a701eca9796923318ee9d513fbae526c9ad2543d9db80fb75e1f0ca0807444a1","text":"# --instructions-- <del> Add version \"1.1.0\" of the `@freecodecamp/example` package to the `dependencies` field of your `package.json` file. </del> <ins> Add version `1.1.0` of the `@freecodecamp/example` package to the `dependencies` field of your `package.json` file. </ins> **Note:** `@freecodecamp/example` is a faux package used as a learning tool."} |
|
|
{"_id":"q-en-freeCodeCamp-a7d53ab195efcf5132dcaed837cbc67e8577b76100a1482541e47c66bcca366d","text":"\"Return the provided string with the first letter of each word capitalized.\", \"For the purpose of this exercise, you should also capitalize connecting words like 'the' and 'of'.\" ], <del> \"challengeEntryPoint\": \"titleCase(\"I'm a little tea pot\")\", </del> <ins> \"challengeEntryPoint\": \"titleCase(\"I'm a little tea pot\") |
|
|
{"_id":"q-en-freeCodeCamp-aa099c52e3a5563ea4da1af536d58e37f7de90f904091afc52bfe9a26b3ff164","text":"}); ``` <ins> The `draw` method should behave correctly when the number of balls to extract is bigger than the number of balls in the hat. ```js ({ test: () => { pyodide.FS.writeFile(\"/home/pyodide/probability_calculator.py\", code); pyodide.FS.writeFile( \"/home/pyodide/test_module.py\", ` import unittest import probability_calculator from importlib import reload reload(probability_calculator) probability_calculator.random.seed(95) class UnitTests(unittest.TestCase): maxDiff = None def test_hat_draw_2(self): hat = probability_calculator.Hat(yellow=5,red=1,green=3,blue=9,test=1) actual = hat.draw(20) expected = ['yellow', 'yellow', 'yellow', 'yellow', 'yellow', 'red', 'green', 'green', 'green', 'blue', 'blue', 'blue', 'blue', 'blue', 'blue', 'blue', 'blue', 'blue', 'test'] self.assertEqual(actual, expected, 'Expected hat draw to return all items from hat contents.') actual = len(hat.contents) expected = 0 self.assertEqual(actual, expected, 'Expected hat draw to leave no items in contents.') ` ); const testCode = ` from unittest import main import test_module from importlib import reload reload(test_module) t = main(module='test_module', exit=False) t.result.wasSuccessful() `; const out = __pyodide.runPython(testCode); assert(out); }, }); ``` </ins> The `experiment` method should return a different probability."} |
|
|
{"_id":"q-en-freeCodeCamp-aa67d58a2bbfe6502ac684dd08053eea264d5b33efaea97f0a8e86a04de20dc6","text":"</Col> <Col md={7} sm={12}> <div data-cy='issue-date' className='issue-date'> <del> Issued </del> <ins> {t('certification.issued')} </ins> <strong>{format(certDate, 'MMMM d, y')}</strong> </div> </Col>"} |
|
|
{"_id":"q-en-freeCodeCamp-b2b844d8cff31a0b068d129dad74631ecc883e11f22818fcd946ab3754ce25c9","text":"Puedes optar por contribuir a cualquier área de tu interés: <del> 1. [Contribuir a esta base de código fuente abierto.](#contribute-to-this-open-source-codebase) </del> <ins> 1. [Contribuir a esta base de código fuente abierto.](#contribuye-a-esta-base-de-código-abierto) </ins> Ayúdanos a crear o editar [artículos de guía](https://www.freecodecamp.org/guide), [desafíos de codificación](https://www.freecodecamp.org/learn) o a corregir errores en la plataforma de aprendizaje."} |
|
|
{"_id":"q-en-freeCodeCamp-b325d6f8e345b50f8f7d4560dd59b7f448eddd0f3227f3979f2424bfc61373a6","text":"Your `#video` should have a `src` attribute ```js <del> const el = document.getElementById('video') assert(!!el && !!el.src) </del> <ins> let el = document.getElementById('video') const sourceNode = el.children; let sourceElement = null; if (sourceNode.length) { sourceElement = [...video.children].filter(el => el.localName === 'source')[0]; } if (sourceElement) { el = sourceElement; } assert(el.hasAttribute('src')); </ins> ``` You should have a `form` element with an `id` of `form`"} |
|
|
{"_id":"q-en-freeCodeCamp-b48afaa1fa894ce28e8131b6458b5f6c763cc0302eb40393f68e5e9aba7397f1","text":"\"challengeType\": 3, \"nameEs\": \"Crea un juego de Tic Tac Toe\", \"descriptionEs\": [ <del> \"<span class='text-info'>Objetivo:</span> Crea una aplicación con <a href='http://codepen.io' target='_blank'>CodePen.io</a> que reproduzca efectivamente mediante ingeniería inversa este app: <a href='http://codepen.io/FreeCodeCamp/full/adBpvw' target='_blank'>http://codepen.io/FreeCodeCamp/full/adBpvw</a>.\", </del> <ins> \"<span class='text-info'>Objetivo:</span> Construye una aplicación en <a href='http://codepen.io' target='_blank'>CodePen.io</a> cuya funcionalidad sea similar a la de esta: <a href='http://codepen.io/FreeCodeCamp/full/adBpvw' target='_blank'>http://codepen.io/FreeCodeCamp/full/adBpvw</a>.\", </ins> \"<span class='text-info'>Regla #1:</span> No veas el código del proyecto de ejemplo en CodePen. Encuentra la forma de hacerlo por tu cuenta.\", <del> \"<span class='text-info'>Regla #2:</span> Puedes usar cualquier librería o APIs que necesites.\", \"<span class='text-info'>Regla #3:</span> Usa ingeniería inversa para reproducir la funcionalidad del proyecto de ejemplo, pero también siéntete en la libertad de personalizarlo.\", \"Las siguientes son las <a href='http://en.wikipedia.org/wiki/User_story' target='_blank'>historias de usuario</a> que debes satisfacer, incluyendo las historias opcionales:\", \"<span class='text-info'>Historia de usuario:</span> Como usuario, puedo iniciar un juego de Tic Tac Toe con la computadora.\", \"<span class='text-info'>Historia de usuario opcional:</span> Como usuario, nunca puedo ganar contra la computadora - en el mejor de los casos puedo empatar.\", \"<span class='text-info'>Historia de usuario opcional:</span> Como usuario, mi juego se reiniciará tan pronto como se termine, de tal forma que pueda jugar de nuevo.\", \"<span class='text-info'>Historia de usuario opcional:</span> Como usuario, puedo elegir si quiero jugar como X o como O.\", \"Recuerda utilizar <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>Read-Search-Ask</a> si te sientes atascado.\", \"Cuando hayas terminado, pulsa el botón de \"I've completed this challenge\" e incluye un link a tu CodePen. Si programaste en pareja, debes incluir también el nombre de usuario de Free Code Camp de tu compañero.\", \"Si quieres retroalimentación inmediata de parte de tus compañeros campistas, pulsa este botón y pega el link de tu proyecto en CodePen. <br><br><a class='btn btn-primary btn-block' href='https://twitter.com/intent/tweet?text=Check%20out%20the%20project%20I%20just%20built%20with%20%40FreeCodeCamp:%20PASTE_YOUR_CODEPEN_URL_HERE%20%0A%20%23LearnToCode%20%23JavaScript' target='_blank'>Pulsa aquí y agrega tu link en el texto del tweet</a>\" </del> <ins> \"<span class='text-info'>Regla #2:</span> Satisface las siguientes <a href='http://en.wikipedia.org/wiki/User_story' target='_blank'>historias de usuario</a>. Usa cualquier librería o APIs que necesites. Dale tu estilo personal.\", \"<span class='text-info'>Historia de usuario:</span> Puedo jugar un juego de Tic Tac Toe contra el computador.\", \"<span class='text-info'>Historia de usuario:</span> Mi juego se reiniciará tan pronto como termine para poder jugar de nuevo.\", \"<span class='text-info'>Historia de usuario:</span> Puedo elegir si quiero jugar como X o como O.\", \"Recuerda utilizar <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>Leer-Buscar-Preguntar</a> si te sientes atascado.\", \"Cuando hayas terminado, pulsa el botón de \"I've completed this challenge\" e incluye un enlace a tu CodePen.\", \"Puedes obtener retroalimentación sobre tu proyecto por parte de otros campistas, compartiéndolo en nuestra <a href='//gitter.im/freecodecamp/codereview' target='_blank'>Sala de chat para revisión de código</a>. También puedes compartirlo en Twitter y en el campamento de tu ciudad (en Facebook).\" </ins> ], \"isRequired\": true },"} |
|
|
{"_id":"q-en-freeCodeCamp-b8ce72853f5c0c5d57c9ccbe0894a872456b4e1f28e18188f30ab4d70734da75","text":"], \"nameEs\": \"Crea un reloj pomodoro\", \"descriptionEs\": [ <del> \"<span class='text-info'>Objetivo:</span> Crea una aplicación con <a href='http://codepen.io' target='_blank'>CodePen.io</a> que reproduzca efectivamente mediante ingeniería inversa este app: <a href='http://codepen.io/FreeCodeCamp/full/VemPZX' target='_blank'>http://codepen.io/FreeCodeCamp/full/VemPZX</a>.\", </del> <ins> \"<span class='text-info'>Objetivo:</span> Crea una aplicación con <a href='http://codepen.io' target='_blank'>CodePen.io</a> cuya funcionalidad sea similar a la de esta: <a href='http://codepen.io/FreeCodeCamp/full/VemPZX' target='_blank'>http://codepen.io/FreeCodeCamp/full/VemPZX</a>.\", </ins> \"<span class='text-info'>Regla #1:</span> No veas el código del proyecto de ejemplo en CodePen. Encuentra la forma de hacerlo por tu cuenta.\", <del> \"<span class='text-info'>Regla #2:</span> Puedes usar cualquier librería o APIs que necesites.\", \"<span class='text-info'>Regla #3:</span> Usa ingeniería inversa para reproducir la funcionalidad del proyecto de ejemplo, pero también siéntete en la libertad de personalizarlo.\", \"Las siguientes son las <a href='http://en.wikipedia.org/wiki/User_story' target='_blank'>historias de usuario</a> que debes satisfacer, incluyendo las historias opcionales:\", \"<span class='text-info'>Historia de usuario:</span> Como usuario, puedo iniciar un pomodoro de 25 minutos, y el cronómetro terminará cuando pasen 25 minutos.\", </del> <ins> \"<span class='text-info'>Regla #2:</span> Satisface las siguientes <a href='http://en.wikipedia.org/wiki/User_story' target='_blank'>historias de usuario</a>. Usa cualquier librería o APIs que necesites. Dale tu estilo personal.\", \"<span class='text-info'>Historia de usuario:</span> Puedo iniciar un pomodoro de 25 minutos, y el cronómetro terminará cuando pasen 25 minutos.\", </ins> \"<span class='text-info'>Historia de usuario:</span> Como usuario, puedo reiniciar el reloj para comenzar mi siguiente pomodoro.\", <del> \"<span class='text-info'>Historia de usuario opcional:</span> Como usuario, puedo personalizar la longitud de cada pomodoro.\", \"Recuerda utilizar <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>Read-Search-Ask</a> si te sientes atascado.\", \"Cuando hayas terminado, pulsa el botón de \"I've completed this challenge\" e incluye un link a tu CodePen. Si programaste en pareja, debes incluir también el nombre de usuario de Free Code Camp de tu compañero.\", \"Si quieres retroalimentación inmediata de parte de tus compañeros campistas, pulsa este botón y pega el link de tu proyecto en CodePen. <br><br><a class='btn btn-primary btn-block' href='https://twitter.com/intent/tweet?text=Check%20out%20the%20project%20I%20just%20built%20with%20%40FreeCodeCamp:%20PASTE_YOUR_CODEPEN_URL_HERE%20%0A%20%23LearnToCode%20%23JavaScript' target='_blank'>Pulsa aquí y agrega tu link en el texto del tweet</a>\" </del> <ins> \"<span class='text-info'>Historia de usuario:</span> Como usuario, puedo personalizar la longitud de cada pomodoro.\", \"Recuerda utilizar <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>Leer-Buscar-Preguntar</a> si te sientes atascado.\", \"Cuando hayas terminado, pulsa el botón de \"I've completed this challenge\" e incluye un enlace a tu CodePen.\", \"Puedes obtener retroalimentación sobre tu proyecto por parte de otros campistas, compartiéndolo en nuestra <a href='//gitter.im/freecodecamp/codereview' target='_blank'>Sala de chat para revisión de código</a>. También puedes compartirlo en Twitter y en el campamento de tu ciudad (en Facebook).\" </ins> ], \"isRequired\": true, \"challengeType\": 3"} |
|
|
{"_id":"q-en-freeCodeCamp-baa18dd4ccd67715418643a204872187cfbba08b9032c554cad54f1e8e48ecae","text":"\"<code><h2 class=\"red-text text-center\">your text</h2></code>\" ], \"tests\": [ <del> \"assert($(\"h2\").hasClass(\"text-center\"), 'Your <code>h2</code> element should be centered by applying the class <code>text-center</code>')\" </del> <ins> \"assert($(\"h2\").hasClass(\"text-center\"), 'Your <code>h2</code> element should be centered by applying the class <code>text-center</code>')\", \"assert($(\"h2\").hasClass(\"red-text\"), 'Your <code>h2</code> element should still have the class <code>red-text</code>')\" </ins> ], \"challengeSeed\": [ \"<link href=\"http://fonts.googleapis.com/css?family=Lobster\" rel=\"stylesheet\" type=\"text/css\">\","} |
|
|
{"_id":"q-en-freeCodeCamp-bd57c8c0fe44a083a22ca149a0628192ddff400be03ce867a811a1a82a9b6074","text":"<article> <del> <h2><a id=\"first\" href=\"\">The Garfield Files: Lasagna as Training Fuel?</a></h2> </del> <ins> <h2><a id=\"first\" href=\"#\">The Garfield Files: Lasagna as Training Fuel?</a></h2> </ins> <p>The internet is littered with varying opinions on nutritional paradigms, from catnip paleo to hairball cleanses. But let's turn our attention to an often overlooked fitness fuel, and examine the protein-carb-NOM trifecta that is lasagna...</p>"} |
|
|
{"_id":"q-en-freeCodeCamp-be80b4c59c6c55b3b2d12ee697b115fecd0669761ac6b35d327e1a8864cece9b","text":"# --description-- <del> Inside the template literal, create a `div` element with the `id` set to the `index` from the `.forEach()` array method. Remember to use template interpolation to do this. </del> <ins> Inside the template literal, create a `div` element with the `id` set to the `index` from the `.forEach()` array method. Remember to use string interpolation to do this. </ins> Also, add a `class` of `\"user-card\"` to the `div`."} |
|
|
{"_id":"q-en-freeCodeCamp-c14dbc80c3bd8bc07b629938bbb797d3f59ad0a5fb9b319edfcfa79fbed51bb1","text":"The content of this repository bound by the following licenses: - The computer software is licensed under the [BSD-3-Clause](./LICENSE.md). <ins> - The [curricular content](https://www.npmjs.com/package/@freecodecamp/curriculum) in the [`/seed`](/seed) and subdirectories are licensed under the [CC-BY-SA-4.0](https://github.com/freeCodeCamp/curriculum/blob/master/LICENSE.md). </ins>"} |
|
|
{"_id":"q-en-freeCodeCamp-c263dec51cd267a2f234e2ed04d58ddcd4e5b39f4e21ff2a285ec58f51170c0c","text":"\"video\": \"114591799\", \"challengeNumber\": 13, \"steps\": [ <del> \"Now that we've built a foundation in jQuery, let's go back to Dash and do it's last challenge.\", </del> <ins> \"Now that we've built a foundation in jQuery, let's go back to Dash and do its last challenge.\", </ins> \"If you aren't familiar with Mad Libs, they basically involve inserting random nouns, adjectives and verbs in to stories. The stories that result are often hilarious.\", \"Go to <a href='https://dash.generalassemb.ly/projects/mad-libs-1' target='_blank'>https://dash.generalassemb.ly/projects/mad-libs-1</a> and complete the fifth project.\" ]"} |
|
|
{"_id":"q-en-freeCodeCamp-c51091a89b7b43a08602d9f0241fafe51b752d2dfc65413dc9a579876da6787c","text":"<ins> --- id: 5a9d7295424fe3d0e10cad14 title: Inherit CSS Variables challengeType: 0 videoUrl: 'https://scrimba.com/c/cyLZZhZ' --- ## Description <section id='description'> When you create a variable, it is available for you to use inside the selector in which you create it. It also is available in any of that selector's descendants. This happens because CSS variables are inherited, just like ordinary properties. To make use of inheritance, CSS variables are often defined in the <dfn>:root</dfn> element. <code>:root</code> is a <dfn>pseudo-class</dfn> selector that matches the root element of the document, usually the <code>html</code> element. By creating your variables in <code>:root</code>, they will be available globally and can be accessed from any other selector in the style sheet. </section> ## Instructions <section id='instructions'> Define a variable named <code>--penguin-belly</code> in the <code>:root</code> selector and give it the value of <code>pink</code>. You can then see that the variable is inherited and that all the child elements which use it get pink backgrounds. </section> ## Tests <section id='tests'> ```yml tests: - text: Declare the <code>--penguin-belly</code> variable in the <code>:root</code> and assign it to <code>pink</code>. testString: assert(code.match(/:roots*?{[sS]*--penguin-bellys*?:s*?pinks*? |
|
|
{"_id":"q-en-freeCodeCamp-c5b779ac02ff07fe3f5de491e0dc70ea610efbf2d6834a7d6234c646064d46ee","text":"} href={ dropdownFooter <del> ? `https://freecodecamp.org/news/search/?query=${encodeURIComponent( </del> <ins> ? `https://www.freecodecamp.org/news/search/?query=${encodeURIComponent( </ins> hit.query )}` : hit.url"} |
|
|
{"_id":"q-en-freeCodeCamp-c8e98db60fc4d3b225f5eda79cb74d18faae540dae82506a6bc16095c1513ca1","text":"\"Vamos a filtrar el gato cuya llave \"id\" tiene un valor de 1.\", \"Aquí está el código para hacer esto:\", \"<blockquote>json = json.filter(function(val) {</br> return (val.id !== 1) |
|
|
{"_id":"q-en-freeCodeCamp-c96991cfb1923085bf8ced4582b9a2446b60461973c03af30baff4464bf384ba","text":"--- <del> The conference room </del> <ins> Desk </ins> --- <del> The elevator </del> <ins> Elevator </ins> ### --feedback--"} |
|
|
{"_id":"q-en-freeCodeCamp-ce8aa317a196fb150dea41885d5f51925eb743b51241928fd17f7b481d438706","text":"<section id='description'> Sometimes you won't (or don't need to) know the exact characters in your patterns. Thinking of all words that match, say, a misspelling would take a long time. Luckily, you can save time using the wildcard character: <code>.</code> The wildcard character <code>.</code> will match any one character. The wildcard is also called <code>dot</code> and <code>period</code>. You can use the wildcard character just like any other character in the regex. For example, if you wanted to match <code>\"hug\"</code>, <code>\"huh\"</code>, <code>\"hut\"</code>, and <code>\"hum\"</code>, you can use the regex <code>/hu./</code> to match all four words. <del> <blockquote>let humStr = \"I'll hum a song\";<br>let hugStr = \"Bear hug\";<br>let huRegex = /hu./;<br>humStr.match(huRegex); // Returns [\"hum\"]<br>hugStr.match(huRegex); // Returns [\"hug\"]</blockquote> </del> <ins> <blockquote>let humStr = \"I'll hum a song\";<br>let hugStr = \"Bear hug\";<br>let huRegex = /hu./;<br>humStr.test(huRegex); // Returns true<br>hugStr.test(huRegex); // Returns true</blockquote> </ins> </section> ## Instructions"} |
|
|
{"_id":"q-en-freeCodeCamp-d1ac42c8667e4261b5b8751d5ba0a744badd6f3f72d2a5a77f0d43f8dca2b6e2","text":"<ins> --- id: 561add10cb82ac38a17213bd title: Full Stack Certificate challengeType: 7 isHidden: false isPrivate: true --- ## Description <section id='description'> </section> ## Instructions <section id='instructions'> </section> ## Tests <section id='tests'> ```yml tests: - id: 561add10cb82ac38a17513bc title: Responsive Web Design Certificate - id: 561abd10cb81ac38a17513bc title: JavaScript Algorithms and Data Structures Certificate - id: 561acd10cb82ac38a17513bc title: Front End Libraries Certificate - id: 5a553ca864b52e1d8bceea14 title: Data Visualization Certificate - id: 561add10cb82ac38a17523bc title: API's and Microservices Certificate - id: 561add10cb82ac38a17213bc title: Legacy Information Security and Quality Assurance Certificate ``` </section> ## Challenge Seed <section id='challengeSeed'> </section> ## Solution <section id='solution'> ```js // solution required ``` </section> </ins>"} |
|
|
{"_id":"q-en-freeCodeCamp-d3e90eb786b8577857b5b2fdd3021f9f1a7be5983b26dba2e53d4c32a96a87fc","text":"Now navigate to your browser and open http://localhost:3001 If the app loads, congratulations - you're all set. Otherwise, let us know by opening a GitHub issue and with your error. <ins> ## Linting Setup You should have [ESLint running in your editor](http://eslint.org/docs/user-guide/integrations.html), and it will highlight anything doesn't conform to [Free Code Camp's JavaScript Style Guide](https://github.com/FreeCodeCamp/FreeCodeCamp/wiki/Free-Code-Camp-JavaScript-Style-Guide) (you can find a summary of those rules [here](https://github.com/FreeCodeCamp/FreeCodeCamp/blob/staging/.eslintrc). Please do not ignore any linting errors, as they are meant to **help** you and to ensure a clean and simple code base. Make sure none of your JavaScript is longer than 80 characters per line. The reason we enforce this is because one of our dependent NPM modules, [jsonlint](https://github.com/zaach/jsonlint), does not fully support wildcard paths in Windows. </ins> ## Found a bug? Do not file an issue until you have followed these steps:"} |
|
|
{"_id":"q-en-freeCodeCamp-d4eb626d65f8bf89dbd6079e865efbc148b729059a9f99a749ab3554551df78d","text":"## Instructions <section id='instructions'> <del> Use multiple conditional operators in the <code>checkSign</code> function to check if a number is positive, negative or zero. The function should return \"positive\", \"negative\" or \"zero\". </del> <ins> In the <code>checkSign</code> function, use multiple conditional operators - following the recommended format used in <code>findGreaterOrEqual</code> - to check if a number is positive, negative or zero. The function should return <code>\"positive\"</code>, <code>\"negative\"</code> or <code>\"zero\"</code>. </ins> </section> ## Tests"} |
|
|
{"_id":"q-en-freeCodeCamp-d5d351c7e7f8427078d6058470b1843878ab86a9434fe715198b994c008cd9a8","text":"<ins> { \"name\": \"Full Stack Certificate\", \"dashedName\": \"full-stack-certificate\", \"order\": 5, \"time\": \"\", \"template\": \"\", \"required\": [], \"superBlock\": \"certificates\", \"superOrder\": 12, \"challengeOrder\": [ [ \"561add10cb82ac38a17213bd\", \"Full Stack Certificate\" ] ], \"isPrivate\": true, \"fileName\": \"12-certificates/full-stack-certificate.json\" } </ins>"} |
|
|
{"_id":"q-en-freeCodeCamp-d717b430ab2e59e2148923a8961e8ec8c6927710584d879b2fb6753a58a2c8a9","text":"\"assert(typeof(myBike.addUnit) === 'undefined', 'message: <code>myBike.addUnit</code> should remain undefined.') |
|
|
{"_id":"q-en-freeCodeCamp-d754c243fd4f425ae810ee97f411174bf196a6a8d6671d25cf798f758310a460","text":"If the `bio` text is greater than `50` characters, you should extract the first 50 characters with `slice()` and replace the rest with `...`. Don't forget that indexes are zero-based. ```js <del> assert.match(code, /<ps*class=(\"|')bio1>${s*bio.lengths*>s*50s*?s*bio.slice(s*0,s*49s*)s*+s*(\"|')...2s*:/) </del> <ins> assert.match(code, /<ps*class=(\"|')bio1>${s*bio.lengths*>s*50s*?s*bio.slice(s*0,s*50s*)s*+s*(\"|')...2s*:/) </ins> ``` If the `bio` text is less than 50 characters, use the `bio` text directly. ```js <del> assert.match(code, /<ps*class=(\"|')bio1>${s*bio.lengths*>s*50s*?s*bio.slice(s*0,s*49s*)s*+s*(\"|')...2s*:s*bios*}</p>/) </del> <ins> assert.match(code, /<ps*class=(\"|')bio1>${s*bio.lengths*>s*50s*?s*bio.slice(s*0,s*50s*)s*+s*(\"|')...2s*:s*bios*}</p>/) </ins> ```"} |
|
|
{"_id":"q-en-freeCodeCamp-d84bf714c8f918abb5711c46f348223ba8a01002221304ce0ce9197ad75b7f7d","text":"\"description\": [ \"So we've proven that id declarations override class declarations, regardless of where they are declared in your <code>style</code> element CSS.\", \"There are other ways that you can override CSS. Do you remember inline styles?\", <del> \"Use an <code>in-line style</code> to try to make our <code>h1</code> element white. Remember, in line styles look like this:\", </del> <ins> \"Use an <code>inline style</code> to try to make our <code>h1</code> element white. Remember, in line styles look like this:\", </ins> \"<code><h1 style=\"color: green\"></code>\", \"Leave the <code>blue-text</code> and <code>pink-text</code> classes on your <code>h1</code> element.\" ],"} |
|
|
{"_id":"q-en-freeCodeCamp-d9240f5db966af69695ddbfcb958021dcc1b8999dd1399e17ca62f8e298f6f88","text":"smOffset={ 1 } xs={ 12 } > <del> <p </del> <ins> <div </ins> className={ `${ns}-description` } dangerouslySetInnerHTML={{ __html: info }} />"} |
|
|
{"_id":"q-en-freeCodeCamp-da43183d04345f5452bbb5c9c200c0cf553c6995379e9659a9448a7070b8dbc3","text":": '/' + clientLocale |
|
|
{"_id":"q-en-freeCodeCamp-da96f1d359ab5844b1e6cff1eb16e711defca2e7dbc4928e76e5298e9cbfa87f","text":"\"id\": \"bg9997c9c69feddfaeb9bdef\", \"title\": \"Manipulate Arrays With unshift()\", \"description\": [ <del> \"Now that we've learned how to <code>shift</code>things from the start of the array, we need to learn how to <code>unshift</code>stuff back to the start.\", \"Let's take the code we had last time and <code>unshift</code>this value to the start: <code>\"Paul\"</code>.\" </del> <ins> \"Now that we've learned how to <code>shift</code> things from the start of the array, we need to learn how to <code>unshift</code> stuff back to the start.\", \"Let's take the code we had last time and <code>unshift</code> this value to the start: <code>\"Paul\"</code>.\" </ins> ], \"tests\": [ \"assert((function(d){if(typeof(d[0]) === \"string\" && d[0].toLowerCase() == 'paul' && d[1] == 23 && d[2][0] != undefined && d[2][0] == 'dog' && d[2][1] != undefined && d[2][1] == 3){return true |
|
|
{"_id":"q-en-freeCodeCamp-db0337b9fa476dc5db365b0a257b9ea2bbc26e84e452630b568d70bf69c85960","text":"testString: assert(confirmEnding(\"He has to give me a new name\", \"name\") === true); - text: <code>confirmEnding(\"Open sesame\", \"same\")</code> should return true. testString: assert(confirmEnding(\"Open sesame\", \"same\") === true); <del> - text: <code>confirmEnding(\"Open sesame\", \"pen\")</code> should return false. testString: assert(confirmEnding(\"Open sesame\", \"pen\") === false); </del> <ins> - text: <code>confirmEnding(\"Open sesame\", \"sage\")</code> should return false. testString: assert(confirmEnding(\"Open sesame\", \"sage\") === false); </ins> - text: <code>confirmEnding(\"Open sesame\", \"game\")</code> should return false. testString: assert(confirmEnding(\"Open sesame\", \"game\") === false); - text: <code>confirmEnding(\"If you want to save our world, you must hurry. We dont know how much longer we can withstand the nothing\", \"mountain\")</code> should return false."} |
|
|
{"_id":"q-en-freeCodeCamp-db6071eb9b7e0bb9997f7aa1140beae5c0a3bab83d0747f61252c28c0c205c2b","text":"[certType]: true }; <del> if (challenge) { const { id, tests, challengeType } = challenge; if ( !user[certType] && !isCertified(tests, user.completedChallenges) ) { return Observable.just(notCertifiedMessage(certName)); } updateData = { ...updateData, completedChallenges: [ ...user.completedChallenges, { id, completedDate: new Date(), challengeType } ] }; </del> <ins> // certificate doesn't exist or // connection error if (!challenge) { reportError(`Error claiming ${certName}`); return Observable.just(failureMessage(certName)); } const { id, tests, challengeType } = challenge; if (!user[certType] && !isCertified(tests, user.completedChallenges)) { return Observable.just(notCertifiedMessage(certName)); </ins> } <ins> updateData = { ...updateData, completedChallenges: [ ...user.completedChallenges, { id, completedDate: new Date(), challengeType } ] }; </ins> if (!user.name) { return Observable.just(noNameMessage);"} |
|
|
{"_id":"q-en-freeCodeCamp-dcd93f573fe9b6449e6dead840938b11a7be5ab4fee6d9b25b12eccef7f9f2fa","text":"background-position: center; } <ins> .testimonial-image { border-radius: 5px; height: 200px; width: 200px; } .testimonial-copy { font-size: 20px; text-align: center; @media (min-width: 991px) and (max-width: 1199px) { height: 120px; } @media (min-width: 1200px) { height: 90px; } } </ins> //uncomment this to see the dimensions of all elements outlined in red //* { // border-color: red;"} |
|
|
{"_id":"q-en-freeCodeCamp-dd12d4c29fbe0b439158ccd7a9e62b6e2227ad34edb60cc08d69243748d0cc4f","text":"is2018DataVisCert, isApisMicroservicesCert, isFrontEndLibsCert, <del> is2020QaCert, is2020InfosecCert, </del> <ins> isInfosecQaCert, </ins> isJsAlgoDataStructCert, isRespWebDesignCert } = this.props;"} |
|
|
{"_id":"q-en-freeCodeCamp-dd394a0db5b07c0a1533b5078d68e688612e04076e1cf67135356a8a2ef30bc2","text":"\"Hagamos que nuestro botón \"Get message\" cambie el texto del elemento con clase <code>message</code>.\", \"Antes de poder hacer esto, tenemos que implementar un <code>evento de pulsación</code> dentro de nuestra función <code>$(document).ready()</code>, añadiendo este código:\", \"<blockquote>$(\"#getMessage\").on(\"click\", function(){</br></br>}) |
|
|
{"_id":"q-en-freeCodeCamp-dff63834ac2fabaeec024325a96ddf35db9d3be4f4acc67073686914cbd7d655","text":"<h2 class=\"author-name\">${author}</h2> <img class=\"user-img\" src=\"${image}\" alt=\"${author} avatar\"> <div class=\"purple-divider\"></div> <del> <p class=\"bio\">${bio.length > 50 ? bio.slice(0, 49) + '...' : bio}</p> </del> <ins> <p class=\"bio\">${bio.length > 50 ? bio.slice(0, 50) + '...' : bio}</p> </ins> <a class=\"author-link\" href=\"${url}\" target=\"_blank\">${author} author page</a> </div> `;"} |
|
|
{"_id":"q-en-freeCodeCamp-e0933c51e335e9afa83c82093eea9444a78b254d335986ed8096d4f421ba658b","text":"Fulfill the below user stories and get all of the tests to pass. Use whichever libraries or APIs you need. Give it your own personal style. <del> You can use HTML, JavaScript, CSS, and the D3 svg-based visualization library. The tests require axes to be generated using the D3 axis property, which automatically generates ticks along the axis. These ticks are required for passing the D3 tests because their positions are used to determine alignment of graphed elements. You will find information about generating axes at <https://github.com/d3/d3/blob/master/API.md#axes-d3-axis>. Required (non-virtual) DOM elements are queried on the moment of each test. If you use a frontend framework (like Vue for example), the test results may be inaccurate for dynamic content. We hope to accommodate them eventually, but these frameworks are not currently supported for D3 projects. </del> <ins> You can use HTML, JavaScript, CSS, and the D3 svg-based visualization library. The tests require axes to be generated using the D3 axis property, which automatically generates ticks along the axis. These ticks are required for passing the D3 tests because their positions are used to determine alignment of graphed elements. You will find information about generating axes at <https://github.com/d3/d3/blob/master/API.md#axes-d3-axis>. Required DOM elements are queried on the moment of each test. If you use a frontend framework (like Vue for example), the test results may be inaccurate for dynamic content. We hope to accommodate them eventually, but these frameworks are not currently supported for D3 projects. </ins> **User Story #1:** My chart should have a title with a corresponding `id=\"title\"`."} |
|
|
{"_id":"q-en-freeCodeCamp-e2bf12c8051c537107fd1d4c2607610b4209d2ad78872c1fcf294c5a39fdc8f6","text":"<ins> import request from 'supertest'; import { build } from '../app'; import { endpoints } from './deprecated-endpoints'; describe('Deprecated endpoints', () => { let fastify: undefined | Awaited<ReturnType<typeof build>>; beforeAll(async () => { fastify = await build(); await fastify.ready(); }, 20000); afterAll(async () => { await fastify?.close(); }); endpoints.forEach(([endpoint, method]) => { test(`${method} ${endpoint} returns 410 status code with \"info\" message`, async () => { const response = await request(fastify?.server)[ method.toLowerCase() as 'get' | 'post' ](endpoint); expect(response.status).toBe(410); expect(response.body).toStrictEqual({ message: { type: 'info', message: 'Please reload the app, this feature is no longer available.' } }); }); }); }); </ins>"} |
|
|
{"_id":"q-en-freeCodeCamp-e425bbdac185dd58ecf5fec4beae2ed8b5f276c9b15bbd62ae4c67cacb57f88b","text":"Pass in only the first element of the `locations` array by adding `[0]` at the end of the variable. For example: `myFunction(arg[0]);`. <del> This is called <dfn>bracket notation</dfn>. Values in an array are accessed by index. Indices are numerical values and start at 0 - this is called zero-based indexing. `arg[0]` would be the first element in the `arg` array. </del> <ins> This is called <dfn>bracket notation</dfn>. Values in an array are accessed by index. Indices are numerical values and start at `0` - this is called zero-based indexing. `arg[0]` would be the first element in the `arg` array. </ins> # --hints--"} |
|
|
{"_id":"q-en-freeCodeCamp-e4ed96661be3312397ffa1f201f117efccb84db7cd3cec1b5164ac2c861ac3d7","text":"```js // doubles input value and returns it const doubler = (item) => item * 2; <ins> doubler(4); // returns 8 </ins> ``` <del> If an arrow function has a single argument, the parentheses enclosing the argument may be omitted. </del> <ins> If an arrow function has a single parameter, the parentheses enclosing the parameter may be omitted. </ins> ```js <del> // the same function, without the argument parentheses </del> <ins> // the same function, without the parameter parentheses </ins> const doubler = item => item * 2; ```"} |
|
|
{"_id":"q-en-freeCodeCamp-e774f67d80e823ddcc5ae0c890f8041c50647f034c716f7ac16dcb19f862f014","text":"\"challengeType\": 3, \"nameEs\": \"Crea una calculadora JavaScript\", \"descriptionEs\": [ <del> \"<span class='text-info'>Objetivo:</span> Crea una aplicación con <a href='http://codepen.io' target='_blank'>CodePen.io</a> que reproduzca efectivamente mediante ingeniería inversa este app: <a href='http://codepen.io/FreeCodeCamp/full/zrRzMR' target='_blank'>http://codepen.io/FreeCodeCamp/full/zrRzMR</a>.\", </del> <ins> \"<span class='text-info'>Objetivo:</span> Crea una aplicación con <a href='http://codepen.io' target='_blank'>CodePen.io</a> cuya funcionalidad sea similar a esta: <a href='http://codepen.io/FreeCodeCamp/full/zrRzMR' target='_blank'>http://codepen.io/FreeCodeCamp/full/zrRzMR</a>.\", </ins> \"<span class='text-info'>Regla #1:</span> No veas el código del proyecto de ejemplo en CodePen. Encuentra la forma de hacerlo por tu cuenta.\", <del> \"<span class='text-info'>Regla #2:</span> Puedes usar cualquier librería o APIs que necesites.\", \"<span class='text-info'>Regla #3:</span> Usa ingeniería inversa para reproducir la funcionalidad del proyecto de ejemplo, pero también siéntete en la libertad de personalizarlo.\", \"Las siguientes son las <a href='http://en.wikipedia.org/wiki/User_story' target='_blank'>historias de usuario</a> que debes satisfacer, incluyendo las historias opcionales:\", \"<span class='text-info'>Historia de usuario:</span> Como usuario, puedo sumar, restar, multiplicar y dividir dos números.\", </del> <ins> \"<span class='text-info'>Regla #2:</span> Satisface las siguientes <a href='http://en.wikipedia.org/wiki/User_story' target='_blank'>historias de usuario</a>. Usa cualquier librería o API que necesites. Dale tu estilo personal.\", \"<span class='text-info'>Historia de usuario:</span> Puedo sumar, restar, multiplicar y dividir dos números.\", </ins> \"<span class='text-info'>Historia de usuario opcional:</span> Puedo limpiar la pantalla con un botón de borrar.\", \"<span class='text-info'>Historia de usuario opcional:</span> Puedo concatenar continuamente varias operaciones hasta que pulse el botón de igual, y la calculadora me mostrará la respuesta correcta.\", <del> \"Recuerda utilizar <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>Read-Search-Ask</a> si te sientes atascado.\", \"Cuando hayas terminado, pulsa el botón de \"I've completed this challenge\" e incluye un link a tu CodePen. Si programaste en pareja, debes incluir también el nombre de usuario de Free Code Camp de tu compañero.\", \"Si quieres retroalimentación inmediata de parte de tus compañeros campistas, pulsa este botón y pega el link de tu proyecto en CodePen. <br><br><a class='btn btn-primary btn-block' href='https://twitter.com/intent/tweet?text=Check%20out%20the%20project%20I%20just%20built%20with%20%40FreeCodeCamp:%20PASTE_YOUR_CODEPEN_URL_HERE%20%0A%20%23LearnToCode%20%23JavaScript' target='_blank'>Pulsa aquí y agrega tu link en el texto del tweet</a>\" </del> <ins> \"Recuerda utilizar <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>Leer-Buscar-Preguntar</a> si te sientes atascado.\", \"Cuando hayas terminado, pulsa el botón de \"I've completed this challenge\" e incluye un enlace a tu CodePen. \", \"Puedes obtener retroalimentación sobre tu proyecto por parte de otros campistas, compartiéndolo en nuestra <a href='//gitter.im/freecodecamp/codereview' target='_blank'>Sala de chat para revisión de código</a>. También puedes compartirlo en Twitter y en el campamento de tu ciudad (en Facebook).\" </ins> ], \"isRequired\": true },"} |
|
|
{"_id":"q-en-freeCodeCamp-e7849fac5e60d8f01bbca263bb4c3582389a523ba890d5bd9c3af100e5c5dfff","text":"const allowedSocialsAndDomains = { githubProfile: 'github.com', linkedin: 'linkedin.com', <del> twitter: 'twitter.com', </del> <ins> twitter: ['twitter.com', 'x.com'], </ins> website: '' } |
|
|
{"_id":"q-en-freeCodeCamp-e9ee1ec774663eabd51cc58a148fe7b113504a4523732e039ea1ddda6fdf72d2","text":"\"challengeType\": 3, \"nameEs\": \"Construye un juego de Simon\", \"descriptionEs\": [ <del> \"<span class='text-info'>Objetivo:</span> Crea una aplicación con <a href='http://codepen.io' target='_blank'>CodePen.io</a> que reproduzca efectivamente mediante ingeniería inversa este app: <a href='http://codepen.io/Em-Ant/full/QbRyqq/' target='_blank'>http://codepen.io/FreeCodeCamp/full/obYBjE</a>.\", </del> <ins> \"<span class='text-info'>Objetivo:</span> Construye una aplicación en <a href='http://codepen.io' target='_blank'>CodePen.io</a> cuya funcionalidad sea similar a la de esta: <a href='http://codepen.io/Em-Ant/full/QbRyqq/' target='_blank'>http://codepen.io/Em-Ant/full/QbRyqq/</a>.\", </ins> \"<span class='text-info'>Regla #1:</span> No veas el código del proyecto de ejemplo en CodePen. Encuentra la forma de hacerlo por tu cuenta.\", <del> \"<span class='text-info'>Regla #2:</span> Puedes usar cualquier librería o APIs que necesites.\", \"<span class='text-info'>Regla #3:</span> Usa ingeniería inversa para reproducir la funcionalidad del proyecto de ejemplo, pero también siéntete en la libertad de personalizarlo.\", \"Las siguientes son las <a href='http://en.wikipedia.org/wiki/User_story' target='_blank'>historias de usuario</a> que debes satisfacer, incluyendo las historias opcionales:\", \"<span class='text-info'>Historia de usuario:</span> Como usuario, se me presenta una serie de colores aleatoria.\", \"<span class='text-info'>Historia de usuario:</span> Como usuario, cada vez que presiono una secuencia de colores correctamente, veo la misma serie de colores con un paso adicional.\", \"<span class='text-info'>Historia de usuario:</span> Como usuario, escucho un sonido que corresponde a cada botón cuando una sequencia se me presenta, así como cuando yo presiono un botón.\", \"<span class='text-info'>Historia de usuario:</span> Como usuario, si presiono el botón equivocado, se me notifica sobre mi error, y la serie correcta de colores se muestra de nuevo para recordarme cuál es la secuencia correcta, tras lo cual puedo probar de nuevo.\", \"<span class='text-info'>Historia de usuario:</span> Como usuario, puedo ver cuántos pasos hay en la serie de botones actual.\", \"<span class='text-info'>Historia de usuario opcional:</span> Como usuario, si deseo reiniciar, puedo pulsar un botón para hacerlo, y el juego comenzará desde una secuencia con un solo paso.\", \"<span class='text-info'>Historia de usuario opcional:</span> Como usuario, puedo jugar en modo estricto donde si presiono el botón equivocado, se me notifica de mi error, y el juego vuelve a comenzar con una nueva serie aleatoria de colores.\", \"<span class='text-info'>Historia de usuario opcional:</span> Como usuario, la velocidad del juego se incrementa en el quinto, noveno y decimotercer paso.\", \"<span class='text-info'>Historia de usuario opcional:</span> Como usuario, puedo ganar el juego si completo 20 pasos correctos. Se me notifica sobre mi victoria, tras lo cual el juego se reinicia.\", </del> <ins> \"<span class='text-info'>Regla #2:</span> Satisface las siguientes <a href='http://en.wikipedia.org/wiki/User_story' target='_blank'>historias de usuario</a>. Usa cualquier librería o APIs que necesites. Dale tu estilo personal.\", \"<span class='text-info'>Historia de usuario:</span> Se me presenta una serie aleatoria de pulsaciones a botones.\", \"<span class='text-info'>Historia de usuario:</span> Cada vez que presiono una secuencia de pulsaciones correctamente, veo que vuelve a ejecutarse la misma serie de pulsaciones con un paso adicional.\", \"<span class='text-info'>Historia de usuario:</span> Escucho un sonido que corresponde a cada botón cuando se ejecuta una secuencia de pulsaciones, así como cuando yo presiono un botón.\", \"<span class='text-info'>Historia de usuario:</span> Si presiono el botón equivocado, se me notifica sobre mi error, y se ejecuta de nuevo la serie correcta de pulsaciones para recordarme cuál es la secuencia correcta, tras lo cual puedo intentar de nuevo.\", \"<span class='text-info'>Historia de usuario:</span> Puedo ver cuántos pasos hay en la serie de pulsaciones actual.\", \"<span class='text-info'>Historia de usuario:</span> Si deseo reiniciar, puedo pulsar un botón para hacerlo, y el juego comenzará desde una secuencia con un solo paso.\", \"<span class='text-info'>Historia de usuario:</span> Puedo jugar en modo estricto donde si presiono el botón equivocado, se me notifica de mi error, y el juego vuelve a comenzar con una nueva serie aleatoria de colores.\", \"<span class='text-info'>Historia de usuario:</span> Puedo ganar el juego si completo 20 pasos correctos. Se me notifica sobre mi victoria, tras lo cual el juego se reinicia.\", </ins> \"<span class='text-info'>Pista:</span> Aquí hay algunos mp3s que puedes utilizar para tus botones: <code>https://s3.amazonaws.com/freecodecamp/simonSound1.mp3</code>, <code>https://s3.amazonaws.com/freecodecamp/simonSound2.mp3</code>, <code>https://s3.amazonaws.com/freecodecamp/simonSound3.mp3</code>, <code>https://s3.amazonaws.com/freecodecamp/simonSound4.mp3</code>.\", <del> \"Recuerda utilizar <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>Read-Search-Ask</a> si te sientes atascado.\", \"Cuando hayas terminado, pulsa el botón de \"I've completed this challenge\" e incluye un link a tu CodePen. Si programaste en pareja, debes incluir también el nombre de usuario de Free Code Camp de tu compañero.\", \"Si quieres retroalimentación inmediata de parte de tus compañeros campistas, pulsa este botón y pega el link de tu proyecto en CodePen. <br><br><a class='btn btn-primary btn-block' href='https://twitter.com/intent/tweet?text=Check%20out%20the%20project%20I%20just%20built%20with%20%40FreeCodeCamp:%20PASTE_YOUR_CODEPEN_URL_HERE%20%0A%20%23LearnToCode%20%23JavaScript' target='_blank'>Pulsa aquí y agrega tu link en el texto del tweet</a>\" </del> <ins> \"Recuerda utilizar <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>Leer-Buscar-Preguntar</a> si te sientes atascado.\", \"Cuando hayas terminado, pulsa el botón de \"I've completed this challenge\" e incluye un enlace a tu CodePen.\", \"Puedes obtener retroalimentación sobre tu proyecto por parte de otros campistas, compartiéndolo en nuestra <a href='//gitter.im/freecodecamp/codereview' target='_blank'>Sala de chat para revisión de código</a>. También puedes compartirlo en Twitter y en el campamento de tu ciudad (en Facebook).\" </ins> ], \"isRequired\": true } ] <del> } </del> No newline at end of file <ins> } </ins>"} |
|
|
{"_id":"q-en-freeCodeCamp-eaf6f013d325a432216546c5ab57b6d2ea9466d3e1d0812b5503eefaf7f8b406","text":"Congratulations on behalf of the freeCodeCamp.org team! `; <ins> const failureMessage = name => dedent` Something went wrong with the verification of ${name}, please try again. If you continue to receive this error, you can send a message to support@freeCodeCamp.org to get help. `; </ins> function ifNoSuperBlock404(req, res, next) { const { superBlock } = req.body; if (superBlock && superBlocks.includes(superBlock)) {"} |
|
|
{"_id":"q-en-freeCodeCamp-eb7e8f448a663d080ab5d960fca43a21f82685652eccebaebf790db4c91aaf5c","text":"</Modal.Body> <Modal.Footer> {isSignedIn ? null : ( <del> <Login block={true} bsSize='lg' bsStyle='primary' className='btn-cta' > Sign in to save your progress </Login> </del> <ins> <Login block={true}>Sign in to save your progress</Login> </ins> )} <Button block={true}"} |
|
|
{"_id":"q-en-freeCodeCamp-efb87cd6ffe1896a40e01e6a408815b89c772416a58bfbc9f29c5f9600be4fe1","text":"padding-bottom: 10px; } <del> .help-modal-heading { line-height: 1.5; font-weight: 400; word-spacing: -0.4ch; } </del> .help-form-legend { color: var(--secondary-color); border: 0;"} |
|
|
{"_id":"q-en-freeCodeCamp-f25bba458002957f1e53b1aaac8f272224c46dacf49f5d31b66739f756dacd83","text":"], [ \"5a9d7295424fe3d0e10cad14\", <del> \"Cascading CSS variables\" </del> <ins> \"Inherit CSS Variables\" </ins> ], [ \"5a9d72a1424fe3d0e10cad15\","} |
|
|
{"_id":"q-en-freeCodeCamp-f2c237e5455fcc8b7c437b4594c3e7fc8060bd0478b00bddcf1191e6b233e6cf","text":"}; ``` <ins> If `value` submitted to `/api/check` is already placed in `puzzle` on that `coordinate`, the returned value will be an object containing a `valid` property with `true` if `value` is not conflicting. ```js async (getUserInput) => { const input = '..9..5.1.85.4....2432......1...69.83.9.....6.62.71...9......1945....4.37.4.3..6..'; const coordinate = 'C3'; const value = '2'; const data = await fetch(getUserInput('url') + '/api/check', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ puzzle: input, coordinate, value }) }); const parsed = await data.json(); assert.property(parsed, 'valid'); assert.isTrue(parsed.valid); }; ``` </ins> If the puzzle submitted to `/api/check` contains values which are not numbers or periods, the returned value will be `{ error: 'Invalid characters in puzzle' }` ```js"} |
|
|
{"_id":"q-en-freeCodeCamp-f31e0fbd10b45515dc4b44751fdbfc563574ed1cba00f4cda558383a1839e74a","text":"function* validateUsernameSaga({ payload }) { try { <del> yield delay(500); </del> const { exists } = yield call(getUsernameExists, payload); yield put(validateUsernameComplete(exists)); } catch (e) {"} |
|
|
{"_id":"q-en-freeCodeCamp-f4a9b0a9b82b8d846365455cf20afd2721aab3b4cd46393efceaf6223a3416d2","text":"# --description-- <del> Changing the `bottom-margin` to `5px` looks great. However, now the space between the `Cinnamon Roll` menu item and the second `hr` element does not match the space between the top `hr` element and the `Coffee` heading. </del> <ins> Changing the `margin-bottom` to `5px` looks great. However, now the space between the `Cinnamon Roll` menu item and the second `hr` element does not match the space between the top `hr` element and the `Coffee` heading. </ins> Add some more space by creating a class named `bottom-line` using `25px` for the `margin-top` property."} |
|
|
{"_id":"q-en-freeCodeCamp-fb17af2109855a8e077549da5d88759dbd4004840b058ad9c747c12ab8242e96","text":"], \"tests\": [ \"assert($(\"body\").css(\"background-color\") === \"rgb(0, 0, 0)\", 'Your <code>body</code> element should have a black background.')\", <del> \"assert(editor.match(/rgbs*(s*0s*,s*0s*,s*0s*)/ig), 'Use <code>rgb</code> to give your <code>body</code> element the <code>background-color</code> of black. For example <code>body { color: |
|
|
{"_id":"q-en-freeCodeCamp-fbcddc5f23192cc8b80a1f067dce0c43a422709a74bc9620bbc083e656c2e82b","text":"## Instructions <section id='instructions'> <del> Change the <code>while</code> loop in the code to a <code>do...while</code> loop so that the loop will push the number 10 to <code>myArray</code>, and <code>i</code> will be equal to <code>11</code> when your code finishes running. </del> <ins> Change the <code>while</code> loop in the code to a <code>do...while</code> loop so that the loop will only push the number 10 to <code>myArray</code>, and <code>i</code> will be equal to <code>11</code> when your code finishes running. </ins> </section> ## Tests"} |
|
|
{"_id":"q-en-freeCodeCamp-fc24e1aa7071ccd838d0e5307ab2af1916ff271f3f7a2e09df0b850b81ad48d4","text":"import security from './plugins/security'; import sessionAuth from './plugins/session-auth'; import { settingRoutes } from './routes/settings'; <ins> import { deprecatedEndpoints } from './routes/deprecated-endpoints'; </ins> import { auth0Routes, devLoginCallback } from './routes/auth'; import { testMiddleware } from './middleware'; import prismaPlugin from './db/prisma';"} |
|
|
{"_id":"q-en-freeCodeCamp-fd2c2ff67c9b934bf3584605a024479b83e992c1cdce3519ebd2c9fdfc727108","text":"\"We can use if statements in JavaScript to only execute code if a certain condition is met.\", \"if statements require some sort of boolean condition to evaluate.\", \"Example:\", <del> \"<code> if (1 == 2) {</code>\", </del> <ins> \"<code> if (1 === 2) {</code>\", </ins> \"<code>&thinsp |
|
|
{"_id":"q-en-freeCodeCamp-fd762a9bee460c162d736ebd95dedec5ba687b92bd6c2f4aa95dce2a93eb7cbd","text":"## Description <section id='description'> <del> You may recall from <a href=\"waypoint-comparison-with-the-equality-operator\" target=\"_blank\">Comparison with the Equality Operator</a> that all comparison operators return a boolean <code>true</code> or <code>false</code> value. </del> <ins> You may recall from <a href=\"learn/javascript-algorithms-and-data-structures/basic-javascript/comparison-with-the-equality-operator\" target=\"_blank\">Comparison with the Equality Operator</a> that all comparison operators return a boolean <code>true</code> or <code>false</code> value. </ins> Sometimes people use an if/else statement to do a comparison, like this: <blockquote>function isEqual(a,b) {<br> if (a === b) {<br> return true;<br> } else {<br> return false;<br> }<br>}</blockquote> But there's a better way to do this. Since <code>===</code> returns <code>true</code> or <code>false</code>, we can return the result of the comparison:"} |
|
|
|