From 067a810ff78803d1b87edaaabf9dc420c5fa2894 Mon Sep 17 00:00:00 2001 From: camperbot Date: Wed, 16 Nov 2022 09:41:57 -0800 Subject: [PATCH] chore(i18n,learn): processed translations (#48511) --- ...the-presence-of-an-element-with-indexof.md | 2 +- .../check-if-an-object-has-a-property.md | 12 ++++---- .../modify-an-array-stored-in-an-object.md | 2 +- .../basic-javascript/golf-code.md | 2 +- .../logical-order-in-if-else-statements.md | 8 +++--- .../replace-loops-using-recursion.md | 10 +++---- ...the-wrong-order-when-calling-a-function.md | 8 +++--- ...osing-parenthesis-after-a-function-call.md | 12 ++++---- ...e-loops-with-a-valid-terminal-condition.md | 4 +-- ...plete-a-promise-with-resolve-and-reject.md | 2 +- .../es6/prevent-object-mutation.md | 2 +- ...t-default-parameters-for-your-functions.md | 6 ++-- .../es6/use-export-to-share-a-code-block.md | 8 +++--- ...-setters-to-control-access-to-an-object.md | 4 +-- ...de-effects-using-functional-programming.md | 4 +-- .../implement-map-on-a-prototype.md | 25 ++++++----------- ...lement-the-filter-method-on-a-prototype.md | 24 ++++++---------- .../learn-about-functional-programming.md | 14 +++++----- ...actor-global-variables-out-of-functions.md | 12 ++++---- ...-an-array-using-slice-instead-of-splice.md | 4 +-- ...er-or-reduce-to-solve-a-complex-problem.md | 10 +++---- ...ny-elements-in-an-array-meet-a-criteria.md | 2 +- .../caesars-cipher.md | 2 +- .../define-a-constructor-function.md | 6 ++-- ...or-property-when-changing-the-prototype.md | 2 +- .../create-a-linear-scale-with-d3.md | 8 +++--- .../personal-library.md | 2 +- .../619d30350883802921bfcccc.md | 2 +- .../5dc1798ff86c76b9248c6eb3.md | 1 + .../5dc17d3bf86c76b9248c6eb4.md | 1 + .../5dc17dc8f86c76b9248c6eb5.md | 1 + .../5dc2385ff86c76b9248c6eb7.md | 4 ++- .../5dc23f9bf86c76b9248c6eba.md | 1 + .../5dc24614f86c76b9248c6ebd.md | 1 + .../5dfa3589eacea3f48c6300ae.md | 1 + .../5dfa371beacea3f48c6300af.md | 1 + .../5dfa37b9eacea3f48c6300b0.md | 1 + .../5dfb5ecbeacea3f48c6300b1.md | 1 + .../5dfb6250eacea3f48c6300b2.md | 1 + .../5dfb655eeacea3f48c6300b3.md | 2 ++ .../5dfb6a35eacea3f48c6300b4.md | 1 + .../5ef9b03c81a63668521804d1.md | 1 + .../5ef9b03c81a63668521804d2.md | 1 + .../5ef9b03c81a63668521804d3.md | 1 + .../5ef9b03c81a63668521804d4.md | 2 ++ .../5ef9b03c81a63668521804d5.md | 1 + .../5ef9b03c81a63668521804d6.md | 1 + .../5ef9b03c81a63668521804d8.md | 1 + .../5ef9b03c81a63668521804da.md | 1 + .../5ef9b03c81a63668521804e1.md | 2 ++ .../5ef9b03c81a63668521804e2.md | 1 + .../5ef9b03c81a63668521804e7.md | 3 +- .../5ef9b03c81a63668521804e8.md | 1 + .../5ef9b03c81a63668521804ea.md | 7 +++-- .../5ef9b03c81a63668521804eb.md | 1 + .../5ef9b03c81a63668521804ee.md | 3 +- .../5efada803cbd2bbdab94e332.md | 1 + .../5efae0543cbd2bbdab94e333.md | 2 +- .../5efae16e3cbd2bbdab94e334.md | 5 ++-- .../5f05a1d8e233dff4a68508d8.md | 1 + .../5f07be6ef7412fbad0c5626b.md | 2 ++ .../5f07c98cdb9413cbd4b16750.md | 1 + .../5f07fb1579dc934717801375.md | 1 + .../5f0d48e7b435f13ab6550051.md | 1 + .../5f0d4ab1b435f13ab6550052.md | 3 +- .../5f0d4d04b435f13ab6550053.md | 1 + .../62bb4009e3458a128ff57d5d.md | 3 +- .../implement-map-on-a-prototype.md | 21 +++++--------- ...lement-the-filter-method-on-a-prototype.md | 24 ++++++---------- .../personal-library.md | 2 +- .../619d30350883802921bfcccc.md | 2 +- .../5dc1798ff86c76b9248c6eb3.md | 1 + .../5dc17d3bf86c76b9248c6eb4.md | 1 + .../5dc17dc8f86c76b9248c6eb5.md | 1 + .../5dc2385ff86c76b9248c6eb7.md | 4 ++- .../5dc23f9bf86c76b9248c6eba.md | 1 + .../5dc24614f86c76b9248c6ebd.md | 1 + .../5dfa3589eacea3f48c6300ae.md | 1 + .../5dfa371beacea3f48c6300af.md | 1 + .../5dfa37b9eacea3f48c6300b0.md | 1 + .../5dfb5ecbeacea3f48c6300b1.md | 1 + .../5dfb6250eacea3f48c6300b2.md | 1 + .../5dfb655eeacea3f48c6300b3.md | 2 ++ .../5dfb6a35eacea3f48c6300b4.md | 1 + .../5ef9b03c81a63668521804d1.md | 1 + .../5ef9b03c81a63668521804d2.md | 1 + .../5ef9b03c81a63668521804d3.md | 1 + .../5ef9b03c81a63668521804d4.md | 2 ++ .../5ef9b03c81a63668521804d5.md | 1 + .../5ef9b03c81a63668521804d6.md | 1 + .../5ef9b03c81a63668521804d8.md | 1 + .../5ef9b03c81a63668521804da.md | 1 + .../5ef9b03c81a63668521804e1.md | 2 ++ .../5ef9b03c81a63668521804e2.md | 1 + .../5ef9b03c81a63668521804e7.md | 3 +- .../5ef9b03c81a63668521804e8.md | 1 + .../5ef9b03c81a63668521804ea.md | 7 +++-- .../5ef9b03c81a63668521804eb.md | 1 + .../5ef9b03c81a63668521804ee.md | 3 +- .../5efada803cbd2bbdab94e332.md | 1 + .../5efae0543cbd2bbdab94e333.md | 2 +- .../5efae16e3cbd2bbdab94e334.md | 5 ++-- .../5f05a1d8e233dff4a68508d8.md | 1 + .../5f07be6ef7412fbad0c5626b.md | 2 ++ .../5f07c98cdb9413cbd4b16750.md | 1 + .../5f07fb1579dc934717801375.md | 1 + .../5f0d48e7b435f13ab6550051.md | 1 + .../5f0d4ab1b435f13ab6550052.md | 3 +- .../5f0d4d04b435f13ab6550053.md | 1 + .../62bb4009e3458a128ff57d5d.md | 3 +- .../implement-map-on-a-prototype.md | 21 +++++--------- ...lement-the-filter-method-on-a-prototype.md | 24 ++++++---------- .../personal-library.md | 2 +- .../619d30350883802921bfcccc.md | 2 +- .../5dc1798ff86c76b9248c6eb3.md | 1 + .../5dc17d3bf86c76b9248c6eb4.md | 1 + .../5dc17dc8f86c76b9248c6eb5.md | 1 + .../5dc2385ff86c76b9248c6eb7.md | 4 ++- .../5dc23f9bf86c76b9248c6eba.md | 1 + .../5dc24614f86c76b9248c6ebd.md | 1 + .../5dfa3589eacea3f48c6300ae.md | 1 + .../5dfa371beacea3f48c6300af.md | 1 + .../5dfa37b9eacea3f48c6300b0.md | 1 + .../5dfb5ecbeacea3f48c6300b1.md | 1 + .../5dfb6250eacea3f48c6300b2.md | 1 + .../5dfb655eeacea3f48c6300b3.md | 2 ++ .../5dfb6a35eacea3f48c6300b4.md | 1 + .../5ef9b03c81a63668521804d1.md | 1 + .../5ef9b03c81a63668521804d2.md | 1 + .../5ef9b03c81a63668521804d3.md | 1 + .../5ef9b03c81a63668521804d4.md | 2 ++ .../5ef9b03c81a63668521804d5.md | 1 + .../5ef9b03c81a63668521804d6.md | 1 + .../5ef9b03c81a63668521804d8.md | 1 + .../5ef9b03c81a63668521804da.md | 1 + .../5ef9b03c81a63668521804e1.md | 2 ++ .../5ef9b03c81a63668521804e2.md | 1 + .../5ef9b03c81a63668521804e7.md | 3 +- .../5ef9b03c81a63668521804e8.md | 1 + .../5ef9b03c81a63668521804ea.md | 7 +++-- .../5ef9b03c81a63668521804eb.md | 1 + .../5ef9b03c81a63668521804ee.md | 3 +- .../5efada803cbd2bbdab94e332.md | 1 + .../5efae0543cbd2bbdab94e333.md | 2 +- .../5efae16e3cbd2bbdab94e334.md | 5 ++-- .../5f05a1d8e233dff4a68508d8.md | 1 + .../5f07be6ef7412fbad0c5626b.md | 2 ++ .../5f07c98cdb9413cbd4b16750.md | 1 + .../5f07fb1579dc934717801375.md | 1 + .../5f0d48e7b435f13ab6550051.md | 1 + .../5f0d4ab1b435f13ab6550052.md | 3 +- .../5f0d4d04b435f13ab6550053.md | 1 + .../62bb4009e3458a128ff57d5d.md | 3 +- .../implement-map-on-a-prototype.md | 21 +++++--------- ...lement-the-filter-method-on-a-prototype.md | 24 ++++++---------- .../personal-library.md | 2 +- .../619d30350883802921bfcccc.md | 2 +- .../5dc1798ff86c76b9248c6eb3.md | 1 + .../5dc17d3bf86c76b9248c6eb4.md | 1 + .../5dc17dc8f86c76b9248c6eb5.md | 1 + .../5dc2385ff86c76b9248c6eb7.md | 4 ++- .../5dc23f9bf86c76b9248c6eba.md | 1 + .../5dc24614f86c76b9248c6ebd.md | 1 + .../5dfa3589eacea3f48c6300ae.md | 1 + .../5dfa371beacea3f48c6300af.md | 1 + .../5dfa37b9eacea3f48c6300b0.md | 1 + .../5dfb5ecbeacea3f48c6300b1.md | 1 + .../5dfb6250eacea3f48c6300b2.md | 1 + .../5dfb655eeacea3f48c6300b3.md | 2 ++ .../5dfb6a35eacea3f48c6300b4.md | 1 + .../5ef9b03c81a63668521804d1.md | 1 + .../5ef9b03c81a63668521804d2.md | 1 + .../5ef9b03c81a63668521804d3.md | 1 + .../5ef9b03c81a63668521804d4.md | 2 ++ .../5ef9b03c81a63668521804d5.md | 1 + .../5ef9b03c81a63668521804d6.md | 1 + .../5ef9b03c81a63668521804d8.md | 1 + .../5ef9b03c81a63668521804da.md | 1 + .../5ef9b03c81a63668521804e1.md | 2 ++ .../5ef9b03c81a63668521804e2.md | 1 + .../5ef9b03c81a63668521804e7.md | 3 +- .../5ef9b03c81a63668521804e8.md | 1 + .../5ef9b03c81a63668521804ea.md | 7 +++-- .../5ef9b03c81a63668521804eb.md | 1 + .../5ef9b03c81a63668521804ee.md | 3 +- .../5efada803cbd2bbdab94e332.md | 1 + .../5efae0543cbd2bbdab94e333.md | 2 +- .../5efae16e3cbd2bbdab94e334.md | 5 ++-- .../5f05a1d8e233dff4a68508d8.md | 1 + .../5f07be6ef7412fbad0c5626b.md | 2 ++ .../5f07c98cdb9413cbd4b16750.md | 1 + .../5f07fb1579dc934717801375.md | 1 + .../5f0d48e7b435f13ab6550051.md | 1 + .../5f0d4ab1b435f13ab6550052.md | 3 +- .../5f0d4d04b435f13ab6550053.md | 1 + .../62bb4009e3458a128ff57d5d.md | 3 +- .../implement-map-on-a-prototype.md | 21 +++++--------- ...lement-the-filter-method-on-a-prototype.md | 24 ++++++---------- .../add-a-license-to-your-package.json.md | 2 +- .../mongodb-and-mongoose/create-a-model.md | 8 +++--- .../install-and-set-up-mongoose.md | 4 +-- .../authentication-with-socket.io.md | 10 +++---- .../personal-library.md | 2 +- .../6140827cff96e906bd38fc2b.md | 2 +- .../6145ed1f22caab087630aaad.md | 2 +- .../6145ee65e2e1530938cb594d.md | 14 +++++----- .../6145f3a5cd9be60b9459cdd6.md | 6 ++-- .../619d30350883802921bfcccc.md | 2 +- .../5dc1798ff86c76b9248c6eb3.md | 1 + .../5dc17d3bf86c76b9248c6eb4.md | 1 + .../5dc17dc8f86c76b9248c6eb5.md | 1 + .../5dc2385ff86c76b9248c6eb7.md | 4 ++- .../5dc23f9bf86c76b9248c6eba.md | 1 + .../5dc24614f86c76b9248c6ebd.md | 1 + .../5dfa3589eacea3f48c6300ae.md | 1 + .../5dfa371beacea3f48c6300af.md | 1 + .../5dfa37b9eacea3f48c6300b0.md | 1 + .../5dfb5ecbeacea3f48c6300b1.md | 1 + .../5dfb6250eacea3f48c6300b2.md | 1 + .../5dfb655eeacea3f48c6300b3.md | 2 ++ .../5dfb6a35eacea3f48c6300b4.md | 1 + .../5ef9b03c81a63668521804d1.md | 1 + .../5ef9b03c81a63668521804d2.md | 1 + .../5ef9b03c81a63668521804d3.md | 1 + .../5ef9b03c81a63668521804d4.md | 2 ++ .../5ef9b03c81a63668521804d5.md | 1 + .../5ef9b03c81a63668521804d6.md | 1 + .../5ef9b03c81a63668521804d8.md | 1 + .../5ef9b03c81a63668521804da.md | 1 + .../5ef9b03c81a63668521804e1.md | 2 ++ .../5ef9b03c81a63668521804e2.md | 1 + .../5ef9b03c81a63668521804e7.md | 3 +- .../5ef9b03c81a63668521804e8.md | 1 + .../5ef9b03c81a63668521804ea.md | 7 +++-- .../5ef9b03c81a63668521804eb.md | 1 + .../5ef9b03c81a63668521804ee.md | 3 +- .../5efada803cbd2bbdab94e332.md | 1 + .../5efae0543cbd2bbdab94e333.md | 2 +- .../5efae16e3cbd2bbdab94e334.md | 5 ++-- .../5f05a1d8e233dff4a68508d8.md | 1 + .../5f07be6ef7412fbad0c5626b.md | 2 ++ .../5f07c98cdb9413cbd4b16750.md | 1 + .../5f07fb1579dc934717801375.md | 1 + .../5f0d48e7b435f13ab6550051.md | 1 + .../5f0d4ab1b435f13ab6550052.md | 3 +- .../5f0d4d04b435f13ab6550053.md | 1 + .../62bb4009e3458a128ff57d5d.md | 3 +- .../using-objects-for-lookups.md | 4 +-- .../implement-map-on-a-prototype.md | 21 +++++--------- ...lement-the-filter-method-on-a-prototype.md | 24 ++++++---------- ...t-query-parameter-input-from-the-client.md | 4 +-- ...implementation-of-social-authentication.md | 12 ++++---- .../personal-library.md | 2 +- .../619d30350883802921bfcccc.md | 2 +- .../5dc1798ff86c76b9248c6eb3.md | 1 + .../5dc17d3bf86c76b9248c6eb4.md | 1 + .../5dc17dc8f86c76b9248c6eb5.md | 1 + .../5dc2385ff86c76b9248c6eb7.md | 4 ++- .../5dc23f9bf86c76b9248c6eba.md | 1 + .../5dc24614f86c76b9248c6ebd.md | 1 + .../5dfa3589eacea3f48c6300ae.md | 1 + .../5dfa371beacea3f48c6300af.md | 1 + .../5dfa37b9eacea3f48c6300b0.md | 1 + .../5dfb5ecbeacea3f48c6300b1.md | 1 + .../5dfb6250eacea3f48c6300b2.md | 1 + .../5dfb655eeacea3f48c6300b3.md | 2 ++ .../5dfb6a35eacea3f48c6300b4.md | 1 + .../5ef9b03c81a63668521804d1.md | 1 + .../5ef9b03c81a63668521804d2.md | 1 + .../5ef9b03c81a63668521804d3.md | 1 + .../5ef9b03c81a63668521804d4.md | 2 ++ .../5ef9b03c81a63668521804d5.md | 1 + .../5ef9b03c81a63668521804d6.md | 1 + .../5ef9b03c81a63668521804d8.md | 1 + .../5ef9b03c81a63668521804da.md | 1 + .../5ef9b03c81a63668521804e1.md | 2 ++ .../5ef9b03c81a63668521804e2.md | 1 + .../5ef9b03c81a63668521804e7.md | 3 +- .../5ef9b03c81a63668521804e8.md | 1 + .../5ef9b03c81a63668521804ea.md | 7 +++-- .../5ef9b03c81a63668521804eb.md | 1 + .../5ef9b03c81a63668521804ee.md | 3 +- .../5efada803cbd2bbdab94e332.md | 1 + .../5efae0543cbd2bbdab94e333.md | 2 +- .../5efae16e3cbd2bbdab94e334.md | 5 ++-- .../5f05a1d8e233dff4a68508d8.md | 1 + .../5f07be6ef7412fbad0c5626b.md | 2 ++ .../5f07c98cdb9413cbd4b16750.md | 1 + .../5f07fb1579dc934717801375.md | 1 + .../5f0d48e7b435f13ab6550051.md | 1 + .../5f0d4ab1b435f13ab6550052.md | 3 +- .../5f0d4d04b435f13ab6550053.md | 1 + .../62bb4009e3458a128ff57d5d.md | 3 +- .../implement-map-on-a-prototype.md | 21 +++++--------- ...lement-the-filter-method-on-a-prototype.md | 24 ++++++---------- .../personal-library.md | 2 +- .../build-a-survey-form.md | 4 +-- .../61537a8054753e2f1f2a1574.md | 2 +- .../61537c5f81f0cf325b4a854c.md | 2 +- .../61537c9eecea6a335db6da79.md | 14 +++++----- .../61537d86bdc3dd343688fceb.md | 24 ++++++++-------- .../615380dff67172357fcf0425.md | 4 +-- .../6153893900438b4643590367.md | 12 ++++---- .../6153897c27f6334716ee5abe.md | 20 ++++++------- .../615389bd81347947ea7ba896.md | 6 ++-- .../6153908a366afb4d57185c8d.md | 18 ++++++------ .../615392916d83fa4f02f7e2cf.md | 6 ++-- .../6153938dce8b294ff8f5a4e9.md | 8 +++--- .../6153947986535e5117e60615.md | 8 +++--- .../61539e07e7430b528fbffe21.md | 10 +++---- .../61539f32a206bd53ec116465.md | 6 ++-- .../6153a04847abee57a3a406ac.md | 10 +++---- .../6153a3485f0b20591d26d2a1.md | 6 ++-- .../6153a3952facd25a83fe8083.md | 2 +- .../615f171d05def3218035dc85.md | 14 +++++----- .../619665c9abd72906f3ad30f9.md | 4 +-- .../6196adc17f77a714d51485f2.md | 2 +- .../619d1c5fc9f8941a400955da.md | 2 +- .../619d237a107c10221ed743fa.md | 16 +++++------ .../619d26b12e651022d80cd017.md | 10 +++---- .../619d2712853306238f41828e.md | 12 ++++---- .../619d2b7a84e78b246f2d17a2.md | 10 +++---- .../619d2bd9c1d43c2526e96f1f.md | 6 ++-- .../619d2d4e80400325ff89664a.md | 4 +-- .../619d2ebc81ba81271460850d.md | 4 +-- .../619d2f0e9440bc27caee1cec.md | 6 ++-- .../619d2fd3ff4f772882e3d998.md | 4 +-- .../619d30350883802921bfcccc.md | 8 +++--- .../619d324f5915c929f36ae91d.md | 10 +++---- .../619d32c7fa21f32aaa91d499.md | 4 +-- .../619d333b738e3c2b5d58b095.md | 4 +-- .../619d337765b9f02c10e93722.md | 6 ++-- .../619d33c51140292cc5a21742.md | 10 +++---- .../619d3482f505452d861d0f62.md | 6 ++-- .../619d3561a951bf2e41a24f10.md | 6 ++-- .../619d36103839c82efa95dd34.md | 8 +++--- .../619d3711d04d623000013e9e.md | 6 ++-- .../5dc174fcf86c76b9248c6eb2.md | 8 +++--- .../5dc1798ff86c76b9248c6eb3.md | 1 + .../5dc17d3bf86c76b9248c6eb4.md | 1 + .../5dc17dc8f86c76b9248c6eb5.md | 1 + .../5dc2385ff86c76b9248c6eb7.md | 8 ++++-- .../5dc23f9bf86c76b9248c6eba.md | 1 + .../5dc24614f86c76b9248c6ebd.md | 1 + .../5dfa22d1b521be39a3de7be0.md | 2 +- .../5dfa3589eacea3f48c6300ae.md | 1 + .../5dfa371beacea3f48c6300af.md | 1 + .../5dfa37b9eacea3f48c6300b0.md | 1 + .../5dfb5ecbeacea3f48c6300b1.md | 1 + .../5dfb6250eacea3f48c6300b2.md | 1 + .../5dfb655eeacea3f48c6300b3.md | 2 ++ .../5dfb6a35eacea3f48c6300b4.md | 1 + .../5ef9b03c81a63668521804d1.md | 1 + .../5ef9b03c81a63668521804d2.md | 1 + .../5ef9b03c81a63668521804d3.md | 1 + .../5ef9b03c81a63668521804d4.md | 2 ++ .../5ef9b03c81a63668521804d5.md | 1 + .../5ef9b03c81a63668521804d6.md | 1 + .../5ef9b03c81a63668521804d8.md | 1 + .../5ef9b03c81a63668521804da.md | 1 + .../5ef9b03c81a63668521804e1.md | 2 ++ .../5ef9b03c81a63668521804e2.md | 1 + .../5ef9b03c81a63668521804e7.md | 3 +- .../5ef9b03c81a63668521804e8.md | 1 + .../5ef9b03c81a63668521804ea.md | 7 +++-- .../5ef9b03c81a63668521804eb.md | 1 + .../5ef9b03c81a63668521804ee.md | 3 +- .../5efada803cbd2bbdab94e332.md | 1 + .../5efae0543cbd2bbdab94e333.md | 2 +- .../5efae16e3cbd2bbdab94e334.md | 5 ++-- .../5f05a1d8e233dff4a68508d8.md | 1 + .../5f07be6ef7412fbad0c5626b.md | 8 ++++-- .../5f07c98cdb9413cbd4b16750.md | 1 + .../5f07fb1579dc934717801375.md | 1 + .../5f0d48e7b435f13ab6550051.md | 1 + .../5f0d4ab1b435f13ab6550052.md | 3 +- .../5f0d4d04b435f13ab6550053.md | 1 + .../62bb4009e3458a128ff57d5d.md | 3 +- .../61fd5a93fd62bb35968adeab.md | 4 +-- .../61fd6343fb42013d99bcd7f3.md | 6 ++-- .../61fd66c687e610436494c6f1.md | 2 +- .../61fd67a656743144844941cb.md | 14 +++++----- .../61fd6ab779390f49148773bb.md | 8 +++--- .../61fd6b7c83dbf54a08cf0498.md | 2 +- .../61fd6cc9475a784b7776233e.md | 12 ++++---- .../61fd70336ebb3e4f62ee81ba.md | 8 +++--- .../61fd719788899952e67692b9.md | 12 ++++---- .../61fd71d596e8f253b9408b39.md | 10 +++---- .../61fd75ea7f663457612dba02.md | 10 +++---- .../61fd7648a7ba2e5882436831.md | 2 +- .../61fd778081276b59d59abad6.md | 22 +++++++-------- .../61fd77f7ad2aeb5ae34d07d6.md | 22 +++++++-------- .../61fd78621573aa5e8b512f5e.md | 4 +-- .../61fd7a160ed17960e971f28b.md | 20 ++++++------- .../61fd7b3fcaa5406257abc5d1.md | 14 +++++----- .../61fd8e491324ce717da97ffe.md | 2 +- .../61fd8fd08af43372f02952d0.md | 14 +++++----- .../61fd9126aa72a474301fc49f.md | 8 +++--- .../61fd933ba685de776a94997e.md | 4 +-- .../61fd94056e0355785fbba4d3.md | 22 +++++++-------- .../61fd986ddbcbd47ba8fbc5ec.md | 22 +++++++-------- .../61fd990577d8227dd93fbeeb.md | 14 +++++----- .../61fd9a4ff2fc4481b9157bd7.md | 14 +++++----- .../61fd9ad665a4a282c8106be3.md | 20 ++++++------- .../61fd9b7285bde783ad5b8aac.md | 26 ++++++++--------- .../61fd9d9fbdfe078800317055.md | 6 ++-- .../61fda307bde0b091cf7d884a.md | 8 +++--- .../61fda339eadcfd92a6812bed.md | 10 +++---- .../61fdac1e31692f9a9ad97295.md | 10 +++---- .../61fdaea3999cb19d76ce717b.md | 6 ++-- .../61fdaf9ff894b6a084ecdc1b.md | 6 ++-- .../61fdafe6f07fd7a1c6785bc2.md | 8 +++--- .../61fdb04d9939f0a26ca51c2b.md | 10 +++---- .../620159cd5431aa34bc6a4c9c.md | 10 +++---- .../62015a5da1c95c358f079ebb.md | 6 ++-- .../62015cd2654a1139321a89d2.md | 6 ++-- .../62015d8942384c3aed48329e.md | 10 +++---- .../620167374bb8b4455cd11125.md | 12 ++++---- .../620174ed519dd7506c1a4b61.md | 6 ++-- .../620175b3710a0951cfa86edf.md | 4 +-- .../6201782cc420715562f36271.md | 12 ++++---- .../620179bc0a6a2358c72b90ad.md | 6 ++-- .../62017b6f47454059bf2d3bd1.md | 8 +++--- .../62017f47c87be96457c49f46.md | 26 ++++++++--------- .../62017fa5bbef406580ceb44f.md | 8 +++--- .../62018243f046a368fab8ffb6.md | 8 +++--- .../6201830cb0c74b69f1b41635.md | 8 +++--- .../620186f4b6b8356d2def576b.md | 10 +++---- .../62018ba1aa263770c953be66.md | 8 +++--- .../62018c3e94434a71af1d5eaa.md | 2 +- .../62018ec29b3ae674f40bef31.md | 6 ++-- .../62019093fe30e278e797d2f6.md | 8 +++--- .../620191707bc65579ddd3ce15.md | 2 +- .../620192a767533a7ad19d96d7.md | 10 +++---- .../6201995d9ab88e80f1989dce.md | 6 ++-- .../620199c7a7a32c81d4db3410.md | 6 ++-- .../6201a1a7af32c287bd6b8183.md | 6 ++-- .../6201a1cc668a34888f5b2f52.md | 6 ++-- .../6201a20d742f5c89736c8cfb.md | 10 +++---- .../6201a42e39bf3b95b6a33bf3.md | 14 +++++----- .../6201a4adcc6414968b391592.md | 4 +-- .../6201a5258af7b398b030bfaf.md | 10 +++---- .../6201a59be346d399c21d10b1.md | 8 +++--- .../implement-map-on-a-prototype.md | 21 +++++--------- ...lement-the-filter-method-on-a-prototype.md | 24 ++++++---------- ...t-query-parameter-input-from-the-client.md | 4 +-- .../personal-library.md | 2 +- .../619d30350883802921bfcccc.md | 2 +- .../5dc1798ff86c76b9248c6eb3.md | 1 + .../5dc17d3bf86c76b9248c6eb4.md | 1 + .../5dc17dc8f86c76b9248c6eb5.md | 1 + .../5dc2385ff86c76b9248c6eb7.md | 4 ++- .../5dc23f9bf86c76b9248c6eba.md | 1 + .../5dc24614f86c76b9248c6ebd.md | 1 + .../5dfa3589eacea3f48c6300ae.md | 1 + .../5dfa371beacea3f48c6300af.md | 1 + .../5dfa37b9eacea3f48c6300b0.md | 1 + .../5dfb5ecbeacea3f48c6300b1.md | 1 + .../5dfb6250eacea3f48c6300b2.md | 1 + .../5dfb655eeacea3f48c6300b3.md | 2 ++ .../5dfb6a35eacea3f48c6300b4.md | 1 + .../5ef9b03c81a63668521804d1.md | 1 + .../5ef9b03c81a63668521804d2.md | 1 + .../5ef9b03c81a63668521804d3.md | 1 + .../5ef9b03c81a63668521804d4.md | 2 ++ .../5ef9b03c81a63668521804d5.md | 1 + .../5ef9b03c81a63668521804d6.md | 1 + .../5ef9b03c81a63668521804d8.md | 1 + .../5ef9b03c81a63668521804da.md | 1 + .../5ef9b03c81a63668521804e1.md | 2 ++ .../5ef9b03c81a63668521804e2.md | 1 + .../5ef9b03c81a63668521804e7.md | 3 +- .../5ef9b03c81a63668521804e8.md | 1 + .../5ef9b03c81a63668521804ea.md | 7 +++-- .../5ef9b03c81a63668521804eb.md | 1 + .../5ef9b03c81a63668521804ee.md | 3 +- .../5efada803cbd2bbdab94e332.md | 1 + .../5efae0543cbd2bbdab94e333.md | 2 +- .../5efae16e3cbd2bbdab94e334.md | 5 ++-- .../5f05a1d8e233dff4a68508d8.md | 1 + .../5f07be6ef7412fbad0c5626b.md | 2 ++ .../5f07c98cdb9413cbd4b16750.md | 1 + .../5f07fb1579dc934717801375.md | 1 + .../5f0d48e7b435f13ab6550051.md | 1 + .../5f0d4ab1b435f13ab6550052.md | 3 +- .../5f0d4d04b435f13ab6550053.md | 1 + .../62bb4009e3458a128ff57d5d.md | 3 +- .../build-a-survey-form.md | 4 +-- .../implement-map-on-a-prototype.md | 21 +++++--------- ...lement-the-filter-method-on-a-prototype.md | 24 ++++++---------- .../connect-redux-to-the-messages-app.md | 2 +- .../learn-about-self-closing-jsx-tags.md | 2 +- .../personal-library.md | 2 +- .../build-a-survey-form.md | 2 +- .../6145e6eeaa66c605eb087fe9.md | 10 +++---- .../6351e7a8684bf5377c4ee7f7.md | 20 ++++++------- .../616d4a84b756d9c4b8255093.md | 2 +- .../616d50b93ba424d6282c99cf.md | 2 +- .../61968e9243a4090cc805531c.md | 4 +-- .../619d30350883802921bfcccc.md | 2 +- .../5d822fd413a79914d39e98dc.md | 2 +- .../5d822fd413a79914d39e98de.md | 4 +-- .../5d822fd413a79914d39e990f.md | 10 +++---- .../5d822fd413a79914d39e992f.md | 2 +- .../5dc174fcf86c76b9248c6eb2.md | 2 +- .../5dc1798ff86c76b9248c6eb3.md | 1 + .../5dc17d3bf86c76b9248c6eb4.md | 1 + .../5dc17dc8f86c76b9248c6eb5.md | 1 + .../5dc2385ff86c76b9248c6eb7.md | 4 ++- .../5dc23f9bf86c76b9248c6eba.md | 1 + .../5dc24614f86c76b9248c6ebd.md | 1 + .../5dfa3589eacea3f48c6300ae.md | 1 + .../5dfa371beacea3f48c6300af.md | 1 + .../5dfa37b9eacea3f48c6300b0.md | 1 + .../5dfb5ecbeacea3f48c6300b1.md | 1 + .../5dfb6250eacea3f48c6300b2.md | 1 + .../5dfb655eeacea3f48c6300b3.md | 2 ++ .../5dfb6a35eacea3f48c6300b4.md | 1 + .../5ef9b03c81a63668521804d1.md | 1 + .../5ef9b03c81a63668521804d2.md | 1 + .../5ef9b03c81a63668521804d3.md | 1 + .../5ef9b03c81a63668521804d4.md | 2 ++ .../5ef9b03c81a63668521804d5.md | 1 + .../5ef9b03c81a63668521804d6.md | 1 + .../5ef9b03c81a63668521804d8.md | 1 + .../5ef9b03c81a63668521804da.md | 1 + .../5ef9b03c81a63668521804e1.md | 2 ++ .../5ef9b03c81a63668521804e2.md | 1 + .../5ef9b03c81a63668521804e7.md | 3 +- .../5ef9b03c81a63668521804e8.md | 1 + .../5ef9b03c81a63668521804ea.md | 7 +++-- .../5ef9b03c81a63668521804eb.md | 1 + .../5ef9b03c81a63668521804ee.md | 3 +- .../5efada803cbd2bbdab94e332.md | 1 + .../5efae0543cbd2bbdab94e333.md | 2 +- .../5efae16e3cbd2bbdab94e334.md | 5 ++-- .../5f05a1d8e233dff4a68508d8.md | 1 + .../5f07be6ef7412fbad0c5626b.md | 2 ++ .../5f07c98cdb9413cbd4b16750.md | 1 + .../5f07fb1579dc934717801375.md | 1 + .../5f0d48e7b435f13ab6550051.md | 1 + .../5f0d4ab1b435f13ab6550052.md | 3 +- .../5f0d4d04b435f13ab6550053.md | 1 + .../62bb4009e3458a128ff57d5d.md | 9 +++--- .../60f5cb8875ab6a0610f05071.md | 2 +- .../60f5d2776c854e069560fbe6.md | 2 +- .../60f5dc35c07ac1078f140916.md | 2 +- .../60f803d5241e6a0433a523a1.md | 2 +- .../60f805f813eaf2049bc2ceea.md | 2 +- .../60f80e0081e0f2052ae5b505.md | 2 +- .../60f81167d0d4910809f88945.md | 2 +- .../60f81616cff80508badf9ad5.md | 2 +- .../60f83e7bfc09900959f41e20.md | 2 +- .../60f84ec41116b209c280ba91.md | 2 +- .../60f852f645b5310a8264f555.md | 2 +- .../60f85a62fb30c80bcea0cedb.md | 2 +- .../60f8604682407e0d017bbf7f.md | 2 +- .../60f8618d191b940d62038513.md | 2 +- .../60fab4a123ce4b04526b082b.md | 2 +- .../60fab8367d35de04e5cb7929.md | 2 +- .../60fab9f17fa294054b74228c.md | 2 +- .../60fabf0dd4959805dbae09e6.md | 2 +- .../60fac4095512d3066053d73c.md | 2 +- .../60fac56271087806def55b33.md | 2 +- .../60fac8d7fdfaee0796934f20.md | 2 +- .../60faca286cb48b07f6482970.md | 2 +- .../60facde2d0dc61085b41063f.md | 2 +- .../60facf914c7b9b08d7510c2c.md | 2 +- .../60fad0a812d9890938524f50.md | 2 +- .../60fad1cafcde010995e15306.md | 2 +- .../60fad6dfcc0d930a59becf12.md | 2 +- .../60fad8e6148f310bba7890b1.md | 2 +- .../60fad99e09f9d30c1657e790.md | 2 +- .../60fadb18058e950c73925279.md | 2 +- .../60fadce90f85c50d0bb0dd4f.md | 2 +- .../60fadd972e6ffe0d6858fa2d.md | 2 +- .../60fadfa2b540b70dcfa8b771.md | 2 +- .../60fc219d333e37046f474a6e.md | 2 +- .../60fc22d1e64d1b04cdd4e602.md | 2 +- .../60fc236dc04532052926fdac.md | 2 +- .../60ffe1bc30415f042faea936.md | 2 +- .../60ffe3936796ac04959285a9.md | 2 +- .../60ffe4f4ec18cd04dc470c56.md | 2 +- .../60ffe69ee377c6055e192a46.md | 2 +- .../60ffe7d8aae62c05bcc9e7eb.md | 2 +- .../60ffe8a5ceb0e90618db06d9.md | 2 +- .../60ffe947a868ec068f7850f6.md | 2 +- .../60ffe9cb47809106eda2f2c9.md | 2 +- .../60ffec2825da1007509ddd06.md | 2 +- .../60ffecefac971607ae73c60f.md | 2 +- .../60ffefd6479a3d084fb77cbc.md | 2 +- .../62b30924c5e4ef0daba23b5e.md | 2 +- .../62ff8b9dab5ac88e4d3d43a3.md | 2 +- .../62ff8e998d3e7eae14d6ae3b.md | 2 +- .../62ff919a7b5612c0670923a5.md | 2 +- .../63541ef4f96cd82e8e6c788a.md | 12 ++++---- .../62a8ade9b2f5b30ef0b606c2.md | 2 +- .../62a8b0b5053f16111b0b6b5f.md | 2 +- .../62a8b6536156c51500739b41.md | 4 +-- .../62a8b711ab7a12161c7d9b67.md | 4 +-- .../62a8c151b23bf21bc7c4fcba.md | 2 +- .../62a8c31ec0ec78216a1c36a0.md | 2 +- .../62a8c41ecaf1bd24536129b8.md | 10 +++---- .../62a8c56247609626fa4a8d6e.md | 10 +++---- .../62a8c5db7888af27af23f0dd.md | 2 +- .../62a8c65b75664c28a8e59c16.md | 6 ++-- .../62a8c6815f5f1a29735efe1b.md | 4 +-- .../62a8c7322e42962ad53ad204.md | 10 +++---- .../62a8c7a59e72c02bb1c717d2.md | 4 +-- .../62a8c89e4272512d44fc1c66.md | 6 ++-- .../62a8c8cee8e5cf2e001789b4.md | 8 +++--- .../62a8ca22d29fe62f3952bdf5.md | 2 +- .../62a8cb19bd7f8a304e5427a1.md | 2 +- .../62a8cbd1e3595431d5a2b3f1.md | 8 +++--- .../62a8cce1b0c32c33017cf2e9.md | 6 ++-- .../62a8ce1dfc990134162b3bd9.md | 2 +- .../62a8cf22272d6d35af80d4ac.md | 10 +++---- .../62a8d0337d7c67377a4a76c6.md | 8 +++--- .../62a8d0fdf2dad83a92883a80.md | 4 +-- .../62a8d143f2a58e3b6d6e9c33.md | 4 +-- .../62a8d1c72e8bb13c2074d93c.md | 4 +-- .../62a8d2146a3e853d0a6e28ca.md | 4 +-- .../62a8d24c97461b3ddb9397c8.md | 2 +- .../62a8d2e2a073be3edb46116f.md | 2 +- .../62a8d31ebbc10e3fe1b28e03.md | 4 +-- .../62a8d35660db4040ba292193.md | 6 ++-- .../62a8d382cd075f4169223e14.md | 4 +-- .../62a8d539dc11cb42b5dd7ec8.md | 8 +++--- .../62a8d6c7001ebc45350e3d16.md | 2 +- .../62a8d7b8ab568b4649998954.md | 4 +-- .../62a8d81f539f004776dd9b1e.md | 28 +++++++++---------- .../62a8dd468debb449b4454086.md | 2 +- .../62a8dd9cdb16324b04cfd958.md | 4 +-- .../62a8dfcf7fb1044d2f478fd1.md | 8 +++--- .../62a8e0d1d0110b4ec421489f.md | 2 +- .../62a8e1dc897df55108bcb5e8.md | 6 ++-- .../62a8e21398ad61520edb724f.md | 6 ++-- .../62a8e24c673b075317cc0b09.md | 4 +-- .../62a8e271f8e3d1541f9624ad.md | 4 +-- .../62a8e35675c18c56354c08cf.md | 2 +- .../62a8e41e2f190c58404dd46e.md | 6 ++-- .../62a8e45cc600c3591cee671a.md | 6 ++-- .../62a8e49f4df7af5ae2d7a616.md | 10 +++---- .../62a8e4dc6a60f85bf256a0cb.md | 6 ++-- .../62a8ed36d7a7915dfa444ba2.md | 2 +- .../62a8edd05e27cc668051686f.md | 4 +-- .../62a8ee154c8946678775c4a4.md | 6 ++-- .../62a8ee71f018e968a056d369.md | 2 +- .../62a8eec45f77bc69e8775294.md | 4 +-- .../62a8eefe2e68b66ac563816b.md | 2 +- .../62a8ef6a52292f6bdca4f6f8.md | 6 ++-- .../62a8ef8f0c76a46cd221a68c.md | 2 +- .../62a8efb0e3ce826db8daf80f.md | 4 +-- .../62a8eff21c0b0f6ebe5b8e38.md | 10 +++---- .../62a8f06fb318666fef69f91e.md | 6 ++-- .../62a8f14fe6d1fc72454648c7.md | 2 +- .../62a8f1d5f5ddbf74c07f733b.md | 2 +- .../62a8f20463b324759953edad.md | 6 ++-- .../62a8f256b813a476cae51f49.md | 8 +++--- .../62a8f2bc37675e77d5835235.md | 14 +++++----- .../62a8f35bde1750791f58773f.md | 4 +-- .../62a94114ce0b8918b487390f.md | 8 +++--- .../62aa1d6736ba262cfa74344b.md | 4 +-- .../62aa1d9f535e102e4663e7a6.md | 2 +- .../62aa1e8ccd579330e097ce44.md | 8 +++--- .../62aa1eec891ed731db227a36.md | 12 ++++---- .../62aa1fed3d4e873366ff3131.md | 4 +-- .../62aa204c1e1d33348ff09944.md | 4 +-- .../62aa20e9cf1be9358f5aceae.md | 6 ++-- .../62aa2136fc49b836dfedb959.md | 4 +-- .../62aa25fcb5837d43b4d9873d.md | 8 +++--- .../62aa264d23cdaa45a20efada.md | 10 +++---- .../62aa26cca3cd3d46c431e73b.md | 8 +++--- .../62aa27227399d647e1c37a3c.md | 4 +-- .../62aa287434dc284cea01157c.md | 2 +- .../62aa28bbd6323e4dfb3ac43e.md | 2 +- .../62aa28fb651bf14efa2dbb16.md | 4 +-- .../62aa2999ec27ec516655eba6.md | 8 +++--- .../62aa29d8f8f88152c91350ca.md | 10 +++---- .../62aa2aec2f09d454253aad6c.md | 4 +-- .../62ba17beef16c563069a65d8.md | 2 +- 681 files changed, 1565 insertions(+), 1295 deletions(-) diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/check-for-the-presence-of-an-element-with-indexof.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/check-for-the-presence-of-an-element-with-indexof.md index 3a029cc5f4a..f13243529db 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/check-for-the-presence-of-an-element-with-indexof.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/check-for-the-presence-of-an-element-with-indexof.md @@ -28,7 +28,7 @@ fruits.indexOf('pears'); # --hints-- -يجب أن تقوم الوظيفة `quickCheck` بإرجاع منطقي (boolean) (`true` أو `false`)، ليس سلسلة (string) نصية (`"true"` أو `"false"`) +يجب أن تقوم الوظيفة `quickCheck` بإرجاع منطق (boolean) (`true` أو `false`)، ليس مقطع نصي (string) (`"true"` أو `"false"`) ```js assert.isBoolean(quickCheck(['squash', 'onions', 'shallots'], 'mushrooms')); diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/check-if-an-object-has-a-property.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/check-if-an-object-has-a-property.md index ea89a8e8d67..c7ffea4bf9d 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/check-if-an-object-has-a-property.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/check-if-an-object-has-a-property.md @@ -19,7 +19,7 @@ users.hasOwnProperty('Alan'); # --instructions-- -أنهي كتابة الوظيفة بحيث ترجع `true` إذا كان object الذي مرر إليه يحتوي على جميع الأسماء الأربعة، `Alan`, و `Jeff`, و `Sarah`, و `Ryan`, وإنتاج `false` خلاف ذلك. +أنهي كتابة الوظيفة بحيث ترجع `true` إذا كان الكائن (object) الذي مرر إليها يحتوي على جميع الأسماء الأربعة، `Alan`, و `Jeff`, و `Sarah`, و `Ryan`, وترجع `false` خلاف ذلك. # --hints-- @@ -43,13 +43,13 @@ assert( ); ``` -الوظيفة `isEveryoneHere` يجب أن تنتج `true` إذا `Alan`، و`Jeff`، و`Sarah`، و `Ryan` هي خصائص في object الذي تم تمريرها إلى الوظيفة. +يجب أن يرجع الوظيفة `isEveryoneHere` حالة `true` إذا `Alan`، و`Jeff`، و`Sarah`، و `Ryan` هي خصائص في الكائن (object) الذي تم تمريره إلى الوظيفة. ```js assert(isEveryoneHere(users) === true); ``` -الوظيفة `isEveryoneHere` يجب أن تنتج `false` إذا `Alan` ليست خاصية في object الذي تم تمريره. +يجب أن يرجع الوظيفة `isEveryoneHere` حالة `false` إذا `Alan` ليست خاصية في كائن (object) الذي تم تمريره. ```js assert( @@ -60,7 +60,7 @@ assert( ); ``` -الوظيفة `isEveryoneHere` يجب أن ترجع `false` إذا `Jeff` ليست خاصية في object الذي تم تمريره. +يجب أن يرجع الوظيفة `isEveryoneHere` حالة `false` إذا `Jeff` ليست خاصية في كائن (object) الذي تم تمريره. ```js assert( @@ -71,7 +71,7 @@ assert( ); ``` -الوظيفة `isEveryoneHere` يجب أن ترجع `false` إذا `Sarah` ليست خاصية في object الذي تم تمريره. +يجب أن يرجع الوظيفة `isEveryoneHere` حالة `false` إذا `Sarah` ليست خاصية في كائن (object) الذي تم تمريره. ```js assert( @@ -82,7 +82,7 @@ assert( ); ``` -الوظيفة `isEveryoneHere` يجب أن ترجع `false` إذا `Ryan` ليست خاصية في object الذي تم تمريره. +يجب أن يرجع الوظيفة `isEveryoneHere` حالة `false` إذا `Ryan` ليست خاصية في كائن (object) الذي تم تمريره. ```js assert( diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/modify-an-array-stored-in-an-object.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/modify-an-array-stored-in-an-object.md index 9822d9b83ce..96ff4763bef 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/modify-an-array-stored-in-an-object.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/modify-an-array-stored-in-an-object.md @@ -22,7 +22,7 @@ dashedName: modify-an-array-stored-in-an-object assert('name' in user && 'age' in user && 'data' in user); ``` -يجب أن تقبل وظيفة `addFriend` كائن `user` مقطع نصي `friend` كوسيطات و أضف friend إلى قائمة `friends` في كائن `user`. +يجب أن تقبل وظيفة (function) مسمى `addFriend` كائن `user` ومقطع نصي `friend` كوسائط و أضف friend إلى قائمة `friends` في كائن `user`. ```js assert( diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/golf-code.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/golf-code.md index 649e46e30aa..53255c07972 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/golf-code.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/golf-code.md @@ -11,7 +11,7 @@ dashedName: golf-code في لُعْبَة الجولف، كل ثقب لديه `par`، التي تصف متوسط عدد الضربات `strokes` المتوقعة من اللاعب من أجل أدخال الكرة في الثَّقب لإكمال اللعب. اعتمادًا على مدى بعد `strokes` من `par` سواء البعد كان فوق أو تحت، يوجد اسم مستعار مختلف لكل منهم. -سيتم تمرير `par` و `strokes` كحجة الوظائف الخاص بك. أرجع المقطع الصحيح وفقًا لهذا الجدول الذي يسرد strokes حسب الأولوية؛ من الأعلى إلى الأسفل: +سيتم تمرير `par` و `strokes` كوسائط (arguments) لوظائفك (function). أرجع المقطع الصحيح وفقًا لهذا الجدول الذي يسرد strokes حسب الأولوية؛ من الأعلى إلى الأسفل:
StrokesReturn
1"Hole-in-one!"
<= par - 2"Eagle"
par - 1"Birdie"
par"Par"
par + 1"Bogey"
par + 2"Double Bogey"
>= par + 3"Go Home!"
diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/logical-order-in-if-else-statements.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/logical-order-in-if-else-statements.md index 060fbe9594b..e95e04569e7 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/logical-order-in-if-else-statements.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/logical-order-in-if-else-statements.md @@ -11,9 +11,9 @@ dashedName: logical-order-in-if-else-statements الترتيب مهم في عبارات `if` و `else if`. -يتم تنفيذ الوظيفة من الأعلى إلى الأسفل، لذا سترغب في توخي الحذر بشأن العبارة التي تأتي أولاً. +يتم تنفيذ الوظيفة (function) من الأعلى إلى الأسفل، لذا سترغب في توخي الحذر بشأن العبارة التي تأتي أولاً. -ولنأخذ هاتين الوظيفتين كمثال. +ولنأخذ هاتين الوظيفتين (functions) كمثال. إليك الأول: @@ -43,7 +43,7 @@ function bar(x) { } ``` -بينما تبدو هاتان الوظيفتان متطابقتان تقريباً، إذا مررنا رَقْم إلى كليهما نحصل على نواتج مختلفة. +بينما تبدو هاتان الوظيفتان (functions) متطابقتان تقريباً، إذا مررنا رَقْم إلى كليهما نحصل على نواتج مختلفة. ```js foo(0) @@ -54,7 +54,7 @@ bar(0) # --instructions-- -غيّر ترتيب المنطق في الوظيفة بحيث تنتج العبارات الصحيحة في جميع الحالات. +غيّر ترتيب المنطق في الوظيفة (function) بحيث تنتج العبارات الصحيحة في جميع الحالات. # --hints-- diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/replace-loops-using-recursion.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/replace-loops-using-recursion.md index 4fe860ce2ad..46f21360043 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/replace-loops-using-recursion.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/replace-loops-using-recursion.md @@ -10,7 +10,7 @@ dashedName: replace-loops-using-recursion # --description-- -التكرار معناه أنه يمكن استخدام الوظيفة بداخل نفسه. للمساعدة في فهم هذا، ابدأ بالتفكير في المهمة التالية: أضرب أول عناصر `n` من قائمة ليصبح لديك ناتج ضرب هذه العناصر. باستخدام حلقة `for`، يمكنك القيام بما يلي: +يكون معنى التكرار (Recursion) أنه يمكن أن تستخدم الوظيفة نفسها. للمساعدة في فهم هذا، ابدأ بالتفكير في المهمة التالية: أضرب أول عناصر `n` من قائمة ليصبح لديك ناتج ضرب هذه العناصر. باستخدام حلقة `for`، يمكنك القيام بما يلي: ```js function multiply(arr, n) { @@ -34,13 +34,13 @@ dashedName: replace-loops-using-recursion } ``` -النسخة المتكررة (recursive) من `multiply` توضح تفاصيل ذلك. في حالة أصلية، حيث `n <= 0`، فإنه ينتج 1. بالنسبة للقيم الذين أكبر من `n`، فإنه يستدعي نفسه، ولكن مع `n - 1`. يتم تقييم هذا الاستدعاء بنفس الطريقة، فيقوم باستدعاء `multiply` مرة أخرى حتى `n <= 0`. في هذه المرحلة، جميع الـ functions يمكن إرجاعها (can return) و `multiply` الأصلية ترجع (returns) الإجابة. +النسخة المتكررة (recursive) من `multiply` توضح تفاصيل ذلك. في حالة أصلية، حيث `n <= 0`، فإنه ينتج 1. بالنسبة للقيم الذين أكبر من `n`، فإنه يستدعي نفسه، ولكن مع `n - 1`. يتم تفعيل الوظيفة (function) بنفس الطريقة، فعيل `multiply` مرة أخرى حتى `n <= 0`. في هذه المرحلة، يمكن ينتجوا جميع الوظائف (functions) و الوظيفة `multiply` الأصلية الإجابة. -**ملاحظة:** الـ Recursive functions يجب أن يكون لها base case عندما يتم ارجاعها دون استدعاء الـ function مره أخرى (في هذا المثال ، عندما يكون `n <= 0`) ، وإلا فلن يتمكنوا أبدا من إنهاء التنفيذ. +**ملاحظة:** يجب أن يكون الوظائف المتكررة (Recursive functions) لها حالة مبدئيا (base case) تنتج دون تفعيل الـوظيفة (function) مره أخرى (في هذا المثال، عندما يكون `n <= 0`)، وإلا فلن يتمكنوا أبدا من التوقف عن التفعيل. # --instructions-- -اكتب الـ recursive function الآتية `sum(arr, n)`، والتي سترجع مجموع العناصر الأولى `n` من الـ array الآتية `arr`. +اكتب وظيفة متكررة (recursive function) الآتية `sum(arr, n)`، التي ستنتج مجموع العناصر الأولى `n` من القائمة (array) الآتية `arr`. # --hints-- @@ -62,7 +62,7 @@ assert.equal(sum([2, 3, 4], 1), 2); assert.equal(sum([2, 3, 4, 5], 3), 9); ``` -لا ينبغي أن يعتمد الكود الخاص بك على أي نوع من الـ loops سواء (`for` أو `while` أو functions مثل `forEach` او `map` او `filter` أو `reduce`). +لا ينبغي أن يعتمد كودك على أي نوع من الحلقات (loops) سواء (`for`, أو `while`, أو وظائف (functions) مثل `forEach`, أو `map`, أو `filter`, أو `reduce`). ```js assert( diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/debugging/catch-arguments-passed-in-the-wrong-order-when-calling-a-function.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/debugging/catch-arguments-passed-in-the-wrong-order-when-calling-a-function.md index fb40b0f7931..f20e1d24e3d 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/debugging/catch-arguments-passed-in-the-wrong-order-when-calling-a-function.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/debugging/catch-arguments-passed-in-the-wrong-order-when-calling-a-function.md @@ -1,6 +1,6 @@ --- id: 587d7b85367417b2b2512b3a -title: Catch Arguments Passed in the Wrong Order When Calling a Function +title: إدراك الوسائط (Arguments) المارة بترتيب خاطئ عند تفعيل وظيفة challengeType: 1 forumTopicId: 301184 dashedName: catch-arguments-passed-in-the-wrong-order-when-calling-a-function @@ -8,11 +8,11 @@ dashedName: catch-arguments-passed-in-the-wrong-order-when-calling-a-function # --description-- -متابعة للمناقشة حول استدعاد الـ functions، الخطأ التالي الذي يجب مراقبته هو عندما يتم تقديم الـ function's arguments بالترتيب غير الصحيح. إذا كانت الـ arguments مختلفة الأنواع، مثل الـ function التي تتوقع array وعدد صحيح، فمن المرجح أن يؤدي ذلك إلى خطأ في وقت التشغيل. إذا كانت الـ arguments هي من نفس النوع (كلها أعداد، على سبيل المثال)، فلن يكون لمنطق الكود أي معنى. تأكد من تقديم جميع الـ arguments المطلوبة، بالترتيب الصحيح لتجنب هذه المشاكل. +متابعة للمناقشة حول تفعيل الوظائف (functions)، الخطأ التالي الذي يجب مراقبته هو عندما يتم تقديم الوسائط الوظيفة (function's arguments) بالترتيب غير الصحيح. إذا كانت الوسائط (arguments) مختلفة الأنواع، مثل الوظيفة (function) التي تتوقع قائمة (array) وعدد صحيح، فمن المرجح أن يؤدي ذلك إلى خطأ في وقت التشغيل. إذا كانت الـ arguments هي من نفس النوع (كلها أعداد، على سبيل المثال)، فلن يكون لمنطق الكود أي معنى. تأكد من تقديم جميع الـ arguments المطلوبة، بالترتيب الصحيح لتجنب هذه المشاكل. # --instructions-- -ترفع الدالة `raiseToPower` الأساس (base) إلى الأس (exponent). لسوء الحظ، لم يتم استدعائها بشكل صحيح - أصلح الكود حتي تكون قيمة `power` هي 8 المتوقعة. +ترفع الوظيفة (function) مسمى `raiseToPower` الأساس (base) إلى الأس (exponent). لسوء الحظ، لم يتم استدعائها بشكل صحيح - أصلح الكود حتي تكون قيمة `power` هي 8 المتوقعة. # --hints-- @@ -22,7 +22,7 @@ dashedName: catch-arguments-passed-in-the-wrong-order-when-calling-a-function assert(power == 8); ``` -يجب أن يستخدم الكود الخاص بك الترتيب الصحيح للـ arguments لاستدعاء الدالة `raiseToPower`. +يجب أن يستخدم كودك الترتيب الصحيح لوسائط (arguments) لتفعيل الوظيفة (funciton) مسمى `raiseToPower`. ```js assert(code.match(/raiseToPower\(\s*?base\s*?,\s*?exp\s*?\);/g)); diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/debugging/catch-missing-open-and-closing-parenthesis-after-a-function-call.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/debugging/catch-missing-open-and-closing-parenthesis-after-a-function-call.md index f2d3ea8dff5..949c1485a9d 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/debugging/catch-missing-open-and-closing-parenthesis-after-a-function-call.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/debugging/catch-missing-open-and-closing-parenthesis-after-a-function-call.md @@ -1,6 +1,6 @@ --- id: 587d7b85367417b2b2512b39 -title: إدراك أقواس الفتح والإغلاق المفقودة بعد استدعاء دالة (Catch Missing Open and Closing Parenthesis After a Function Call) +title: إدراك أقواس (Parenthesis) الفتح والإغلاق المفقودة بعد تفعيل وظيفة (Function) challengeType: 1 forumTopicId: 301185 dashedName: catch-missing-open-and-closing-parenthesis-after-a-function-call @@ -8,7 +8,7 @@ dashedName: catch-missing-open-and-closing-parenthesis-after-a-function-call # --description-- -عندما لا تأخذ الfunction أو الmethod أي arguments، قد تنسى إدراج أقواس الفتح والإغلاق (فارغة) عند استدعائها. غالباً ما يتم حفظ نتيجة استدعاء function في variable لاستخدام آخر في الكود الخاص بك. يمكن اكتشاف هذا الخطأ عن طريق تسجيل قيم الvariables (أو أنواعها) إلى الconsole وملاحظة أن القيمة المعينة للvariable هي function reference (مرجع دالة)، بدلاً من القيمة المتوقعة وهي ناتج تنفيذ ال الfunction. +عندما لا تأخذ الوظيفة (function) أو الطريقة (method) أي وسائط (arguments)، قد تنسى إدراج أقواس الفتح والإغلاق (فارغة) عند تفعيلها. غالباً ما يتم حفظ نتيجة تفعيل وظيفة (function) في متغير (variable) لاستخدام آخر في كودك. يمكن اكتشاف هذا الخطأ عن طريق تسجيل قيم المتغيرات (variables) (أو أنواعها) إلى الوحدة (console) وملاحظة أن القيمة المعينة للمتغير (variable) هي مرجع وظيفة (function reference)، بدلاً من القيمة المتوقعة وهي ناتج تنفيذ الوظيفة (function). فتختلف المتغيرات الواردة في المثال التالي: @@ -20,21 +20,21 @@ let varOne = myFunction; let varTwo = myFunction(); ``` -هنا `varOne` هو الـ function المسماه `myFunction`، و `varTwo` هو الـ string المكون من `You rock!`. +تكون `varOne` الوظيفة (function) هنا مسمى `myFunction`، ويكون `varTwo` المقطع نصي (string) من `You rock!`. # --instructions-- -أصلح الـ code بحيث يتم تعيين الـ variable المسمى `result` القيمة العائدة من استعداء الـ function المسماه `getNine`. +أصلح الكود بحيث يتم تعيين المتغير (variable) المسمى `result` بقيمة الناتحة من تفعيل الوظيفة (function) مسمى `getNine`. # --hints-- -يجب أن يصلح الـ code الـ variable المسمى `result` حيث يتم تعيينه الرقم الذي يعيده الـ function المسمى `getNine`. +يجب أن يصلح الوظيفة المتغير (variable) مسمى `result` حيث يتم تعيينه الرَّقْم الذي ينتج الوظيفة (function) مسمى `getNine`. ```js assert(result == 9); ``` -يجب أن يستدعي الكود الخاص بك دالة `getNine`. +يجب أن يفعيل كودك وظيفة `getNine`. ```js assert(code.match(/getNine\(\)/g).length == 2); diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/debugging/prevent-infinite-loops-with-a-valid-terminal-condition.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/debugging/prevent-infinite-loops-with-a-valid-terminal-condition.md index 030951c4415..153f9c94a4a 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/debugging/prevent-infinite-loops-with-a-valid-terminal-condition.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/debugging/prevent-infinite-loops-with-a-valid-terminal-condition.md @@ -10,7 +10,7 @@ dashedName: prevent-infinite-loops-with-a-valid-terminal-condition الموضوع الأخير هو الحلقة اللانهائية المخيفة (dreaded infinite loop). الحلقات التكرارية (loops) هي أدوات رائعة عندما يحتاج برنامجك لتشغيل كتلة الكود عدد معين من المرات أو حتى يتم الوفاء بشرط ما، ولكنها تحتاج إلى حالة نهائية تنهي التكرار. الحلقات اللانهائية (Infinite loops) من المحتمل أن تجمد أو تعطل المتصفح، وقد تسبب في فشل تنفيذ البرامج، وهو ما لا يريده أحد. -كان هناك مثال لحلقة لانهائية في مقدمة هذا القسم - لم يكن لديها أي شرط نهائي للخروج من حلقة `while` داخل `loopy()`. لا تستدعي هذه الدالة! +كان هناك مثال لحلقة لانهائية في مقدمة هذا القسم - لم يكن لديها أي شرط نهائي للخروج من حلقة `while` داخل `loopy()`. لا تستدعي هذه الوظيفة! ```js function loopy() { @@ -24,7 +24,7 @@ function loopy() { # --instructions-- -تحتوي دالة `myFunc()` على حلقة لانهائية لأن حالة الشرط الانتهائي `i != 4` لن تقيّم أبدا الي `false` (وتخرج من التكرار) - `i` سوف يزداد بمقدار 2 في كل تكرار، ويقفز مباشرة فوق 4 حيث ان `i` عدد فردي من البداية. أصلح مشغل المقارنة (comparison operator) في حالة الشرط الانتهائي بحيث تعمل الحلقة فقط ل `i` بقيمة أقل من أو يساوي 4. +تحتوي وظيفة `myFunc()` على حلقة لانهائية لأن حالة الشرط الانتهائي `i != 4` لن تقيّم أبدا إلى `false` (وتخرج من التكرار) - `i` سوف يزداد بمقدار 2 في كل تكرار، ويقفز فوق 4 حيث إن `i` عدد فردي من البداية. أصلح مشغل المقارنة (comparison operator) في حالة الشرط الانتهائي بحيث تعمل الحلقة فقط ل `i` بقيمة أقل من أو يساوي 4. # --hints-- diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/complete-a-promise-with-resolve-and-reject.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/complete-a-promise-with-resolve-and-reject.md index 53e0be3a158..24b7297917b 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/complete-a-promise-with-resolve-and-reject.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/complete-a-promise-with-resolve-and-reject.md @@ -20,7 +20,7 @@ const myPromise = new Promise((resolve, reject) => { }); ``` -المثال الوارد أعلاه يستخدم strings نصية كوسيطة لهذه الحَجَّة (argument)، ولكن يمكن أن يكون أي شيء حقا. في كثير من الأحيان، قد يكون كائناً، يمكنك استخدام البيانات منه، لوضع البيانات على موقعك أو في أي مكان آخر. +المثال الوارد أعلاه يستخدم مقاطع (strings) نصية كحَجَّة (argument) لهذه الوظائف (functions)، ولكن يمكن أن تكون أي شيء حقا. في كثير من الأحيان، قد يكون كائناً، يمكنك استخدام البيانات منه، لوضع البيانات على موقعك أو في أي مكان آخر. # --instructions-- diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/prevent-object-mutation.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/prevent-object-mutation.md index cb506a046a2..098e5c5a3c3 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/prevent-object-mutation.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/prevent-object-mutation.md @@ -8,7 +8,7 @@ dashedName: prevent-object-mutation # --description-- -كما رأينا في التحدي السابق، استخدام `const` وحده لا يحمي بياناتك من امكانية تغييرها. لضمان عدم تغيير بياناتك، توفر جافا سكريبت دالة `Object.freeze` لمنع تغيير البيانات. +كما رأينا في التحدي السابق، استخدام `const` وحده لا يحمي بياناتك من امكانية تغييرها. لضمان عدم تغيير بياناتك، توفر JavaScript وظيفة `Object.freeze` لمنع تغيير البيانات. سيتم رفض أي محاولة لتغيير الـ object، مع اظهار خطأ إذا كان السكريبت يعمل في strict mode. diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/set-default-parameters-for-your-functions.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/set-default-parameters-for-your-functions.md index 4bf466bf1f6..910ecfb02ef 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/set-default-parameters-for-your-functions.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/set-default-parameters-for-your-functions.md @@ -1,6 +1,6 @@ --- id: 587d7b88367417b2b2512b46 -title: تعيين المعلمات الافتراضية للدوال (Set Default Parameters for Your Functions) +title: تعيين الوسائط (Parameters) الافتراضية للوظيفتك (Functions) challengeType: 1 forumTopicId: 301209 dashedName: set-default-parameters-for-your-functions @@ -8,7 +8,7 @@ dashedName: set-default-parameters-for-your-functions # --description-- -من أجل مساعدتنا في إنشاء functions أكثر مرونة، يوفر ES6 الـ default parameters للـ functions. +من أجل مساعدتنا في إنشاء وظائف (functions) أكثر مرونة، يوفر ES6 أمكانية وضع وسائط أفتراضية (default parameters) إلى الوظائف (functions). تحقق من هذا الكود: @@ -25,7 +25,7 @@ console.log(greeting()); # --instructions-- -قم بتعديل الدالة `increment` بإضافة الـ default parameters بحيث تضيف 1 إلى `number` إذا لم يتم تحديد `value`. +عدّل الوظيفة `increment` بإضافة الوسائط الافتراضية (default parameters) بحيث تضيف 1 إلى `number` إذا لم يتم تحديد `value`. # --hints-- diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/use-export-to-share-a-code-block.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/use-export-to-share-a-code-block.md index fadc144a1bd..57b763166ed 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/use-export-to-share-a-code-block.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/use-export-to-share-a-code-block.md @@ -8,7 +8,7 @@ dashedName: use-export-to-share-a-code-block # --description-- -تخيل ملف يسمى `math_functions.js` يحتوي على عدة functions ذات صلة بالعمليات الرياضية. واحد منها مخزن في متغير، `add`، والذي يأخذ رقمين ويعيد مجموعهم. تريد استخدام هذه الدالة في عدة ملفات جافا سكريبت مختلفة. من أجل مشاركتها مع هذه الملفات الأخرى، تحتاج أولاً الي ان تصدرها باستخدام `export`. +تخيل مِلَفّ يسمى `math_functions.js` يحتوي على عدة وظائف (functions) ذات صلة بالعمليات الرياضية. واحد منها مخزن في متغير، `add`، والذي يأخذ رقمين ويعيد مجموعهم. تريد استخدام هذه الوظيفة في عدة ملفات من JavaScript المختلفة. من أجل مشاركتها مع هذه الملفات الأخرى، تحتاج أولاً الي ان تصدرها باستخدام `export`. ```js export const add = (x, y) => { @@ -16,7 +16,7 @@ export const add = (x, y) => { } ``` -بالاعلى طريقة شائعة لتصدير دالة واحدة (export single function)، ولكن يمكنك تحقيق نفس الشيء هكذا: +بالأعلى طريقة شائعة لتصدير وظيفة واحدة (export single function)، ولكن يمكنك تحقيق الشيء نفسه هكذا: ```js const add = (x, y) => { @@ -26,7 +26,7 @@ const add = (x, y) => { export { add }; ``` -عند تصدير (export) متغير أو دالة، يمكنك استيراده (import) في ملف آخر واستخدامه دون الحاجة إلى إعادة كتابة الكود. يمكنك تصدير (export) أشياء متعددة بتكرار المثال الأول لكل شيء تريد تصديره، أو بوضعها كلها في export statement من المثال الثاني، مثل هذا: +عند تصدير (export) متغير أو وظيفة، يمكنك استيراده (import) في مِلَفّ آخر واستخدامه دون الحاجة إلى إعادة كتابة الكود. يمكنك تصدير (export) أشياء متعددة بتكرار المثال الأول لكل شيء تريد تصديره، أو بوضعها كلها في export statement من المثال الثاني، مثل هذا: ```js export { add, subtract }; @@ -34,7 +34,7 @@ export { add, subtract }; # --instructions-- -هناك دالتين متعلقتين بالـ strings في المحرر. قم بعمل export لكليهما باستخدام الطريقة التي تختارها. +هناك وظيفتان متعلقتين بالمقاطع النصية (strings) في المحرر. قم بعمل export لكليهما باستخدام الطريقة التي تختارها. # --hints-- diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/use-getters-and-setters-to-control-access-to-an-object.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/use-getters-and-setters-to-control-access-to-an-object.md index 1018ec1e630..aecb02a34bd 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/use-getters-and-setters-to-control-access-to-an-object.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/es6/use-getters-and-setters-to-control-access-to-an-object.md @@ -12,9 +12,9 @@ dashedName: use-getters-and-setters-to-control-access-to-an-object هذه تسمى تقليديا بـ getters و setters. -الغرض من دوال Getter هو ببساطة إرجاع قيمة المتغير الخاص (private) لكائن ما إلى المستخدم دون الوصول قاصدًا إلى المتغير الخاص. +الغرض من وظائف جالب (Getter) هو ببساطة أنتاج قيمة المتغير الخاص (private) لكائن ما إلى المستخدم دون الوصول قاصدًا إلى المتغير الخاص. -الغرض من وظائف Setter هو ببساطة تعيين قيمة المتغير الخاص لكائن ما استناداً إلى القيمة التي تمرر إلى وظيفة الـ setter. قد يتضمن هذا التغيير عمليات حسابية، أو حتى الكتابة فوق القيمة السابقة بالكامل. +الغرض من وظائف محدد (Setter) هو ببساطة تعيين قيمة المتغير الخاص لكائن ما استناداً إلى القيمة التي تمرر إلى وظيفة محدد (setter). قد يتضمن هذا التغيير عمليات حسابية، أو حتى الكتابة فوق القيمة السابقة بالكامل. ```js class Book { diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/avoid-mutations-and-side-effects-using-functional-programming.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/avoid-mutations-and-side-effects-using-functional-programming.md index 1ef26464b18..fd23d3ecfdb 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/avoid-mutations-and-side-effects-using-functional-programming.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/avoid-mutations-and-side-effects-using-functional-programming.md @@ -12,11 +12,11 @@ dashedName: avoid-mutations-and-side-effects-using-functional-programming هذا مثال صغير لنمط أكبر بكثير- يمكنك استدعاء وظيفة (function) على متغير (variable)، قائمة (array)، أو كائن(object)، والوظيفة تغير المتغير أو شيء ما في الكائن. -وأحد المبادئ الأساسية للبرمجة الوظيفية هو عدم تغيير الأشياء. التغييرات تؤدي إلى أعطال. من الأسهل منع الأعطال علما بأن الوظائف الخاصة بك لا تغير أي شيء، بما في ذلك وسيطات الوظيفة أو أي متغير عام. +وأحد المبادئ الأساسية للبرمجة الوظيفية هو عدم تغيير الأشياء. التغييرات تؤدي إلى أعطال. من الأسهل منع الأعطال علما بأن وظائفك (functions) لا تغير أي شيء، بما في ذلك حجج (arguments) الوظيفة أو أي متغير (variable) عام. المثال السابق لم يكن به أي عمليات معقدة ولكن دالة `splice` غيرت القائمة الأصلية، وأسفرت عن حدوث خطأ. -تذكر أنه في البرمجة الوظيفية، تغيير الأشياء يسمى طفرة mutation، وتسمى النتيجة تأثير جانبي side effect. من الناحية المثالية، يجب أن تكون الوظيفة pure function، مما يعني أنها لا تسبب أي تأثيرات جانبية. +تذكر أنه في البرمجة الوظيفية، تغيير الأشياء يسمى طفرة mutation، وتسمى النتيجة تأثير جانبي side effect. من الناحية المثالية، يجب أن تكون الوظيفة خالصة (pure function)، مما يعني أنها لا تسبب أي تأثيرات جانبية. حاول أن تتقن هذا النظام وألا تغير أي متغير أو كائن في التعليمات البرمجية. diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md index d43f99a977a..dbedb68997a 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md @@ -8,9 +8,9 @@ dashedName: implement-map-on-a-prototype # --description-- -كما رأيتم من تطبيق `Array.prototype.map()`، أو `map()` من قبل، فدالة `map` ترجع array من نفس طول الـ array التي استُدعت الدالة عليها. كما أنها لا تغير الـ array الأصلية، طالما أن دالة الـ callback الخاصة بها لا تفعل ذلك. +كما رأيتم من تطبيق `Array.prototype.map()`، أو `map()` من قبل، فدالة `map` ترجع array من نفس طول الـ array التي استُدعت الدالة عليها. وهي إلى ذلك لا تغير القائمة (array) الأصلية، مادام أن وظيفتها لإعادة التفعيل (callback function) لا تفعل ذلك. -بمعنى آخر، `map` هي دالة خالصة (pure function)، ومخرجها يعتمد فقط على مدخلاتها. وعلاوة على ذلك، فإنها تأخذ دالة أخرى كوسيطه (argument) لها. +بمعنى آخر، `map` هي وظيفة خالصة (pure function)، ومخرجها يعتمد فقط على مدخلاتها. إضافةً إلى ذلك، فإنها تأخذ وظيفة أخرى كحجة (argument) لها. قد تتعلم الكثير عن دالة `map` إذا قمت بتنفيذ الإصدار الخاص بك منها. من المستحسن أن تستخدم حلقات `for` التكرارية أو `Array.prototype.forEach()`. @@ -20,10 +20,12 @@ dashedName: implement-map-on-a-prototype # --hints-- -`new_s` يجب أن يساوي `[46, 130, 196, 10]`. +يجب أن يساوي `[23, 65, 98, 5, 13].myMap(item => item * 2)` قيمة `[46, 130, 196, 10, 26]`. ```js -assert(JSON.stringify(new_s) === JSON.stringify([46, 130, 196, 10])); +const _test_s = [46, 130, 196, 10, 13]; +const _callback = item => item * 2; +assert(JSON.stringify(_test_s.map(_callback)) === JSON.stringify(_test_s.myMap(_callback))); ``` يجب ألا يستخدم الكود الخاص بك دالة `map`. @@ -37,9 +39,6 @@ assert(!code.match(/\.?[\s\S]*?map/g)); ## --seed-contents-- ```js -// The global variable -const s = [23, 65, 98, 5]; - Array.prototype.myMap = function(callback) { const newArray = []; // Only change code below this line @@ -47,17 +46,11 @@ Array.prototype.myMap = function(callback) { // Only change code above this line return newArray; }; - -const new_s = s.myMap(function(item) { - return item * 2; -}); ``` # --solutions-- ```js -const s = [23, 65, 98, 5]; - Array.prototype.myMap = function(callback) { const newArray = []; for (const elem of this) { @@ -66,7 +59,7 @@ Array.prototype.myMap = function(callback) { return newArray; }; -const new_s = s.myMap(function(item) { - return item * 2; -}); +// Test case +const s = [23, 65, 98, 5]; +const doubled_s = s.myMap(item => item * 2); ``` diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md index 7ecc1798e0a..8cbdb33d732 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md @@ -16,10 +16,12 @@ dashedName: implement-the-filter-method-on-a-prototype # --hints-- -`new_s` يجب أن يساوي `[23, 65, 5]`. +يجب أن يساوي `[23, 65, 98, 5, 13].myFilter(item => item % 2)` قيمة `[23, 65, 5, 13]`. ```js -assert(JSON.stringify(new_s) === JSON.stringify([23, 65, 5])); +const _test_s = [23, 65, 98, 5, 13]; +const _callback = item => item % 2; +assert(JSON.stringify(_test_s.filter(_callback)) === JSON.stringify(_test_s.myFilter(_callback))); ``` يجب ألا يستخدم الكود الخاص بك دالة `filter`. @@ -33,26 +35,18 @@ assert(!code.match(/\.?[\s\S]*?filter/g)); ## --seed-contents-- ```js -// The global variable -const s = [23, 65, 98, 5]; - Array.prototype.myFilter = function(callback) { - // Only change code below this line const newArray = []; + // Only change code below this line + // Only change code above this line return newArray; }; - -const new_s = s.myFilter(function(item) { - return item % 2 === 1; -}); ``` # --solutions-- ```js -const s = [23, 65, 98, 5]; - Array.prototype.myFilter = function(callback) { const newArray = []; for (let i = 0; i < this.length; i++) { @@ -61,7 +55,7 @@ Array.prototype.myFilter = function(callback) { return newArray; }; -const new_s = s.myFilter(function(item) { - return item % 2 === 1; -}); +// Test case +const s = [23, 65, 98, 5]; +const odd_s = s.myFilter(item => item % 2 === 1); ``` diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/learn-about-functional-programming.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/learn-about-functional-programming.md index 0bdc441e18c..67c15cc6680 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/learn-about-functional-programming.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/learn-about-functional-programming.md @@ -1,6 +1,6 @@ --- id: 587d7b8d367417b2b2512b5b -title: Learn About Functional Programming +title: تعلم عن البرمجة الوظيفية (Functional) challengeType: 1 forumTopicId: 301233 dashedName: learn-about-functional-programming @@ -8,21 +8,21 @@ dashedName: learn-about-functional-programming # --description-- -الـ Functional programming هي أسلوب للبرمجة تكون فيه الحلول عبارة عن functions بسيطة ومنعزلة، بدون أي تأثيرات جانبية خارج نطاق الدالة: `INPUT -> PROCESS -> OUTPUT` +يكون البرمجة الوظيفية (Functional) أسلوب للبرمجة فيه الحلول من الوظائف (functions) بسيطة ومنعزلة، دون أي تأثيرات جانبية خارج نطاق الوظيفة: `INPUT -> PROCESS -> OUTPUT` -Functional programming تتعلق بما يلي: +تتعلق البرمجة الوظيفية (Functional) بما يلي: -1) Isolated functions - لا يوجد اعتماد على حالة البرنامج، الذي يشمل المتغيرات الـ global القابلة للتغيير +1) وظائف منعزلة (Isolated functions) - لا تعتمد على حالة البرنامَج، الذي يشمل المتغيرات العامة (global) القابلة للتغيير -2) Pure functions - نفس الإدخال يعطي دائمًا نفس الإخراج +2) الوظائف الخالصة (Pure functions) - نفس الإدخال يعطي دائمًا نفس الإخراج -(3) الـ functions ذات التأثيرات الجانبية المحدودة - أي تغييرات أو تحولات في حالة البرنامج خارج الـ function تخضع للتحكم الدقيق +(3) الوظائف (functions) ذات التأثيرات الجانبية المحدودة - أي تغييرات أو تحولات في حالة البرنامَج خارج الوظيفة (function) تخضع للتحكم الدقيق # --instructions-- يصادف أن أعضاء freeCodeCamp يحبون الشاي. -في محرر الكود، تم بالفعل تعريف الدوال `prepareTea` و `getTea` من أجلك. قم باستدعاء دالة `getTea` للحصول على 40 كوب من الشاي للفريق، وتخزينها في متغير `tea4TeamFCC`. +في محرر الكود، تم تعريف وظيفتان (functions) تسمى `prepareTea` و `getTea` من أجلك فعلًا. أستدعي وظيفة `getTea` للحصول على 40 كوب من الشاي للفريق، وتخزينها في متغير `tea4TeamFCC`. # --hints-- diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md index bf621c24905..0a4d977b7cd 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md @@ -1,6 +1,6 @@ --- id: 587d7b8f367417b2b2512b60 -title: Refactor Global Variables Out of Functions +title: تعديل المتغيرات العالمية (Global Variables) لأخراجهم من الوظائف (Functions) challengeType: 1 forumTopicId: 301235 dashedName: refactor-global-variables-out-of-functions @@ -8,19 +8,19 @@ dashedName: refactor-global-variables-out-of-functions # --description-- -وقد شهدنا حتى الآن مبدأين متميزين للـ functional programming: +وقد شهدنا حتى الآن مبدأين متميزين للبرمجة الوظيفية (functional programming): -1) لا تغير متغير (variable) أو object - قم بإنشاء متغيرات و objects جديدة و قم بإرجاعها إذا لزم الأمر من function. تلميح: باستخدام شيء مثل `const newArr = arrVar`، حيث `arrVar` هو array، سوف يقوم ببساطة بإنشاء مرجع إلى المتغير الحالي وليس نسخة. لذا فإن تغيير قيمة في `newArr` سيغير القيمة في `arrVar`. +1) لا تغير متغير (variable) أو كائن (object) - أنشئ متغيرات و كائنات (objects) جديدة و منشئا من الوظيفة (function) إذا لزم الأمر. تلميح: باستخدام شيء مثل `const newArr = arrVar`، حيث `arrVar` هو array، سوف يقوم ببساطة بإنشاء مرجع إلى المتغير الحالي وليس نسخة. لذا فإن تغيير قيمة في `newArr` سيغير القيمة في `arrVar`. -2) تعريف معلمات الدالة - أي حساب داخل الـ function يعتمد فقط على الـ arguments التي تحال إلى الـ function، وليس على أي global object أو متغير. +2) تعريف وسائط الوظيفة (function parameters) - يعتمد حسابات داخل الوظيفة (function) فقط على الوسائط (arguments) التي تمر إلى الوظيفة (function)، ولاا تعتمد على أي كائن (object) أو متغير (variable) عام (global). إن إضافة واحد إلى رقما ليس مثيراً جداً، ولكن يمكننا تطبيق هذه المبادئ عند العمل مع arrays أو objects أكثر تعقيداً. # --instructions-- -أعد كتابة الكود حتى لا يتم تغيير الـ array العامة `bookList` داخل أي من الـ functions. يجب أن تضيف دالة `add` الـ `bookName` إلى نهاية الـ array الذي تم تمريره إليه وإعادة array جديدة (قائمة). يجب أن تقوم دالة `remove` بإزالة `bookName` من الـ array الذي تم تمريره إليه. +أعد كتابة الكود حتى لا يتم تغيير القائمة (array) العامة `bookList` داخل أي من الوظائف (functions). يجب أن تضيف وظيفة `add` قيمة الوسيط `bookName` المعطى إلى نهاية القائمة (array) الذي تم تمريره إليه وإعادة قائمة (array) جديدة. يجب أن تزيل وظيفة `remove` قيمة الوسيط `bookName` من القائمة (array) الذي تم تمريره إليها. -**ملاحظة:** يجب أن تعيد كلتا الدالتين، array، وينبغي إضافة أي معلمات جديدة قبل معلمة `bookName`. +**ملاحظة:** يجب أن تنتج كلتا الوظيفتين (functions) قائمة (array)، وينبغي إضافة أي وسائط (parameters) جديدة قبل وسيط `bookName`. # --hints-- diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/remove-elements-from-an-array-using-slice-instead-of-splice.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/remove-elements-from-an-array-using-slice-instead-of-splice.md index 50b435c671f..ba53bbddab3 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/remove-elements-from-an-array-using-slice-instead-of-splice.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/remove-elements-from-an-array-using-slice-instead-of-splice.md @@ -21,9 +21,9 @@ cities.splice(3, 1); # --instructions-- -قم بإعادة كتابة الدالة `nonMutatingSplice` باستخدام `slice` بدلاً من `splice`. يجب أن يقصر طول مصفوفة `cities` المقدمة على 3، ويعيد array جديدة تحتوي على العناصر الثلاثة الأولى فقط. +أعّد كتابة الوظيفة `nonMutatingSplice` باستخدام `slice` بدلاً من `splice`. يجب أن يقصر طول مصفوفة `cities` المقدمة على 3، ويعيد array جديدة تحتوي على العناصر الثلاثة الأولى فقط. -لا تقم بتغيير ال array الأصلية المقدمة للـ function. +لا تغيّر القائمة (array) الأصلية المقدمة للوظيفة (function). # --hints-- diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/use-higher-order-functions-map-filter-or-reduce-to-solve-a-complex-problem.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/use-higher-order-functions-map-filter-or-reduce-to-solve-a-complex-problem.md index 809234df9cd..ffe3a3b75f2 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/use-higher-order-functions-map-filter-or-reduce-to-solve-a-complex-problem.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/use-higher-order-functions-map-filter-or-reduce-to-solve-a-complex-problem.md @@ -1,6 +1,6 @@ --- id: 587d7b88367417b2b2512b45 -title: 'استخدام Higher-Order Functions map او filter او reduce لحل مشكلة معقدة (Use Higher-Order Functions map, filter, or reduce to Solve a Complex Problem)' +title: 'استخدام وظائف (Functions) عالية التجريد (Higher-Order) مثل map, أو filter, أو reduce لحل مشكلة معقدة' challengeType: 1 forumTopicId: 301311 dashedName: use-higher-order-functions-map-filter-or-reduce-to-solve-a-complex-problem @@ -8,13 +8,13 @@ dashedName: use-higher-order-functions-map-filter-or-reduce-to-solve-a-complex-p # --description-- -الآن بعد أن تدربت على بعض التحديات باستخدام higher-order functions مثل `map()` و `filter()` و `reduce()`، يمكنك الآن تطبيقها لحل تحدي أكثر تعقيدا. +الآن بعد أن تدربت على بعض التحديات باستخدام وظائف (functions) عالية التجريد (higher-order) مثل `map()`, و `filter()`, و `reduce()`، يمكنك الآن تطبيقها لحل تحدي أكثر تعقيدا. # --instructions-- -أكمل الكود لدالة `squareList` باستخدام أي مزيج من `map()` و `filter()` و `reduce()`. يجب أن تعيد الدالة array جديدة تحتوي على تربيع *فقط* الأعداد الصحيحة الموجبة (الأرقام العشرية ليست عدد صحيح) عندما تمرر إليها array من الأرقام الحقيقية. مثال لـ array من الأعداد الحقيقية (real numbers) هو `[-3, 4.8, 5, 3, -3.2]`. +أكمل الكود لوظيفة `squareList` باستخدام أي مزيج من `map()`, و `filter()`, و `reduce()`. يجب أن تنتج الوظيفة (function) قائمة (array) جديدة تحتوي على تربيع *فقط* الأعداد الصحيحة الموجبة (الأرقام العشرية ليست عدد صحيح) عندما تمرر إليها قائمة (array) من الأرقام الحقيقية. مثال لـ array من الأعداد الحقيقية (real numbers) هو `[-3, 4.8, 5, 3, -3.2]`. -**ملاحظة:** يجب ألا تستخدم دالتك أي نوع من حلقات `for` أو `while` أو `forEach()`. +**ملاحظة:** يجب ألا تستخدم وظيفتك أي نوع من حلَقات (loops) مثل `for`, أو `while`, أو `forEach()`. # --hints-- @@ -41,7 +41,7 @@ assert( ); ``` -يجب أن تعيد الدالة `array`. +يجب أن تعيد وظيفتك `array`. ```js assert(Array.isArray(squareList([4, 5.6, -9.8, 3.14, 42, 6, 8.34, -2]))); diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/use-the-some-method-to-check-that-any-elements-in-an-array-meet-a-criteria.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/use-the-some-method-to-check-that-any-elements-in-an-array-meet-a-criteria.md index 3d680d0dc0c..82479d6f995 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/use-the-some-method-to-check-that-any-elements-in-an-array-meet-a-criteria.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/functional-programming/use-the-some-method-to-check-that-any-elements-in-an-array-meet-a-criteria.md @@ -24,7 +24,7 @@ numbers.some(function(currentValue) { # --instructions-- -استخدم دالة `some` داخل دالة `checkPositive` للتحقق مما إذا كان اي عنصر في `arr` موجبا. يجب أن يعيد الـ function قيمة Boolean. +استخدم طريقة (method) مسمى `some` داخل وظيفة (fucntion) مسمى `checkPositive` للتحقق مما إذا كان أي عنصر في `arr` موجبا. يجب أن يرجع الوظيفة (function) قيمة منطقية (Boolean). # --hints-- diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/caesars-cipher.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/caesars-cipher.md index d1cc9e41f3f..16df5dfdf00 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/caesars-cipher.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/caesars-cipher.md @@ -12,7 +12,7 @@ dashedName: caesars-cipher من الاستخدامات الحديثة الشائعة تشفير ROT13 ، حيث يتم تبديل قيم الحروف بمقدار 13 مكانًا. وهكذا `A ↔ N`، `B ↔ O` وما إلى ذلك. -اكتب دالة تأخذ سلسلة نصية مشفرة من نوع ROT13 كمدخل وترجع سلسلة نصية مشفرة. +اكتب وظيفة تأخذ مقطع نصي مشفر من نوع ROT13 كمدخل وتنتج مقطع نصي غير مشفر. جميع الحروف ستكون كبيرة (uppercase). لا تغير أي حرف غير أبجدي (مثل المسافات وعلامات الترقيم)، ولكن مررها. diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/object-oriented-programming/define-a-constructor-function.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/object-oriented-programming/define-a-constructor-function.md index 0195f9492bc..9d72853d536 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/object-oriented-programming/define-a-constructor-function.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/object-oriented-programming/define-a-constructor-function.md @@ -1,6 +1,6 @@ --- id: 587d7dad367417b2b2512b77 -title: تعريف دالة البناء (Define a Constructor Function) +title: تعريف وظيفة المنشئة (Constructor Function) challengeType: 1 forumTopicId: 16804 dashedName: define-a-constructor-function @@ -8,7 +8,7 @@ dashedName: define-a-constructor-function # --description-- -الـ Constructors هي functions تقوم بأنشاء objects جديدة. وهي تحدد الخصائص والسلوكيات التي ستنتمي إلى الـ object الجديد. فكر فيها كمخطط لإنشاء objects جديدة. +يكون منشئون (Constructors) وظائف (functions) تقوم بأنشاء كائنات (objects) جديدة. وهي تحدد الخصائص والسلوكيات التي ستنتمي إلى الـ object الجديد. فكر فيها كمخطط لإنشاء objects جديدة. وفيما يلي مثال على constructor: @@ -22,7 +22,7 @@ function Bird() { هذا الـ constructor يعرف object الـ `Bird` ذو خصائص `name`, `color` و `numLegs` تم تعيينهم إلى Albert و blue و 2 على التوالي. ويتبع الـ Constructors بعض الاتفاقيات: - + # --instructions-- diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/object-oriented-programming/remember-to-set-the-constructor-property-when-changing-the-prototype.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/object-oriented-programming/remember-to-set-the-constructor-property-when-changing-the-prototype.md index 1547af05ec1..4b39fb9b64d 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/object-oriented-programming/remember-to-set-the-constructor-property-when-changing-the-prototype.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/object-oriented-programming/remember-to-set-the-constructor-property-when-changing-the-prototype.md @@ -8,7 +8,7 @@ dashedName: remember-to-set-the-constructor-property-when-changing-the-prototype # --description-- -هناك تأثير جانبي مهم لضبط prototype يدويًا إلى كائن (object) جديد. إنه يمحو خاصية `constructor`! يمكن استخدام هذه الخاصية لمعرفة إي وظيفة constructor هي التي أنشأت instance، ولكن بما انه تم التعديل علي الخاصية، فإنها تعطي الآن نتائج خاطئة: +هناك تأثير جانبي مهم لضبط prototype يدويًا إلى كائن (object) جديد. إنه يمحو خاصية `constructor`! يمكن استخدام هذه الخاصية لمعرفة إي وظيفة منشئ (constructor) هي التي أنشأت نموذج (instance)، ولكن بما انه تم التعديل علي الخاصية (property)، فإنها تعطي الآن نتائج خاطئة: ```js duck.constructor === Bird; diff --git a/curriculum/challenges/arabic/04-data-visualization/data-visualization-with-d3/create-a-linear-scale-with-d3.md b/curriculum/challenges/arabic/04-data-visualization/data-visualization-with-d3/create-a-linear-scale-with-d3.md index fced4a73360..e8366d4523b 100644 --- a/curriculum/challenges/arabic/04-data-visualization/data-visualization-with-d3/create-a-linear-scale-with-d3.md +++ b/curriculum/challenges/arabic/04-data-visualization/data-visualization-with-d3/create-a-linear-scale-with-d3.md @@ -12,17 +12,17 @@ dashedName: create-a-linear-scale-with-d3 في D3، هناك مقاييس للمساعدة في ملأ البيانات. تكون `scales` وظائف (functions) تخبر البرنامَج كيفية ملأ مجموعة من نِقَاط البيانات الخام على البكسلات (px) في لوحة SVG. -على سبيل المثال، قل أن لديك لوحة SVG بحجم 100x500، وأنت تريد ملأ الناتج إجمال المحلي (Gross Domestic Product) لعدد من الدول. The set of numbers would be in the billion or trillion-dollar range. You provide D3 a type of scale to tell it how to place the large GDP values into that 100x500-sized area. +على سبيل المثال، قل أن لديك لوحة SVG بحجم 100x500، وأنت تريد ملأ الناتج إجمال المحلي (Gross Domestic Product) لعدد من الدول. ومجموعة الأعداد ستكون في حدود المليار أو تريليون دولار. يمكنك توفير D3 من المقياس لمعرفة كيفية وضع قيم الناتج المحلي الإجمالي الكبيرة في تلك المساحة 100x500. -It's unlikely you would plot raw data as-is. Before plotting it, you set the scale for your entire data set, so that the `x` and `y` values fit your canvas width and height. +من غير المحتمل أن تملأ البيانات الخام كما هي. قبل الملأ، عيّن المقياس لكامل مجموعتك للبيانات. بحيث أن قيم `x` و `y` تتناسب مع عرض وطول اللوحة. -D3 has several scale types. For a linear scale (usually used with quantitative data), there is the D3 method `scaleLinear()`: +ولدى D3 عدة أنواع من المقاييس. للحصول على مقياس خطي (linear scale) (يستخدم عادة مع البيانات الكمية (quantitative data))، هناك طريقة في D3 تسمى `scaleLinear()`: ```js const scale = d3.scaleLinear() ``` -By default, a scale uses the identity relationship. The value of the input is the same as the value of the output. A separate challenge covers how to change this. +بشكل افتراضي، يستخدم المقياس عَلاقة الهُوِيَّة (identity relationship). The value of the input is the same as the value of the output. A separate challenge covers how to change this. # --instructions-- diff --git a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-projects/personal-library.md b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-projects/personal-library.md index 353b79ed387..9df4211203e 100644 --- a/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-projects/personal-library.md +++ b/curriculum/challenges/arabic/06-quality-assurance/quality-assurance-projects/personal-library.md @@ -170,7 +170,7 @@ async (getUserInput) => { }; ``` -You can send a DELETE request to `/api/books` to delete all books in the database. The returned response will be the string `'complete delete successful` if successful. +You can send a DELETE request to `/api/books` to delete all books in the database. The returned response will be the string `complete delete successful` if successful. ```js async (getUserInput) => { diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md index 21ee988f894..c1248c01dcc 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md @@ -19,7 +19,7 @@ dashedName: step-95 assert.notEmpty(new __helpers.CSSHelp(document).getCSSRules('keyframes')); ``` -بداخل قاعدة `@keyframes` يجب أن تكون خاصية `name` بقيمة `--fcc-expected--`, ولكن وجدت بقيمة `--fcc-actual--`. +بداخل قاعدة `@keyframes` يجب أن تسمى القاعدة باسم `--fcc-expected--`, ولكن وجدت اسم `--fcc-actual--`. ```js assert.equal(new __helpers.CSSHelp(document).getCSSRules('keyframes')?.[0]?.name, 'wave'); diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md index 68cb949ae4a..a90913a3f3a 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md @@ -77,6 +77,7 @@ assert(collection.indexOf('H1') < collection.indexOf('H2')); --fcc-editable-region--

CatPhotoApp

+ --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md index 2118e64e259..f455f9f12db 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md @@ -53,6 +53,7 @@ assert(collection.indexOf('H2') < collection.indexOf('P'));

CatPhotoApp

--fcc-editable-region--

Cat Photos

+ --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md index ea0fa29c3fd..118f7a91971 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md @@ -63,6 +63,7 @@ assert(

Cat Photos

--fcc-editable-region--

Click here to view more cat photos.

+ --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md index 18e95697554..ebecb71dc70 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md @@ -25,7 +25,7 @@ assert(document.querySelector('main')); assert(code.match(/<\/main\>/)); ``` -يجب أن تكون علامة أفتاح (opening tag) عنصرك `main` تحت عنصر `body`. لقد وضعتهم بترتيب خاطئ. +Your `main` element's opening tag should be below the `body` element's opening tag. لقد وضعتهم بترتيب خاطئ. ```js const main = document.querySelector('main'); @@ -60,10 +60,12 @@ assert( --fcc-editable-region-- +

CatPhotoApp

Cat Photos

Click here to view more cat photos.

+ --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md index 3c5eb58d5c6..395f2243ed6 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md @@ -53,6 +53,7 @@ assert(collection.indexOf('P') < collection.indexOf('IMG')); --fcc-editable-region--

Click here to view more cat photos.

+ --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md index 059d20011ee..8f1bfd8f552 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md @@ -70,6 +70,7 @@ assert( --fcc-editable-region--

Click here to view more cat photos.

+ --fcc-editable-region-- A cute orange cat lying on its back. diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md index 77bcc33a6cb..a8400fd4edf 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md @@ -66,6 +66,7 @@ assert( --fcc-editable-region--
+
--fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md index c6cb3ba2330..d37e0aff479 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md @@ -75,6 +75,7 @@ assert( --fcc-editable-region--

Cat Lists

+
--fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md index f555eaf17a0..b177ce9b02e 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md @@ -49,6 +49,7 @@ assert(secondSectionLastElemNode.nodeName === 'UL'); --fcc-editable-region--

Cat Lists

Things cats love:

+ --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md index 7f3c2b565b0..f043ae66c4c 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md @@ -69,6 +69,7 @@ assert(

Things cats love:

--fcc-editable-region-- --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md index 1d2c8b60659..9650e8f26b2 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md @@ -85,6 +85,7 @@ assert(!/\laser pointers
  • lasagna
  • + --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md index 97519f07b95..cafbe116e6f 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md @@ -65,7 +65,9 @@ assert(
  • lasagna
  • --fcc-editable-region-- + A slice of lasagna on a plate. + --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md index a0b249fe3c1..80407b98d58 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md @@ -88,6 +88,7 @@ assert( --fcc-editable-region--
    A slice of lasagna on a plate. +
    --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md index e9512b3e3a3..fc459f4eed3 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md @@ -72,6 +72,7 @@ assert( A slice of lasagna on a plate.
    Cats love lasagna.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md index ce2c2984ba4..1464310624f 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md @@ -84,6 +84,7 @@ assert.deepStrictEqual( --fcc-editable-region--

    Top 3 things cats hate:

    + --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md index 2f9ca5c6dc0..b4b568f3993 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md @@ -63,6 +63,7 @@ assert($('main > section')[1].lastElementChild.nodeName === 'FIGURE');
  • thunder
  • other cats
  • + --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md index 4bd76b192a0..fcf0cd63d43 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md @@ -85,7 +85,9 @@ assert(
    Five cats looking around a field. --fcc-editable-region-- +
    Cats hate other cats.
    + --fcc-editable-region--
    diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md index e17eeae2228..53b2c041433 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md @@ -96,6 +96,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md index b68b7dc70fc..4808b6583e3 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md @@ -79,6 +79,7 @@ assert($('form')[0].innerHTML.trim().length === 0);
    --fcc-editable-region--

    Cat Form

    + --fcc-editable-region--
    diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md index 030cf587203..e275d98efc9 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md @@ -99,6 +99,7 @@ assert(

    Cat Form

    --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md index 352d2706281..896fa392f4d 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md @@ -83,6 +83,7 @@ assert(collection.indexOf('INPUT') < collection.indexOf('BUTTON'));
    --fcc-editable-region-- + --fcc-editable-region--
    diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md index 7780a4a586e..1b244f4274f 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md @@ -88,8 +88,10 @@ assert(

    Cat Form

    --fcc-editable-region-- + + --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md index 65de79393df..dd5484687b0 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md @@ -117,6 +117,7 @@ assert(
    --fcc-editable-region-- What's your cat's personality? + --fcc-editable-region--
    diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md index 951df037604..f412aa92b33 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md @@ -95,8 +95,9 @@ assert(document.querySelector('main').nextElementSibling.nodeName === 'FOOTER'); --fcc-editable-region-- + - --fcc-editable-region-- + ``` diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md index 239cfc5ed47..6362f3743f8 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md @@ -96,6 +96,7 @@ assert(extraSpacesRemoved.match(/No Copyright - freeCodeCamp\.org$/i)); --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md index bf2722476bf..e3d163fbf94 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md @@ -9,7 +9,7 @@ dashedName: step-65 لاحظ أن كل ما قمت بإضافته إلى الصفحة حتى الآن هو داخل عنصر `body`. جميع عناصر محتوى الصفحة التي يجب عرضها علي الصفحة تذهب داخل عنصر `body`. ومع ذلك، هناك معلومات هامة أخرى تدخل داخل عنصر `head`. -قم بإضافة عنصر `head` فوق عنصر `body` مباشرة. +أضف عنصر `head` فوق عنصر `body` مباشرة. # --hints-- @@ -43,9 +43,11 @@ assert(noSpaces.match(/\<\/head\>\/)); ## --seed-contents-- ```html - --fcc-editable-region-- + + +--fcc-editable-region--

    CatPhotoApp

    @@ -102,7 +104,6 @@ assert(noSpaces.match(/\<\/head\>\/));

    ---fcc-editable-region-- ``` diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md index a6409bf73ba..e0ca005ef4f 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md @@ -48,6 +48,7 @@ assert(document.title && document.title.toLowerCase() === 'catphotoapp'); --fcc-editable-region-- + --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md index 1cecb496dfe..9293b4d0977 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md @@ -32,11 +32,12 @@ assert(noSpaces.match(/^\<\!DOCTYPEhtml\>\ +--fcc-editable-region-- CatPhotoApp ---fcc-editable-region--

    CatPhotoApp

    diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md index c5077ac74e1..8ea7412e4f8 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md @@ -89,6 +89,7 @@ assert(!/\ --fcc-editable-region--
    +
    --fcc-editable-region--
    diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md index d59ec2054c4..b861c631d3c 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md @@ -7,7 +7,7 @@ dashedName: step-30 # --description-- -لتحسين إمكانية الوصول (accessibility) إلى الصورة التي أضفتها للتو، أضف خاصية `alt` مع النص: +لتحسين إمكانية الوصول (accessibility) إلى الصورة التي أضفتها، أضف خاصية `alt` مع النص: `Five cats looking around a field.` diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md index c773b2c32a6..641c36a63ec 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md @@ -110,11 +110,12 @@ assert(
  • thunder
  • other cats
  • +--fcc-editable-region--
    ---fcc-editable-region-- Five cats looking around a field. ---fcc-editable-region-- +
    +--fcc-editable-region--
    diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md index f5d1e146161..06c073b0079 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md @@ -124,6 +124,7 @@ assert(code.match(/<\/label>\s*\s*]+>\s*Outdoor/i)); --fcc-editable-region-- + --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md index 5fafd5a9ce0..fc1525b6fbd 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md @@ -57,6 +57,7 @@ assert.isFalse(includesH1); --fcc-editable-region-- +

    CatPhotoApp

    Cat Photos

    @@ -64,6 +65,7 @@ assert.isFalse(includesH1);

    Click here to view more cat photos.

    A cute orange cat lying on its back.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md index 30adffac6c9..8178eb69261 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md @@ -73,6 +73,7 @@ assert(foundElems.length === 2);

    Click here to view more cat photos.

    A cute orange cat lying on its back. + --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md index 10ad14278dc..6e000b5f2a0 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md @@ -90,6 +90,7 @@ assert($('main > section')[2].children.length === 0);
    Cats hate other cats.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md index 8aa2cf296d0..bcb1cfb005d 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md @@ -90,6 +90,7 @@ assert(extraSpacesRemoved.match(/Is your cat an indoor or outdoor cat\??$/i)); --fcc-editable-region--
    +
    diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md index 0d6f4a4707c..cc0f08f7eaf 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md @@ -116,9 +116,10 @@ assert(fieldsetChildren[0].length > fieldsetChildren[1].length); + +--fcc-editable-region-- ---fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md index f446378e7c1..606043b40e9 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md @@ -101,6 +101,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md index 9435375ae6d..643a3603a72 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md @@ -13,7 +13,7 @@ dashedName: step-69 ``` -أخبر المتصفح بتحليل التشكيل (markdown) إلى لغات متعددة عن طريق إنشاء `meta` كعنصر فرعي في عنصر `head`. عيّن سمة `charset` إلى `UTF-8`. +Tell the browser to parse the markup into multiple languages by creating a `meta` element as a child of the `head` element. عيّن سمة `charset` إلى `UTF-8`. # --hints-- @@ -45,6 +45,7 @@ assert.notMatch(code, /<\/meta\s*>?/i); --fcc-editable-region-- + CatPhotoApp --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md index 7fc976d2512..1516d4cc3fa 100644 --- a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md +++ b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md @@ -20,10 +20,12 @@ dashedName: implement-map-on-a-prototype # --hints-- -`new_s` 應該等於 `[46, 130, 196, 10]`。 +`[23, 65, 98, 5, 13].myMap(item => item * 2)` should equal `[46, 130, 196, 10, 26]`. ```js -assert(JSON.stringify(new_s) === JSON.stringify([46, 130, 196, 10])); +const _test_s = [46, 130, 196, 10, 13]; +const _callback = item => item * 2; +assert(JSON.stringify(_test_s.map(_callback)) === JSON.stringify(_test_s.myMap(_callback))); ``` 不能使用 `map` 方法。 @@ -37,9 +39,6 @@ assert(!code.match(/\.?[\s\S]*?map/g)); ## --seed-contents-- ```js -// The global variable -const s = [23, 65, 98, 5]; - Array.prototype.myMap = function(callback) { const newArray = []; // Only change code below this line @@ -47,17 +46,11 @@ Array.prototype.myMap = function(callback) { // Only change code above this line return newArray; }; - -const new_s = s.myMap(function(item) { - return item * 2; -}); ``` # --solutions-- ```js -const s = [23, 65, 98, 5]; - Array.prototype.myMap = function(callback) { const newArray = []; for (const elem of this) { @@ -66,7 +59,7 @@ Array.prototype.myMap = function(callback) { return newArray; }; -const new_s = s.myMap(function(item) { - return item * 2; -}); +// Test case +const s = [23, 65, 98, 5]; +const doubled_s = s.myMap(item => item * 2); ``` diff --git a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md index 0f1123713d5..20f02ee7592 100644 --- a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md +++ b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md @@ -16,10 +16,12 @@ dashedName: implement-the-filter-method-on-a-prototype # --hints-- -`new_s` 應該等於 `[23, 65, 5]`。 +`[23, 65, 98, 5, 13].myFilter(item => item % 2)` should equal `[23, 65, 5, 13]`. ```js -assert(JSON.stringify(new_s) === JSON.stringify([23, 65, 5])); +const _test_s = [23, 65, 98, 5, 13]; +const _callback = item => item % 2; +assert(JSON.stringify(_test_s.filter(_callback)) === JSON.stringify(_test_s.myFilter(_callback))); ``` 不應該使用 `filter` 方法。 @@ -33,26 +35,18 @@ assert(!code.match(/\.?[\s\S]*?filter/g)); ## --seed-contents-- ```js -// The global variable -const s = [23, 65, 98, 5]; - Array.prototype.myFilter = function(callback) { - // Only change code below this line const newArray = []; + // Only change code below this line + // Only change code above this line return newArray; }; - -const new_s = s.myFilter(function(item) { - return item % 2 === 1; -}); ``` # --solutions-- ```js -const s = [23, 65, 98, 5]; - Array.prototype.myFilter = function(callback) { const newArray = []; for (let i = 0; i < this.length; i++) { @@ -61,7 +55,7 @@ Array.prototype.myFilter = function(callback) { return newArray; }; -const new_s = s.myFilter(function(item) { - return item % 2 === 1; -}); +// Test case +const s = [23, 65, 98, 5]; +const odd_s = s.myFilter(item => item % 2 === 1); ``` diff --git a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-projects/personal-library.md b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-projects/personal-library.md index df64c6d44af..33bd44ba3da 100644 --- a/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-projects/personal-library.md +++ b/curriculum/challenges/chinese-traditional/06-quality-assurance/quality-assurance-projects/personal-library.md @@ -170,7 +170,7 @@ async (getUserInput) => { }; ``` -可以向 `/api/books` 發送 DELETE 請求來刪除數據庫中的所有書籍。 如果成功,返回的響應將是字符串 `'complete delete successful`。 +可以向 `/api/books` 發送 DELETE 請求來刪除數據庫中的所有書籍。 The returned response will be the string `complete delete successful` if successful. ```js async (getUserInput) => { diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md index 01dfb1e6b53..f1a4a1d6b2a 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md @@ -19,7 +19,7 @@ dashedName: step-95 assert.notEmpty(new __helpers.CSSHelp(document).getCSSRules('keyframes')); ``` -`@keyframes` 規則的 `name` 應該是 `--fcc-expected--`,而不是 `--fcc-actual--`。 +You should give the `@keyframes` rule a name of `--fcc-expected--`, but found `--fcc-actual--`. ```js assert.equal(new __helpers.CSSHelp(document).getCSSRules('keyframes')?.[0]?.name, 'wave'); diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md index aa6d29516da..7b1a6c66632 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md @@ -77,6 +77,7 @@ assert(collection.indexOf('H1') < collection.indexOf('H2')); --fcc-editable-region--

    CatPhotoApp

    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md index f0f948527d7..d33e6325ccc 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md @@ -53,6 +53,7 @@ assert(collection.indexOf('H2') < collection.indexOf('P'));

    CatPhotoApp

    --fcc-editable-region--

    Cat Photos

    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md index d064e73690b..d35a72b92a6 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md @@ -63,6 +63,7 @@ assert(

    Cat Photos

    --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md index b0e617762d7..16409b36f00 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md @@ -25,7 +25,7 @@ assert(document.querySelector('main')); assert(code.match(/<\/main\>/)); ``` -你的 `main` 元素的開始標籤應該在 `body` 元素的下方。 你把順序寫錯了。 +Your `main` element's opening tag should be below the `body` element's opening tag. 你把順序寫錯了。 ```js const main = document.querySelector('main'); @@ -60,10 +60,12 @@ assert( --fcc-editable-region-- +

    CatPhotoApp

    Cat Photos

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md index 3feb1b1ad16..b8b72a69e8d 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md @@ -53,6 +53,7 @@ assert(collection.indexOf('P') < collection.indexOf('IMG')); --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md index d9e26648894..7f5b9f82517 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md @@ -70,6 +70,7 @@ assert( --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- A cute orange cat lying on its back. diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md index ba6f2c45abd..6fbf27f5765 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md @@ -66,6 +66,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md index 7363aad6410..e98c5ba3077 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md @@ -75,6 +75,7 @@ assert( --fcc-editable-region--

    Cat Lists

    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md index 8378b65893d..cf8e5a2cbe8 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md @@ -49,6 +49,7 @@ assert(secondSectionLastElemNode.nodeName === 'UL'); --fcc-editable-region--

    Cat Lists

    Things cats love:

    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md index 3b56c9c892f..951f3b53703 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md @@ -69,6 +69,7 @@ assert(

    Things cats love:

    --fcc-editable-region--
      +
    --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md index d7b524e9045..291ff2f5923 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md @@ -85,6 +85,7 @@ assert(!/\laser pointers
  • lasagna
  • + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md index d137b11bac0..cf80f758113 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md @@ -65,7 +65,9 @@ assert(
  • lasagna
  • --fcc-editable-region-- + A slice of lasagna on a plate. + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md index dcf18169b84..ca607a1d0e8 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md @@ -88,6 +88,7 @@ assert( --fcc-editable-region--
    A slice of lasagna on a plate. +
    --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md index cbd1312d861..2073371803c 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md @@ -72,6 +72,7 @@ assert( A slice of lasagna on a plate.
    Cats love lasagna.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md index 7fa298f9946..eaec70d8740 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md @@ -84,6 +84,7 @@ assert.deepStrictEqual( --fcc-editable-region--

    Top 3 things cats hate:

    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md index 80586ad50d9..dcb5c899fc1 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md @@ -63,6 +63,7 @@ assert($('main > section')[1].lastElementChild.nodeName === 'FIGURE');
  • thunder
  • other cats
  • + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md index e3df2081f86..ec2f422c1cc 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md @@ -85,7 +85,9 @@ assert(
    Five cats looking around a field. --fcc-editable-region-- +
    Cats hate other cats.
    + --fcc-editable-region--
    diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md index d738195193e..8d1ea314cae 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md @@ -96,6 +96,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md index 5ea671607c6..53b48686fa6 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md @@ -79,6 +79,7 @@ assert($('form')[0].innerHTML.trim().length === 0);
    --fcc-editable-region--

    Cat Form

    + --fcc-editable-region--
    diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md index 789178492c5..fe767c3321b 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md @@ -99,6 +99,7 @@ assert(

    Cat Form

    --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md index 1e92dfcf6ac..bf7a0587f60 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md @@ -83,6 +83,7 @@ assert(collection.indexOf('INPUT') < collection.indexOf('BUTTON'));
    --fcc-editable-region-- + --fcc-editable-region--
    diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md index eefd5f8e798..7b2a7b2e1ec 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md @@ -88,8 +88,10 @@ assert(

    Cat Form

    --fcc-editable-region-- + + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md index 57b6eba97a1..f27e58e1280 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md @@ -117,6 +117,7 @@ assert(
    --fcc-editable-region-- What's your cat's personality? + --fcc-editable-region--
    diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md index dcdd83b4430..f74787268d2 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md @@ -95,8 +95,9 @@ assert(document.querySelector('main').nextElementSibling.nodeName === 'FOOTER'); --fcc-editable-region-- + - --fcc-editable-region-- + ``` diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md index 6ed6fb01046..e3ce3787d7c 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md @@ -96,6 +96,7 @@ assert(extraSpacesRemoved.match(/No Copyright - freeCodeCamp\.org$/i)); --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md index 10f15059e5f..f1b906a6be1 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md @@ -9,7 +9,7 @@ dashedName: step-65 請注意,到目前爲止你添加到頁面的所有內容都在 `body` 元素內。 應該呈現到頁面的所有頁面內容元素都放在 `body` 元素中。 但是,其他重要信息位於 `head` 元素中。 -在 `body` 元素上方添加一個 `head` 元素。 +Add a `head` element above the `body` element. # --hints-- @@ -43,9 +43,11 @@ assert(noSpaces.match(/\<\/head\>\/)); ## --seed-contents-- ```html - --fcc-editable-region-- + + +--fcc-editable-region--

    CatPhotoApp

    @@ -102,7 +104,6 @@ assert(noSpaces.match(/\<\/head\>\/));

    ---fcc-editable-region-- ``` diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md index 429aaa61117..e5a389aa083 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md @@ -48,6 +48,7 @@ assert(document.title && document.title.toLowerCase() === 'catphotoapp'); --fcc-editable-region-- + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md index 5d52a11113d..5254474fcf7 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md @@ -32,11 +32,12 @@ assert(noSpaces.match(/^\<\!DOCTYPEhtml\>\ +--fcc-editable-region-- CatPhotoApp ---fcc-editable-region--

    CatPhotoApp

    diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md index e2762744a4f..a4471362805 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md @@ -89,6 +89,7 @@ assert(!/\ --fcc-editable-region--
    +
    --fcc-editable-region--
    diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md index 2f2633ae212..fae32b08bda 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md @@ -7,7 +7,7 @@ dashedName: step-30 # --description-- -爲了提高你剛剛添加的圖像的可訪問性,添加具有以下文本的 `alt` 屬性。 +To improve accessibility of the image you added, add an `alt` attribute with the text: `Five cats looking around a field.` diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md index 6d37ce7b17d..ccda637054e 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md @@ -110,11 +110,12 @@ assert(
  • thunder
  • other cats
  • +--fcc-editable-region--
    ---fcc-editable-region-- Five cats looking around a field. ---fcc-editable-region-- +
    +--fcc-editable-region--
    diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md index e99f2fd93b0..440899a3c65 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md @@ -124,6 +124,7 @@ assert(code.match(/<\/label>\s*\s*]+>\s*Outdoor/i)); --fcc-editable-region-- + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md index 53ba308fdb5..0201082643d 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md @@ -57,6 +57,7 @@ assert.isFalse(includesH1); --fcc-editable-region-- +

    CatPhotoApp

    Cat Photos

    @@ -64,6 +65,7 @@ assert.isFalse(includesH1);

    Click here to view more cat photos.

    A cute orange cat lying on its back.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md index 554cb25d523..d0910f5ee18 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md @@ -73,6 +73,7 @@ assert(foundElems.length === 2);

    Click here to view more cat photos.

    A cute orange cat lying on its back. + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md index 5c4188f7074..36b82ee49d4 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md @@ -90,6 +90,7 @@ assert($('main > section')[2].children.length === 0);
    Cats hate other cats.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md index 2db69460b8a..d13595c874b 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md @@ -90,6 +90,7 @@ assert(extraSpacesRemoved.match(/Is your cat an indoor or outdoor cat\??$/i)); --fcc-editable-region--
    +
    diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md index 2edb0361dba..e34e95d4b61 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md @@ -116,9 +116,10 @@ assert(fieldsetChildren[0].length > fieldsetChildren[1].length); + +--fcc-editable-region-- ---fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md index 5c9d7014747..825fa08771b 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md @@ -101,6 +101,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md index f812d81e4c2..6fc6b00ac64 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md @@ -13,7 +13,7 @@ You can set browser behavior by adding self-closing `meta` elements in the `head ``` -Tell the browser to parse the markdown into multiple languages by creating a `meta` element as a child of the `head` element. 將其 `charset` 屬性設置爲 `UTF-8`。 +Tell the browser to parse the markup into multiple languages by creating a `meta` element as a child of the `head` element. 將其 `charset` 屬性設置爲 `UTF-8`。 # --hints-- @@ -45,6 +45,7 @@ assert.notMatch(code, /<\/meta\s*>?/i); --fcc-editable-region-- + CatPhotoApp --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md index 8d8c7d8eb11..11adfc4793f 100644 --- a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md +++ b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md @@ -20,10 +20,12 @@ dashedName: implement-map-on-a-prototype # --hints-- -`new_s` 应该等于 `[46, 130, 196, 10]`。 +`[23, 65, 98, 5, 13].myMap(item => item * 2)` should equal `[46, 130, 196, 10, 26]`. ```js -assert(JSON.stringify(new_s) === JSON.stringify([46, 130, 196, 10])); +const _test_s = [46, 130, 196, 10, 13]; +const _callback = item => item * 2; +assert(JSON.stringify(_test_s.map(_callback)) === JSON.stringify(_test_s.myMap(_callback))); ``` 不能使用 `map` 方法。 @@ -37,9 +39,6 @@ assert(!code.match(/\.?[\s\S]*?map/g)); ## --seed-contents-- ```js -// The global variable -const s = [23, 65, 98, 5]; - Array.prototype.myMap = function(callback) { const newArray = []; // Only change code below this line @@ -47,17 +46,11 @@ Array.prototype.myMap = function(callback) { // Only change code above this line return newArray; }; - -const new_s = s.myMap(function(item) { - return item * 2; -}); ``` # --solutions-- ```js -const s = [23, 65, 98, 5]; - Array.prototype.myMap = function(callback) { const newArray = []; for (const elem of this) { @@ -66,7 +59,7 @@ Array.prototype.myMap = function(callback) { return newArray; }; -const new_s = s.myMap(function(item) { - return item * 2; -}); +// Test case +const s = [23, 65, 98, 5]; +const doubled_s = s.myMap(item => item * 2); ``` diff --git a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md index c778c603199..43180106a19 100644 --- a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md +++ b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md @@ -16,10 +16,12 @@ dashedName: implement-the-filter-method-on-a-prototype # --hints-- -`new_s` 应该等于 `[23, 65, 5]`。 +`[23, 65, 98, 5, 13].myFilter(item => item % 2)` should equal `[23, 65, 5, 13]`. ```js -assert(JSON.stringify(new_s) === JSON.stringify([23, 65, 5])); +const _test_s = [23, 65, 98, 5, 13]; +const _callback = item => item % 2; +assert(JSON.stringify(_test_s.filter(_callback)) === JSON.stringify(_test_s.myFilter(_callback))); ``` 不应该使用 `filter` 方法。 @@ -33,26 +35,18 @@ assert(!code.match(/\.?[\s\S]*?filter/g)); ## --seed-contents-- ```js -// The global variable -const s = [23, 65, 98, 5]; - Array.prototype.myFilter = function(callback) { - // Only change code below this line const newArray = []; + // Only change code below this line + // Only change code above this line return newArray; }; - -const new_s = s.myFilter(function(item) { - return item % 2 === 1; -}); ``` # --solutions-- ```js -const s = [23, 65, 98, 5]; - Array.prototype.myFilter = function(callback) { const newArray = []; for (let i = 0; i < this.length; i++) { @@ -61,7 +55,7 @@ Array.prototype.myFilter = function(callback) { return newArray; }; -const new_s = s.myFilter(function(item) { - return item % 2 === 1; -}); +// Test case +const s = [23, 65, 98, 5]; +const odd_s = s.myFilter(item => item % 2 === 1); ``` diff --git a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-projects/personal-library.md b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-projects/personal-library.md index fd68940d56e..e35b0fe7e0b 100644 --- a/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-projects/personal-library.md +++ b/curriculum/challenges/chinese/06-quality-assurance/quality-assurance-projects/personal-library.md @@ -170,7 +170,7 @@ async (getUserInput) => { }; ``` -可以向 `/api/books` 发送 DELETE 请求来删除数据库中的所有书籍。 如果成功,返回的响应将是字符串 `'complete delete successful`。 +可以向 `/api/books` 发送 DELETE 请求来删除数据库中的所有书籍。 The returned response will be the string `complete delete successful` if successful. ```js async (getUserInput) => { diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md index 9a9bc2d5cb8..5dbde33c07a 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md @@ -19,7 +19,7 @@ dashedName: step-95 assert.notEmpty(new __helpers.CSSHelp(document).getCSSRules('keyframes')); ``` -`@keyframes` 规则的 `name` 应该是 `--fcc-expected--`,而不是 `--fcc-actual--`。 +You should give the `@keyframes` rule a name of `--fcc-expected--`, but found `--fcc-actual--`. ```js assert.equal(new __helpers.CSSHelp(document).getCSSRules('keyframes')?.[0]?.name, 'wave'); diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md index 87c055b3789..11bf59574c9 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md @@ -77,6 +77,7 @@ assert(collection.indexOf('H1') < collection.indexOf('H2')); --fcc-editable-region--

    CatPhotoApp

    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md index 4a8d7b1455a..8ad531616af 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md @@ -53,6 +53,7 @@ assert(collection.indexOf('H2') < collection.indexOf('P'));

    CatPhotoApp

    --fcc-editable-region--

    Cat Photos

    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md index fae607a449f..ff019d07269 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md @@ -63,6 +63,7 @@ assert(

    Cat Photos

    --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md index 73595df383c..b475ffcb878 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md @@ -25,7 +25,7 @@ assert(document.querySelector('main')); assert(code.match(/<\/main\>/)); ``` -你的 `main` 元素的开始标签应该在 `body` 元素的下方。 你把顺序写错了。 +Your `main` element's opening tag should be below the `body` element's opening tag. 你把顺序写错了。 ```js const main = document.querySelector('main'); @@ -60,10 +60,12 @@ assert( --fcc-editable-region-- +

    CatPhotoApp

    Cat Photos

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md index 01409f81b8f..9fa776a64ad 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md @@ -53,6 +53,7 @@ assert(collection.indexOf('P') < collection.indexOf('IMG')); --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md index 34880ce53a3..9e2386d8842 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md @@ -70,6 +70,7 @@ assert( --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- A cute orange cat lying on its back. diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md index cde3be5c167..503bc511030 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md @@ -66,6 +66,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md index 5c5c5a4e67f..874eb1d866b 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md @@ -75,6 +75,7 @@ assert( --fcc-editable-region--

    Cat Lists

    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md index f609fc6e898..23be10f5f6d 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md @@ -49,6 +49,7 @@ assert(secondSectionLastElemNode.nodeName === 'UL'); --fcc-editable-region--

    Cat Lists

    Things cats love:

    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md index be9320ab574..a0476bc9b46 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md @@ -69,6 +69,7 @@ assert(

    Things cats love:

    --fcc-editable-region--
      +
    --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md index 783ad2ad48c..3ddf7688e74 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md @@ -85,6 +85,7 @@ assert(!/\laser pointers
  • lasagna
  • + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md index 7aab1cbd55f..411e2708a7b 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md @@ -65,7 +65,9 @@ assert(
  • lasagna
  • --fcc-editable-region-- + A slice of lasagna on a plate. + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md index 2ed025ffda8..1d423215c49 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md @@ -88,6 +88,7 @@ assert( --fcc-editable-region--
    A slice of lasagna on a plate. +
    --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md index 4f0cb883c8c..84aa3881b7b 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md @@ -72,6 +72,7 @@ assert( A slice of lasagna on a plate.
    Cats love lasagna.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md index 001d41b5bd5..f1eb9229786 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md @@ -84,6 +84,7 @@ assert.deepStrictEqual( --fcc-editable-region--

    Top 3 things cats hate:

    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md index 7baeb9e4511..1bf5569adf1 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md @@ -63,6 +63,7 @@ assert($('main > section')[1].lastElementChild.nodeName === 'FIGURE');
  • thunder
  • other cats
  • + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md index e5761d9f2f5..6ec4be4567f 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md @@ -85,7 +85,9 @@ assert(
    Five cats looking around a field. --fcc-editable-region-- +
    Cats hate other cats.
    + --fcc-editable-region--
    diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md index 8799df80a7b..823aa88bcbb 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md @@ -96,6 +96,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md index 1342e0378a9..c90104b4055 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md @@ -79,6 +79,7 @@ assert($('form')[0].innerHTML.trim().length === 0);
    --fcc-editable-region--

    Cat Form

    + --fcc-editable-region--
    diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md index b733129eae0..5212bea2b4d 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md @@ -99,6 +99,7 @@ assert(

    Cat Form

    --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md index 6f28e8e58c8..9da15d45906 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md @@ -83,6 +83,7 @@ assert(collection.indexOf('INPUT') < collection.indexOf('BUTTON'));
    --fcc-editable-region-- + --fcc-editable-region--
    diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md index 736d5f77dae..fb0ae8e8bc3 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md @@ -88,8 +88,10 @@ assert(

    Cat Form

    --fcc-editable-region-- + + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md index a98407d3c46..d93b2608d18 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md @@ -117,6 +117,7 @@ assert(
    --fcc-editable-region-- What's your cat's personality? + --fcc-editable-region--
    diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md index 230c5191cb5..92849120676 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md @@ -95,8 +95,9 @@ assert(document.querySelector('main').nextElementSibling.nodeName === 'FOOTER'); --fcc-editable-region-- + - --fcc-editable-region-- + ``` diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md index 8f20b5dab07..e8c0d2ea24c 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md @@ -96,6 +96,7 @@ assert(extraSpacesRemoved.match(/No Copyright - freeCodeCamp\.org$/i)); --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md index 8d31e8ef89c..9577239bbca 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md @@ -9,7 +9,7 @@ dashedName: step-65 请注意,到目前为止你添加到页面的所有内容都在 `body` 元素内。 应该呈现到页面的所有页面内容元素都放在 `body` 元素中。 但是,其他重要信息位于 `head` 元素中。 -在 `body` 元素上方添加一个 `head` 元素。 +Add a `head` element above the `body` element. # --hints-- @@ -43,9 +43,11 @@ assert(noSpaces.match(/\<\/head\>\/)); ## --seed-contents-- ```html - --fcc-editable-region-- + + +--fcc-editable-region--

    CatPhotoApp

    @@ -102,7 +104,6 @@ assert(noSpaces.match(/\<\/head\>\/));

    ---fcc-editable-region-- ``` diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md index 3a9becf3cc3..30b78ce6049 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md @@ -48,6 +48,7 @@ assert(document.title && document.title.toLowerCase() === 'catphotoapp'); --fcc-editable-region-- + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md index 71832551a28..ba63b6ca844 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md @@ -32,11 +32,12 @@ assert(noSpaces.match(/^\<\!DOCTYPEhtml\>\ +--fcc-editable-region-- CatPhotoApp ---fcc-editable-region--

    CatPhotoApp

    diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md index 1bfbc9cd1f6..7ef97881976 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md @@ -89,6 +89,7 @@ assert(!/\ --fcc-editable-region--
    +
    --fcc-editable-region--
    diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md index 7aac90ae0e2..fecb73df52c 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md @@ -7,7 +7,7 @@ dashedName: step-30 # --description-- -为了提高你刚刚添加的图像的可访问性,添加具有以下文本的 `alt` 属性。 +To improve accessibility of the image you added, add an `alt` attribute with the text: `Five cats looking around a field.` diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md index f08c53674a6..cb2fc338ef9 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md @@ -110,11 +110,12 @@ assert(
  • thunder
  • other cats
  • +--fcc-editable-region--
    ---fcc-editable-region-- Five cats looking around a field. ---fcc-editable-region-- +
    +--fcc-editable-region--
    diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md index c9474b89a43..7b0dca2fe99 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md @@ -124,6 +124,7 @@ assert(code.match(/<\/label>\s*\s*]+>\s*Outdoor/i)); --fcc-editable-region-- + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md index 7bed17251d9..777edcc3acf 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md @@ -57,6 +57,7 @@ assert.isFalse(includesH1); --fcc-editable-region-- +

    CatPhotoApp

    Cat Photos

    @@ -64,6 +65,7 @@ assert.isFalse(includesH1);

    Click here to view more cat photos.

    A cute orange cat lying on its back.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md index 48593e1e726..650182b035f 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md @@ -73,6 +73,7 @@ assert(foundElems.length === 2);

    Click here to view more cat photos.

    A cute orange cat lying on its back. + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md index 8088805f9af..84cf65d6c16 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md @@ -90,6 +90,7 @@ assert($('main > section')[2].children.length === 0);
    Cats hate other cats.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md index b6080091618..169a4fd40bd 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md @@ -90,6 +90,7 @@ assert(extraSpacesRemoved.match(/Is your cat an indoor or outdoor cat\??$/i)); --fcc-editable-region--
    +
    diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md index bbdc8299b52..7a29c74786b 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md @@ -116,9 +116,10 @@ assert(fieldsetChildren[0].length > fieldsetChildren[1].length); + +--fcc-editable-region-- ---fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md index cc80427139d..2fac9299268 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md @@ -101,6 +101,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md index 2d2cc217ab6..2bcc8c0accb 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md @@ -13,7 +13,7 @@ You can set browser behavior by adding self-closing `meta` elements in the `head ``` -Tell the browser to parse the markdown into multiple languages by creating a `meta` element as a child of the `head` element. 将其 `charset` 属性设置为 `UTF-8`。 +Tell the browser to parse the markup into multiple languages by creating a `meta` element as a child of the `head` element. 将其 `charset` 属性设置为 `UTF-8`。 # --hints-- @@ -45,6 +45,7 @@ assert.notMatch(code, /<\/meta\s*>?/i); --fcc-editable-region-- + CatPhotoApp --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md b/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md index 949663b2e80..e1b864a6278 100644 --- a/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md +++ b/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md @@ -20,10 +20,12 @@ Escribe tu propio `Array.prototype.myMap()`, el cual debe comportarse exactament # --hints-- -`new_s` debe ser igual a `[46, 130, 196, 10]`. +`[23, 65, 98, 5, 13].myMap(item => item * 2)` should equal `[46, 130, 196, 10, 26]`. ```js -assert(JSON.stringify(new_s) === JSON.stringify([46, 130, 196, 10])); +const _test_s = [46, 130, 196, 10, 13]; +const _callback = item => item * 2; +assert(JSON.stringify(_test_s.map(_callback)) === JSON.stringify(_test_s.myMap(_callback))); ``` Tu código no debe utilizar el método `map`. @@ -37,9 +39,6 @@ assert(!code.match(/\.?[\s\S]*?map/g)); ## --seed-contents-- ```js -// The global variable -const s = [23, 65, 98, 5]; - Array.prototype.myMap = function(callback) { const newArray = []; // Only change code below this line @@ -47,17 +46,11 @@ Array.prototype.myMap = function(callback) { // Only change code above this line return newArray; }; - -const new_s = s.myMap(function(item) { - return item * 2; -}); ``` # --solutions-- ```js -const s = [23, 65, 98, 5]; - Array.prototype.myMap = function(callback) { const newArray = []; for (const elem of this) { @@ -66,7 +59,7 @@ Array.prototype.myMap = function(callback) { return newArray; }; -const new_s = s.myMap(function(item) { - return item * 2; -}); +// Test case +const s = [23, 65, 98, 5]; +const doubled_s = s.myMap(item => item * 2); ``` diff --git a/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md b/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md index 4d8ff981d3b..058fca8aadf 100644 --- a/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md +++ b/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md @@ -16,10 +16,12 @@ Escribe tu propio `Array.prototype.myFilter()`, que debe comportarse exactamente # --hints-- -`new_s` debe ser igual a `[23, 65, 5]`. +`[23, 65, 98, 5, 13].myFilter(item => item % 2)` should equal `[23, 65, 5, 13]`. ```js -assert(JSON.stringify(new_s) === JSON.stringify([23, 65, 5])); +const _test_s = [23, 65, 98, 5, 13]; +const _callback = item => item % 2; +assert(JSON.stringify(_test_s.filter(_callback)) === JSON.stringify(_test_s.myFilter(_callback))); ``` Tu código no debe utilizar el método `filter`. @@ -33,26 +35,18 @@ assert(!code.match(/\.?[\s\S]*?filter/g)); ## --seed-contents-- ```js -// The global variable -const s = [23, 65, 98, 5]; - Array.prototype.myFilter = function(callback) { - // Only change code below this line const newArray = []; + // Only change code below this line + // Only change code above this line return newArray; }; - -const new_s = s.myFilter(function(item) { - return item % 2 === 1; -}); ``` # --solutions-- ```js -const s = [23, 65, 98, 5]; - Array.prototype.myFilter = function(callback) { const newArray = []; for (let i = 0; i < this.length; i++) { @@ -61,7 +55,7 @@ Array.prototype.myFilter = function(callback) { return newArray; }; -const new_s = s.myFilter(function(item) { - return item % 2 === 1; -}); +// Test case +const s = [23, 65, 98, 5]; +const odd_s = s.myFilter(item => item % 2 === 1); ``` diff --git a/curriculum/challenges/espanol/06-quality-assurance/quality-assurance-projects/personal-library.md b/curriculum/challenges/espanol/06-quality-assurance/quality-assurance-projects/personal-library.md index f9ea7fd3e47..61d8e70c099 100644 --- a/curriculum/challenges/espanol/06-quality-assurance/quality-assurance-projects/personal-library.md +++ b/curriculum/challenges/espanol/06-quality-assurance/quality-assurance-projects/personal-library.md @@ -170,7 +170,7 @@ async (getUserInput) => { }; ``` -Puedes enviar una petición de DELETE a `/api/books` para eliminar todos los libros de la base de datos. La respuesta devuelta será la cadena `'complete delete successful` si tiene éxito. +Puedes enviar una petición de DELETE a `/api/books` para eliminar todos los libros de la base de datos. The returned response will be the string `complete delete successful` if successful. ```js async (getUserInput) => { diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md index 92d8242db4e..848fba6af80 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md @@ -19,7 +19,7 @@ You should defined a new `@keyframes` rule. assert.notEmpty(new __helpers.CSSHelp(document).getCSSRules('keyframes')); ``` -You should give the `@keyframes` rule a `name` of `--fcc-expected--`, but found `--fcc-actual--`. +You should give the `@keyframes` rule a name of `--fcc-expected--`, but found `--fcc-actual--`. ```js assert.equal(new __helpers.CSSHelp(document).getCSSRules('keyframes')?.[0]?.name, 'wave'); diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md index 7c9562a401c..0e93be5d52f 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md @@ -77,6 +77,7 @@ assert(collection.indexOf('H1') < collection.indexOf('H2')); --fcc-editable-region--

    CatPhotoApp

    + --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md index 1bf5c22a777..52575378378 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md @@ -53,6 +53,7 @@ assert(collection.indexOf('H2') < collection.indexOf('P'));

    CatPhotoApp

    --fcc-editable-region--

    Cat Photos

    + --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md index f75d8c52977..f886af05a41 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md @@ -63,6 +63,7 @@ assert(

    Cat Photos

    --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md index a17f2eded4a..197ef319956 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md @@ -25,7 +25,7 @@ Tu elemento `main` debe tener una etiqueta de cierre. Las etiquetas de cierre ti assert(code.match(/<\/main\>/)); ``` -La etiqueta de apertura del elemento `main` debe estar por debajo del elemento `body`. Los tienes en el orden incorrecto. +Your `main` element's opening tag should be below the `body` element's opening tag. Los tienes en el orden incorrecto. ```js const main = document.querySelector('main'); @@ -60,10 +60,12 @@ assert( --fcc-editable-region-- +

    CatPhotoApp

    Cat Photos

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md index 4f55d52acc1..682bd152e8c 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md @@ -53,6 +53,7 @@ assert(collection.indexOf('P') < collection.indexOf('IMG')); --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md index d85834450a2..d606524ed3e 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md @@ -70,6 +70,7 @@ assert( --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- A cute orange cat lying on its back. diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md index 97c663ec59f..eb647eb3fbb 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md @@ -66,6 +66,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md index d1c727332d3..21d0f896ebd 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md @@ -75,6 +75,7 @@ assert( --fcc-editable-region--

    Cat Lists

    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md index d6f96de78d9..df608308227 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md @@ -49,6 +49,7 @@ assert(secondSectionLastElemNode.nodeName === 'UL'); --fcc-editable-region--

    Cat Lists

    Things cats love:

    + --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md index 059d78aa06a..c428c2d5428 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md @@ -69,6 +69,7 @@ assert(

    Things cats love:

    --fcc-editable-region--
      +
    --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md index d4d3680fa1f..e7f62b459b7 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md @@ -85,6 +85,7 @@ assert(!/\laser pointers
  • lasagna
  • + --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md index 31e16fdc04b..3615568c9d9 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md @@ -65,7 +65,9 @@ assert(
  • lasagna
  • --fcc-editable-region-- + A slice of lasagna on a plate. + --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md index 2304ef1f722..e76418ee6c5 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md @@ -88,6 +88,7 @@ assert( --fcc-editable-region--
    A slice of lasagna on a plate. +
    --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md index 647f9965183..b41e76ac9a5 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md @@ -72,6 +72,7 @@ assert( A slice of lasagna on a plate.
    Cats love lasagna.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md index 235dcbe28cf..13b08c60ab0 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md @@ -84,6 +84,7 @@ assert.deepStrictEqual( --fcc-editable-region--

    Top 3 things cats hate:

    + --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md index 906e2359b38..7991cd6d6fd 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md @@ -63,6 +63,7 @@ assert($('main > section')[1].lastElementChild.nodeName === 'FIGURE');
  • thunder
  • other cats
  • + --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md index bf543511769..985330e6592 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md @@ -85,7 +85,9 @@ assert(
    Five cats looking around a field. --fcc-editable-region-- +
    Cats hate other cats.
    + --fcc-editable-region--
    diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md index f90fa76e39f..54bb3b3bf59 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md @@ -96,6 +96,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md index 6723c479eca..3ec12a61dbf 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md @@ -79,6 +79,7 @@ assert($('form')[0].innerHTML.trim().length === 0);
    --fcc-editable-region--

    Cat Form

    + --fcc-editable-region--
    diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md index 2f0e3d7ab93..fd1881820dd 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md @@ -99,6 +99,7 @@ assert(

    Cat Form

    --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md index 053707a9f58..b353da63ff0 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md @@ -83,6 +83,7 @@ assert(collection.indexOf('INPUT') < collection.indexOf('BUTTON'));
    --fcc-editable-region-- + --fcc-editable-region--
    diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md index bff1d1e1a4e..4e5297e71d1 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md @@ -88,8 +88,10 @@ assert(

    Cat Form

    --fcc-editable-region-- + + --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md index 7153f535590..df49183d00b 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md @@ -117,6 +117,7 @@ assert(
    --fcc-editable-region-- What's your cat's personality? + --fcc-editable-region--
    diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md index a2375c12066..a2dbb80edea 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md @@ -95,8 +95,9 @@ assert(document.querySelector('main').nextElementSibling.nodeName === 'FOOTER'); --fcc-editable-region-- + - --fcc-editable-region-- + ``` diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md index a6afd464941..b7bbd4c1e37 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md @@ -96,6 +96,7 @@ assert(extraSpacesRemoved.match(/No Copyright - freeCodeCamp\.org$/i)); --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md index f35ae570e14..9cbf04ef74e 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md @@ -9,7 +9,7 @@ dashedName: step-65 Puedes notar que todo lo que has añadido hasta ahora, está dentro del elemento `body`. Todos los elementos que deben ser renderizados o mostrados en la página, deben ir dentro del elemento `body`. Sin embargo, otro tipo información que también es importante va dentro del elemento `head`. -Añade un elemento `head` justo arriba del elemento `body`. +Add a `head` element above the `body` element. # --hints-- @@ -43,9 +43,11 @@ assert(noSpaces.match(/\<\/head\>\/)); ## --seed-contents-- ```html - --fcc-editable-region-- + + +--fcc-editable-region--

    CatPhotoApp

    @@ -102,7 +104,6 @@ assert(noSpaces.match(/\<\/head\>\/));

    ---fcc-editable-region-- ``` diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md index a51f253df6e..e78c43f7454 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md @@ -48,6 +48,7 @@ assert(document.title && document.title.toLowerCase() === 'catphotoapp'); --fcc-editable-region-- + --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md index 3caaadd0a4d..f5dae94284c 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md @@ -32,11 +32,12 @@ assert(noSpaces.match(/^\<\!DOCTYPEhtml\>\ +--fcc-editable-region-- CatPhotoApp ---fcc-editable-region--

    CatPhotoApp

    diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md index 844747ef47f..c6252b26a82 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md @@ -89,6 +89,7 @@ assert(!/\ --fcc-editable-region--
    +
    --fcc-editable-region--
    diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md index 08877410e7b..d98d798082a 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md @@ -7,7 +7,7 @@ dashedName: step-30 # --description-- -Para mejorar la accesibilidad de la imagen que acabas de añadir, añade un atributo `alt` con el texto: +To improve accessibility of the image you added, add an `alt` attribute with the text: `Five cats looking around a field.` diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md index 3e267885929..9087ac8ba95 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md @@ -110,11 +110,12 @@ assert(
  • thunder
  • other cats
  • +--fcc-editable-region--
    ---fcc-editable-region-- Five cats looking around a field. ---fcc-editable-region-- +
    +--fcc-editable-region--
    diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md index fc6e2a4a465..4a181f86e16 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md @@ -124,6 +124,7 @@ assert(code.match(/<\/label>\s*\s*]+>\s*Outdoor/i)); --fcc-editable-region-- + --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md index 9ff0b26cf7a..086796dd2f7 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md @@ -57,6 +57,7 @@ assert.isFalse(includesH1); --fcc-editable-region-- +

    CatPhotoApp

    Cat Photos

    @@ -64,6 +65,7 @@ assert.isFalse(includesH1);

    Click here to view more cat photos.

    A cute orange cat lying on its back.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md index 2b37c740611..2a73ffb6d79 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md @@ -73,6 +73,7 @@ assert(foundElems.length === 2);

    Click here to view more cat photos.

    A cute orange cat lying on its back. + --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md index 5c192c7dee4..25c8fd31e4f 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md @@ -90,6 +90,7 @@ assert($('main > section')[2].children.length === 0);
    Cats hate other cats.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md index 25a70e63a6b..4f431196cb3 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md @@ -90,6 +90,7 @@ assert(extraSpacesRemoved.match(/Is your cat an indoor or outdoor cat\??$/i)); --fcc-editable-region--
    +
    diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md index 1c3abba8efc..4d423754905 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md @@ -116,9 +116,10 @@ assert(fieldsetChildren[0].length > fieldsetChildren[1].length); + +--fcc-editable-region-- ---fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md index 25d3fa8d7d2..e841f450526 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md @@ -101,6 +101,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md index 5811d62ac03..1f7ffe908ce 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md @@ -13,7 +13,7 @@ You can set browser behavior by adding self-closing `meta` elements in the `head ``` -Tell the browser to parse the markdown into multiple languages by creating a `meta` element as a child of the `head` element. Establece su atributo `charset` en `UTF-8`. +Tell the browser to parse the markup into multiple languages by creating a `meta` element as a child of the `head` element. Establece su atributo `charset` en `UTF-8`. # --hints-- @@ -45,6 +45,7 @@ assert.notMatch(code, /<\/meta\s*>?/i); --fcc-editable-region-- + CatPhotoApp --fcc-editable-region-- diff --git a/curriculum/challenges/german/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md b/curriculum/challenges/german/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md index f54b946b509..48195835b76 100644 --- a/curriculum/challenges/german/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md +++ b/curriculum/challenges/german/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md @@ -20,10 +20,12 @@ Schreibe dein eigenes `Array.prototype.myMap()`, welches sich genau wie `Array.p # --hints-- -`new_s` sollte `[46, 130, 196, 10]` entsprechen. +`[23, 65, 98, 5, 13].myMap(item => item * 2)` should equal `[46, 130, 196, 10, 26]`. ```js -assert(JSON.stringify(new_s) === JSON.stringify([46, 130, 196, 10])); +const _test_s = [46, 130, 196, 10, 13]; +const _callback = item => item * 2; +assert(JSON.stringify(_test_s.map(_callback)) === JSON.stringify(_test_s.myMap(_callback))); ``` Dein Code sollte nicht die `map` Methode verwenden. @@ -37,9 +39,6 @@ assert(!code.match(/\.?[\s\S]*?map/g)); ## --seed-contents-- ```js -// The global variable -const s = [23, 65, 98, 5]; - Array.prototype.myMap = function(callback) { const newArray = []; // Only change code below this line @@ -47,17 +46,11 @@ Array.prototype.myMap = function(callback) { // Only change code above this line return newArray; }; - -const new_s = s.myMap(function(item) { - return item * 2; -}); ``` # --solutions-- ```js -const s = [23, 65, 98, 5]; - Array.prototype.myMap = function(callback) { const newArray = []; for (const elem of this) { @@ -66,7 +59,7 @@ Array.prototype.myMap = function(callback) { return newArray; }; -const new_s = s.myMap(function(item) { - return item * 2; -}); +// Test case +const s = [23, 65, 98, 5]; +const doubled_s = s.myMap(item => item * 2); ``` diff --git a/curriculum/challenges/german/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md b/curriculum/challenges/german/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md index a9085a8e98b..ed69c618480 100644 --- a/curriculum/challenges/german/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md +++ b/curriculum/challenges/german/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md @@ -16,10 +16,12 @@ Schreibe deinen eigenen `Array.prototype.myFilter()`, der sich genau wie `Array. # --hints-- -`new_s` sollte `[23, 65, 5, ]` entsprechen. +`[23, 65, 98, 5, 13].myFilter(item => item % 2)` should equal `[23, 65, 5, 13]`. ```js -assert(JSON.stringify(new_s) === JSON.stringify([23, 65, 5])); +const _test_s = [23, 65, 98, 5, 13]; +const _callback = item => item % 2; +assert(JSON.stringify(_test_s.filter(_callback)) === JSON.stringify(_test_s.myFilter(_callback))); ``` Dein Code sollte nicht die `filter` Methode verwenden. @@ -33,26 +35,18 @@ assert(!code.match(/\.?[\s\S]*?filter/g)); ## --seed-contents-- ```js -// The global variable -const s = [23, 65, 98, 5]; - Array.prototype.myFilter = function(callback) { - // Only change code below this line const newArray = []; + // Only change code below this line + // Only change code above this line return newArray; }; - -const new_s = s.myFilter(function(item) { - return item % 2 === 1; -}); ``` # --solutions-- ```js -const s = [23, 65, 98, 5]; - Array.prototype.myFilter = function(callback) { const newArray = []; for (let i = 0; i < this.length; i++) { @@ -61,7 +55,7 @@ Array.prototype.myFilter = function(callback) { return newArray; }; -const new_s = s.myFilter(function(item) { - return item % 2 === 1; -}); +// Test case +const s = [23, 65, 98, 5]; +const odd_s = s.myFilter(item => item % 2 === 1); ``` diff --git a/curriculum/challenges/german/05-back-end-development-and-apis/managing-packages-with-npm/add-a-license-to-your-package.json.md b/curriculum/challenges/german/05-back-end-development-and-apis/managing-packages-with-npm/add-a-license-to-your-package.json.md index bc2bf75ea28..bf6017c1f5a 100644 --- a/curriculum/challenges/german/05-back-end-development-and-apis/managing-packages-with-npm/add-a-license-to-your-package.json.md +++ b/curriculum/challenges/german/05-back-end-development-and-apis/managing-packages-with-npm/add-a-license-to-your-package.json.md @@ -8,7 +8,7 @@ dashedName: add-a-license-to-your-package-json # --description-- -The `license` field is where you inform users of what they are allowed to do with your project. +Im Feld `license` teilst du den Nutzern mit, was sie mit deinem Projekt machen dürfen. Einige gängige Lizenzen für Open-Source-Projekte sind MIT und BSD. Lizenzinformation ist nicht erforderlich, und die Urheberrechtsgesetze der meisten Länder geben dir standardmäßig Eigentumsrechte an deiner Kreation. However, it’s always a good practice to explicitly state what users can and can’t do. Hier ist ein Beispiel für das Lizenzfeld: diff --git a/curriculum/challenges/german/05-back-end-development-and-apis/mongodb-and-mongoose/create-a-model.md b/curriculum/challenges/german/05-back-end-development-and-apis/mongodb-and-mongoose/create-a-model.md index 443db8e5930..88cc3d71011 100644 --- a/curriculum/challenges/german/05-back-end-development-and-apis/mongodb-and-mongoose/create-a-model.md +++ b/curriculum/challenges/german/05-back-end-development-and-apis/mongodb-and-mongoose/create-a-model.md @@ -1,6 +1,6 @@ --- id: 587d7fb6367417b2b2512c07 -title: Create a Model +title: Erstelle ein Modell challengeType: 2 forumTopicId: 301535 dashedName: create-a-model @@ -8,11 +8,11 @@ dashedName: create-a-model # --description-- -**C**RUD Part I - CREATE +**C**RUD Part I - ERSTELLEN -First of all, we need a Schema. Each schema maps to a MongoDB collection. It defines the shape of the documents within that collection. Schemas are building blocks for Models. They can be nested to create complex models, but in this case, we'll keep things simple. A model allows you to create instances of your objects, called documents. +First of all, we need a Schema. Jedes Schema wird einer MongoDB-Sammlung zugeordnet. It defines the shape of the documents within that collection. Schemas are building blocks for Models. They can be nested to create complex models, but in this case, we'll keep things simple. A model allows you to create instances of your objects, called documents. -Replit is a real server, and in real servers, the interactions with the database happen in handler functions. These functions are executed when some event happens (e.g. someone hits an endpoint on your API). We’ll follow the same approach in these exercises. The `done()` function is a callback that tells us that we can proceed after completing an asynchronous operation such as inserting, searching, updating, or deleting. It's following the Node convention, and should be called as `done(null, data)` on success, or `done(err)` on error. +Replit is a real server, and in real servers, the interactions with the database happen in handler functions. These functions are executed when some event happens (e.g. someone hits an endpoint on your API). In diesen Übungen werden wir denselben Ansatz verfolgen. The `done()` function is a callback that tells us that we can proceed after completing an asynchronous operation such as inserting, searching, updating, or deleting. It's following the Node convention, and should be called as `done(null, data)` on success, or `done(err)` on error. Warning - When interacting with remote services, errors may occur! diff --git a/curriculum/challenges/german/05-back-end-development-and-apis/mongodb-and-mongoose/install-and-set-up-mongoose.md b/curriculum/challenges/german/05-back-end-development-and-apis/mongodb-and-mongoose/install-and-set-up-mongoose.md index a93e12e98ea..a16e2bd5149 100644 --- a/curriculum/challenges/german/05-back-end-development-and-apis/mongodb-and-mongoose/install-and-set-up-mongoose.md +++ b/curriculum/challenges/german/05-back-end-development-and-apis/mongodb-and-mongoose/install-and-set-up-mongoose.md @@ -34,7 +34,7 @@ mongoose.connect(, { useNewUrlParser: true, useUnifiedTopology: true } # --hints-- -"mongoose version ^5.11.15" dependency should be in package.json +Abhängigkeit "mongoose Version ^5.11.15" sollte sich in package.json befinden ```js (getUserInput) => @@ -54,7 +54,7 @@ mongoose.connect(, { useNewUrlParser: true, useUnifiedTopology: true } ); ``` -"mongoose" should be connected to a database +"mongoose" sollte mit einer Datenbank verbunden sein ```js (getUserInput) => diff --git a/curriculum/challenges/german/06-quality-assurance/advanced-node-and-express/authentication-with-socket.io.md b/curriculum/challenges/german/06-quality-assurance/advanced-node-and-express/authentication-with-socket.io.md index 0ef1beed771..76aea371ecf 100644 --- a/curriculum/challenges/german/06-quality-assurance/advanced-node-and-express/authentication-with-socket.io.md +++ b/curriculum/challenges/german/06-quality-assurance/advanced-node-and-express/authentication-with-socket.io.md @@ -1,6 +1,6 @@ --- id: 589fc831f9fc0f352b528e77 -title: Authentication with Socket.IO +title: Authentifizierung mit Socket.IO challengeType: 2 forumTopicId: 301548 dashedName: authentication-with-socket-io @@ -10,7 +10,7 @@ dashedName: authentication-with-socket-io Currently, you cannot determine who is connected to your web socket. While `req.user` contains the user object, that's only when your user interacts with the web server, and with web sockets you have no `req` (request) and therefore no user data. One way to solve the problem of knowing who is connected to your web socket is by parsing and decoding the cookie that contains the passport session then deserializing it to obtain the user object. Luckily, there is a package on NPM just for this that turns a once complex task into something simple! -`passport.socketio@~3.7.0`, `connect-mongo@~3.2.0`, and `cookie-parser@~1.4.5` have already been added as dependencies. Require them as `passportSocketIo`, `MongoStore`, and `cookieParser` respectively. Also, we need to initialize a new memory store, from `express-session` which we previously required. It should look like this: +`passport.socketio@~3.7.0`, `connect-mongo@~3.2.0` und `cookie-parser@~1.4.5` wurden bereits als Abhängigkeiten hinzugefügt. Require them as `passportSocketIo`, `MongoStore`, and `cookieParser` respectively. Also, we need to initialize a new memory store, from `express-session` which we previously required. It should look like this: ```js const MongoStore = require('connect-mongo')(session); @@ -69,7 +69,7 @@ Submit your page when you think you've got it right. If you're running into erro # --hints-- -`passport.socketio` should be a dependency. +`passport.socketio` sollte eine Abhängigkeit sein. ```js async (getUserInput) => { @@ -84,7 +84,7 @@ async (getUserInput) => { } ``` -`cookie-parser` should be a dependency. +`cookie-parser` sollte eine Abhängigkeit sein. ```js async (getUserInput) => { @@ -99,7 +99,7 @@ async (getUserInput) => { } ``` -passportSocketIo should be properly required. +passportSocketIo sollte ordnungsgemäß angefordert werden. ```js async (getUserInput) => { diff --git a/curriculum/challenges/german/06-quality-assurance/quality-assurance-projects/personal-library.md b/curriculum/challenges/german/06-quality-assurance/quality-assurance-projects/personal-library.md index 0146c951c84..bf559c708a8 100644 --- a/curriculum/challenges/german/06-quality-assurance/quality-assurance-projects/personal-library.md +++ b/curriculum/challenges/german/06-quality-assurance/quality-assurance-projects/personal-library.md @@ -170,7 +170,7 @@ async (getUserInput) => { }; ``` -You can send a DELETE request to `/api/books` to delete all books in the database. The returned response will be the string `'complete delete successful` if successful. +You can send a DELETE request to `/api/books` to delete all books in the database. The returned response will be the string `complete delete successful` if successful. ```js async (getUserInput) => { diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6140827cff96e906bd38fc2b.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6140827cff96e906bd38fc2b.md index 102363433b7..1d7705cbe4a 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6140827cff96e906bd38fc2b.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6140827cff96e906bd38fc2b.md @@ -9,7 +9,7 @@ dashedName: step-9 As described in the freeCodeCamp Style Guide, the logo should retain an aspect ratio of `35 / 4`, and have padding around the text. -Ändere zuerst die `background-color` zu `#0a0a23`, damit du das Logo sehen kannst. Verwende anschließend die `aspect-ratio`-Eigenschaft, um das gewünschte Seitenverhältnis auf `35 / 4` einzustellen. Finally, add a `padding` of `0.4rem` all around. +Ändere zuerst die `background-color` zu `#0a0a23`, damit du das Logo sehen kannst. Verwende anschließend die `aspect-ratio`-Eigenschaft, um das gewünschte Seitenverhältnis auf `35 / 4` einzustellen. Füge zum Schluss ein `padding`von `0.4rem` an allen Seiten hinzu. # --hints-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145ed1f22caab087630aaad.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145ed1f22caab087630aaad.md index 128c6d70763..c60f6e70a7e 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145ed1f22caab087630aaad.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145ed1f22caab087630aaad.md @@ -11,7 +11,7 @@ To prevent unnecessary repetition, target the `before` pseudo-element of the `p` # --hints-- -You should use the `p::before` selector. +Du solltest den `p::before`-Selektor verwenden. ```js assert.exists(new __helpers.CSSHelp(document).getStyle('p::before')); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145ee65e2e1530938cb594d.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145ee65e2e1530938cb594d.md index 3a8b120404c..4533c9e4b24 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145ee65e2e1530938cb594d.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145ee65e2e1530938cb594d.md @@ -13,19 +13,19 @@ Begin by nesting a `div` with a `class` of `formrow`, and nest four `div` elemen # --hints-- -You should add one `div` element within the final `section`. +Du solltest ein `div`-Element in die letzte `section` einfügen. ```js assert.exists(document.querySelector('section:nth-of-type(3) > div')); ``` -You should give the first `div` a `class` of `formrow`. +Du solltest dem ersten `div` eine `class` der `formrow` geben. ```js assert.equal(document.querySelector('section:nth-of-type(3) > div')?.className, 'formrow'); ``` -You should place `div.formrow` after the `h2` element. +Du solltest `div.formrow` nach dem Element `h2` einfügen. ```js assert.exists(document.querySelector('section:nth-of-type(3) > h2 + div.formrow')); @@ -37,25 +37,25 @@ You should nest four `div` elements inside `div.formrow`. assert.equal(document.querySelectorAll('section:nth-of-type(3) > div.formrow > div')?.length, 4); ``` -You should give the first nested `div` a `class` of `question-block`. +Du solltest dem ersten verschachtelten `div` eine `class` von `question-block` geben. ```js assert.equal(document.querySelector('section:nth-of-type(3) > div.formrow > div:nth-of-type(1)')?.className, 'question-block'); ``` -You should give the second nested `div` a `class` of `answer`. +Du solltest dem zweiten verschachtelten `div` eine `class` von `answer` geben. ```js assert.equal(document.querySelector('section:nth-of-type(3) > div.formrow > div:nth-of-type(2)')?.className, 'answer'); ``` -You should give the third nested `div` a `class` of `question-block`. +Du solltest dem dritten verschachtelten `div` eine `class` von `question-block` geben. ```js assert.equal(document.querySelector('section:nth-of-type(3) > div.formrow > div:nth-of-type(3)')?.className, 'question-block'); ``` -You should give the fourth nested `div` a `class` of `answer`. +Du solltest dem vierten verschachtelten `div` eine `class` von `answer` geben. ```js assert.equal(document.querySelector('section:nth-of-type(3) > div.formrow > div:nth-of-type(4)')?.className, 'answer'); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145f3a5cd9be60b9459cdd6.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145f3a5cd9be60b9459cdd6.md index e677d04351c..7a093a5b2b4 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145f3a5cd9be60b9459cdd6.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145f3a5cd9be60b9459cdd6.md @@ -1,13 +1,13 @@ --- id: 6145f3a5cd9be60b9459cdd6 -title: Step 38 +title: Schritt 38 challengeType: 0 dashedName: step-38 --- # --description-- -Link the first `label` element to the `select` element, and give the `select` element a `name` attribute. +Verknüpfe das erste `label`-Element mit dem `select`-Element und gib dem `select`-Element ein `name`-Attribut. # --hints-- @@ -23,7 +23,7 @@ You should give the `select` element an `id` attribute. assert.notEmpty(document.querySelector('.answer > select')?.id); ``` -You should give the `select` element an `id` matching the `for` attribute of the `label` element. +Du solltest dem `select`-Element eine `id` geben, die dem `for`-Attribut des `label`-Elements entspricht. ```js assert.equal(document.querySelector('.answer > select')?.id, document.querySelector('.question-block > label')?.htmlFor); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md index 9a89673b2a9..9f6134aef11 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md @@ -19,7 +19,7 @@ You should defined a new `@keyframes` rule. assert.notEmpty(new __helpers.CSSHelp(document).getCSSRules('keyframes')); ``` -You should give the `@keyframes` rule a `name` of `--fcc-expected--`, but found `--fcc-actual--`. +You should give the `@keyframes` rule a name of `--fcc-expected--`, but found `--fcc-actual--`. ```js assert.equal(new __helpers.CSSHelp(document).getCSSRules('keyframes')?.[0]?.name, 'wave'); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md index 14441801779..32423df3ed1 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md @@ -77,6 +77,7 @@ assert(collection.indexOf('H1') < collection.indexOf('H2')); --fcc-editable-region--

    CatPhotoApp

    + --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md index 0fe9beee32f..d87652a476d 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md @@ -53,6 +53,7 @@ assert(collection.indexOf('H2') < collection.indexOf('P'));

    CatPhotoApp

    --fcc-editable-region--

    Cat Photos

    + --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md index 5565edc4591..eafba190a78 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md @@ -63,6 +63,7 @@ assert(

    Cat Photos

    --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md index c3f6ec09c96..72fce12188b 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md @@ -25,7 +25,7 @@ Your `main` element should have a closing tag. Closing tags have a `/` just afte assert(code.match(/<\/main\>/)); ``` -Your `main` element's opening tag should be below the `body` element. You have them in the wrong order. +Your `main` element's opening tag should be below the `body` element's opening tag. You have them in the wrong order. ```js const main = document.querySelector('main'); @@ -60,10 +60,12 @@ assert( --fcc-editable-region-- +

    CatPhotoApp

    Cat Photos

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md index e2c299c5c56..131c1eea366 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md @@ -53,6 +53,7 @@ assert(collection.indexOf('P') < collection.indexOf('IMG')); --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md index 56f6bfdeb8f..287a51b96a4 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md @@ -70,6 +70,7 @@ assert( --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- A cute orange cat lying on its back. diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md index 5bea87c6201..a77201452d9 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md @@ -66,6 +66,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md index 04d126ab6b7..c32b021661e 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md @@ -75,6 +75,7 @@ assert( --fcc-editable-region--

    Cat Lists

    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md index 95c3d8a82bb..8984eecb8f9 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md @@ -49,6 +49,7 @@ assert(secondSectionLastElemNode.nodeName === 'UL'); --fcc-editable-region--

    Cat Lists

    Things cats love:

    + --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md index ea882bb7ebf..7111173d6ca 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md @@ -69,6 +69,7 @@ assert(

    Things cats love:

    --fcc-editable-region--
      +
    --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md index c13b284297f..e1445942301 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md @@ -85,6 +85,7 @@ assert(!/\laser pointers
  • lasagna
  • + --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md index b8594acc03c..4abde84e9ff 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md @@ -65,7 +65,9 @@ assert(
  • lasagna
  • --fcc-editable-region-- + A slice of lasagna on a plate. + --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md index cfb6a8746f4..895b961a574 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md @@ -88,6 +88,7 @@ assert( --fcc-editable-region--
    A slice of lasagna on a plate. +
    --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md index 51863c3e749..e3b92d24712 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md @@ -72,6 +72,7 @@ assert( A slice of lasagna on a plate.
    Cats love lasagna.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md index 305071d1ffa..f76a0cb6372 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md @@ -84,6 +84,7 @@ assert.deepStrictEqual( --fcc-editable-region--

    Top 3 things cats hate:

    + --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md index a6819caa585..a57f9d7a39e 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md @@ -63,6 +63,7 @@ assert($('main > section')[1].lastElementChild.nodeName === 'FIGURE');
  • thunder
  • other cats
  • + --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md index cb934075e6d..9178f9c3f27 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md @@ -85,7 +85,9 @@ assert(
    Five cats looking around a field. --fcc-editable-region-- +
    Cats hate other cats.
    + --fcc-editable-region--
    diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md index 8888abd9156..2f9eb2487d5 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md @@ -96,6 +96,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md index f38cbc588bf..37e9b1c0524 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md @@ -79,6 +79,7 @@ assert($('form')[0].innerHTML.trim().length === 0);
    --fcc-editable-region--

    Cat Form

    + --fcc-editable-region--
    diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md index 037153f2acd..b135a2c368d 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md @@ -99,6 +99,7 @@ assert(

    Cat Form

    --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md index d36bfc6ed9a..57dae18215c 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md @@ -83,6 +83,7 @@ assert(collection.indexOf('INPUT') < collection.indexOf('BUTTON'));
    --fcc-editable-region-- + --fcc-editable-region--
    diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md index 693fe80be1c..f7554ef6f00 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md @@ -88,8 +88,10 @@ assert(

    Cat Form

    --fcc-editable-region-- + + --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md index fe9e5500c4d..10eba9743d7 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md @@ -117,6 +117,7 @@ assert(
    --fcc-editable-region-- What's your cat's personality? + --fcc-editable-region--
    diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md index 30a9a6d1498..c5b7102f35c 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md @@ -95,8 +95,9 @@ assert(document.querySelector('main').nextElementSibling.nodeName === 'FOOTER'); --fcc-editable-region-- + - --fcc-editable-region-- + ``` diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md index d0a1fca4aa6..6b0ae794d04 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md @@ -96,6 +96,7 @@ assert(extraSpacesRemoved.match(/No Copyright - freeCodeCamp\.org$/i)); --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md index d0016c368c8..7d47096d0e0 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md @@ -9,7 +9,7 @@ dashedName: step-65 Notice that everything you've added to the page so far is inside the `body` element. All page content elements that should be rendered to the page go inside the `body` element. However, other important information goes inside the `head` element. -Add a `head` element just above the `body` element. +Add a `head` element above the `body` element. # --hints-- @@ -43,9 +43,11 @@ assert(noSpaces.match(/\<\/head\>\/)); ## --seed-contents-- ```html - --fcc-editable-region-- + + +--fcc-editable-region--

    CatPhotoApp

    @@ -102,7 +104,6 @@ assert(noSpaces.match(/\<\/head\>\/));

    ---fcc-editable-region-- ``` diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md index c71ffa0dc27..f7e6faf8617 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md @@ -48,6 +48,7 @@ assert(document.title && document.title.toLowerCase() === 'catphotoapp'); --fcc-editable-region-- + --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md index 0220a15fa6b..8ad36628d94 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md @@ -32,11 +32,12 @@ assert(noSpaces.match(/^\<\!DOCTYPEhtml\>\ +--fcc-editable-region-- CatPhotoApp ---fcc-editable-region--

    CatPhotoApp

    diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md index 10147b3892a..ac6e10df370 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md @@ -89,6 +89,7 @@ assert(!/\ --fcc-editable-region--
    +
    --fcc-editable-region--
    diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md index 010471e54f6..62407013c7e 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md @@ -7,7 +7,7 @@ dashedName: step-30 # --description-- -To improve accessibility of the image you just added, add an `alt` attribute with the text: +To improve accessibility of the image you added, add an `alt` attribute with the text: `Five cats looking around a field.` diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md index bcfae5c0b2d..d757ddd1d24 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md @@ -110,11 +110,12 @@ assert(
  • thunder
  • other cats
  • +--fcc-editable-region--
    ---fcc-editable-region-- Five cats looking around a field. ---fcc-editable-region-- +
    +--fcc-editable-region--
    diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md index c1bfa7ed41b..914c7ff7e0b 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md @@ -124,6 +124,7 @@ assert(code.match(/<\/label>\s*\s*]+>\s*Outdoor/i)); --fcc-editable-region-- + --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md index ee2a0641001..5ec3cce5acf 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md @@ -57,6 +57,7 @@ assert.isFalse(includesH1); --fcc-editable-region-- +

    CatPhotoApp

    Cat Photos

    @@ -64,6 +65,7 @@ assert.isFalse(includesH1);

    Click here to view more cat photos.

    A cute orange cat lying on its back.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md index e7b07a3d844..ae0a58c7e0d 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md @@ -73,6 +73,7 @@ assert(foundElems.length === 2);

    Click here to view more cat photos.

    A cute orange cat lying on its back. + --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md index 1e346081ab9..2ec7e842199 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md @@ -90,6 +90,7 @@ assert($('main > section')[2].children.length === 0);
    Cats hate other cats.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md index 300a4526422..7d60a54e77b 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md @@ -90,6 +90,7 @@ assert(extraSpacesRemoved.match(/Is your cat an indoor or outdoor cat\??$/i)); --fcc-editable-region--
    +
    diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md index 312738c0349..32258ced9d4 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md @@ -116,9 +116,10 @@ assert(fieldsetChildren[0].length > fieldsetChildren[1].length); + +--fcc-editable-region-- ---fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md index c92759223bc..89026acd94a 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md @@ -101,6 +101,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md index 5e003da568d..5e78efb415c 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md @@ -13,7 +13,7 @@ You can set browser behavior by adding self-closing `meta` elements in the `head ``` -Tell the browser to parse the markdown into multiple languages by creating a `meta` element as a child of the `head` element. Set its `charset` attribute to `UTF-8`. +Tell the browser to parse the markup into multiple languages by creating a `meta` element as a child of the `head` element. Set its `charset` attribute to `UTF-8`. # --hints-- @@ -45,6 +45,7 @@ assert.notMatch(code, /<\/meta\s*>?/i); --fcc-editable-region-- + CatPhotoApp --fcc-editable-region-- diff --git a/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/basic-javascript/using-objects-for-lookups.md b/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/basic-javascript/using-objects-for-lookups.md index 741d2e1821a..59675c8a969 100644 --- a/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/basic-javascript/using-objects-for-lookups.md +++ b/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/basic-javascript/using-objects-for-lookups.md @@ -11,7 +11,7 @@ dashedName: using-objects-for-lookups Gli oggetti possono essere pensati come una memorizzazione di coppie chiave / valore, come in un dizionario. Se hai dei dati tabulari, puoi usare un oggetto per cercare valori piuttosto che un'istruzione `switch` o una catena `if/else`. Questo è maggiormente utile quando sai che i dati di input sono limitati a un determinato intervallo. -Here is an example of an article object: +Ecco un esempio di un oggetto article: ```js const article = { @@ -30,7 +30,7 @@ const value = "title"; const valueLookup = article[value]; ``` -`articleAuthor` is the string `Kaashan Hussain`, `articleLink` is the string `https://www.freecodecamp.org/news/a-complete-guide-to-creating-objects-in-javascript-b0e2450655e8/`, and `valueLookup` is the string `How to create objects in JavaScript`. +`articleAuthor` è la stringa `Kaashan Hussain`, `articleLink` è la stringa `https://www.freecodecamp.org/news/a-complete-guide-to-creating-objects-in-javascript-b0e2450655e8/` e `valueLookup` è la stringa `How to create objects in JavaScript`. # --instructions-- diff --git a/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md b/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md index f86c26fd5a9..2379b44a517 100644 --- a/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md +++ b/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md @@ -20,10 +20,12 @@ Scrivi il tuo `Array.prototype.myMap()`, che dovrebbe comportarsi esattamente co # --hints-- -`new_s` dovrebbe essere uguale a `[46, 130, 196, 10]`. +`[23, 65, 98, 5, 13].myMap(item => item * 2)` dovrebbe essere uguale a `[46, 130, 196, 10, 26]`. ```js -assert(JSON.stringify(new_s) === JSON.stringify([46, 130, 196, 10])); +const _test_s = [46, 130, 196, 10, 13]; +const _callback = item => item * 2; +assert(JSON.stringify(_test_s.map(_callback)) === JSON.stringify(_test_s.myMap(_callback))); ``` Il tuo codice non dovrebbe usare il metodo `map`. @@ -37,9 +39,6 @@ assert(!code.match(/\.?[\s\S]*?map/g)); ## --seed-contents-- ```js -// The global variable -const s = [23, 65, 98, 5]; - Array.prototype.myMap = function(callback) { const newArray = []; // Only change code below this line @@ -47,17 +46,11 @@ Array.prototype.myMap = function(callback) { // Only change code above this line return newArray; }; - -const new_s = s.myMap(function(item) { - return item * 2; -}); ``` # --solutions-- ```js -const s = [23, 65, 98, 5]; - Array.prototype.myMap = function(callback) { const newArray = []; for (const elem of this) { @@ -66,7 +59,7 @@ Array.prototype.myMap = function(callback) { return newArray; }; -const new_s = s.myMap(function(item) { - return item * 2; -}); +// Test case +const s = [23, 65, 98, 5]; +const doubled_s = s.myMap(item => item * 2); ``` diff --git a/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md b/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md index be2cd8f1b80..50048ad11b3 100644 --- a/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md +++ b/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md @@ -16,10 +16,12 @@ Scrivi il tuo `Array.prototype.myFilter()`, che dovrebbe comportarsi esattamente # --hints-- -`new_s` dovrebbe essere uguale a `[23, 65, 5]`. +`[23, 65, 98, 5, 13].myFilter(item => item % 2)` dovrebbe essere uguale a `[23, 65, 5, 13]`. ```js -assert(JSON.stringify(new_s) === JSON.stringify([23, 65, 5])); +const _test_s = [23, 65, 98, 5, 13]; +const _callback = item => item % 2; +assert(JSON.stringify(_test_s.filter(_callback)) === JSON.stringify(_test_s.myFilter(_callback))); ``` Il tuo codice non dovrebbe usare il metodo `filter`. @@ -33,26 +35,18 @@ assert(!code.match(/\.?[\s\S]*?filter/g)); ## --seed-contents-- ```js -// The global variable -const s = [23, 65, 98, 5]; - Array.prototype.myFilter = function(callback) { - // Only change code below this line const newArray = []; + // Only change code below this line + // Only change code above this line return newArray; }; - -const new_s = s.myFilter(function(item) { - return item % 2 === 1; -}); ``` # --solutions-- ```js -const s = [23, 65, 98, 5]; - Array.prototype.myFilter = function(callback) { const newArray = []; for (let i = 0; i < this.length; i++) { @@ -61,7 +55,7 @@ Array.prototype.myFilter = function(callback) { return newArray; }; -const new_s = s.myFilter(function(item) { - return item % 2 === 1; -}); +// Test case +const s = [23, 65, 98, 5]; +const odd_s = s.myFilter(item => item % 2 === 1); ``` diff --git a/curriculum/challenges/italian/05-back-end-development-and-apis/basic-node-and-express/get-query-parameter-input-from-the-client.md b/curriculum/challenges/italian/05-back-end-development-and-apis/basic-node-and-express/get-query-parameter-input-from-the-client.md index 8b08a8d59aa..76b9ea6837f 100644 --- a/curriculum/challenges/italian/05-back-end-development-and-apis/basic-node-and-express/get-query-parameter-input-from-the-client.md +++ b/curriculum/challenges/italian/05-back-end-development-and-apis/basic-node-and-express/get-query-parameter-input-from-the-client.md @@ -20,7 +20,7 @@ Costruisci un endpoint API, montato su `GET /name`. Rispondi con un documento JS # --hints-- -Test 1 : Your API endpoint should respond with `{ "name": "Mick Jagger" }` when the `/name` endpoint is called with `?first=Mick&last=Jagger` +Test 1 : il tuo endpoint API dovrebbe rispondere con `{ "name": "Mick Jagger" }` quando l'endpoint `/name` è chiamato con `?first=Mick&last=Jagger` ```js (getUserInput) => @@ -38,7 +38,7 @@ Test 1 : Your API endpoint should respond with `{ "name": "Mick Jagger" }` when ); ``` -Test 2 : Your API endpoint should respond with `{ "name": "Keith Richards" }` when the `/name` endpoint is called with `?first=Keith&last=Richards` +Test 2 : il tuo endpoint API dovrebbe rispondere con `{ "name": "Keith Richards" }` quando l'endpoint `/name` è chiamato con `?first=Keith&last=Richards` ```js (getUserInput) => diff --git a/curriculum/challenges/italian/06-quality-assurance/advanced-node-and-express/implementation-of-social-authentication.md b/curriculum/challenges/italian/06-quality-assurance/advanced-node-and-express/implementation-of-social-authentication.md index d49cfdf15e2..b9fea84df68 100644 --- a/curriculum/challenges/italian/06-quality-assurance/advanced-node-and-express/implementation-of-social-authentication.md +++ b/curriculum/challenges/italian/06-quality-assurance/advanced-node-and-express/implementation-of-social-authentication.md @@ -18,11 +18,11 @@ Il percorso di base che seguirà questo tipo di autenticazione nella tua app è: Le strategie con OAuth richiedono di avere almeno un *ID client* e un *Client Secret* che è un modo per il servizio di verificare da chi proviene la richiesta di autenticazione e se è valida. Questi sono ottenuti dal sito con cui si sta tentando di implementare l'autenticazione, ad esempio GitHub, e sono unici per la tua app--**NON DEVONO ESSERE CONDIVISI** e non dovrebbero mai essere caricati in un archivio pubblico o scritti direttamente nel tuo codice. Una pratica comune è metterli nel tuo file `.env` e fare riferimento a loro in questo modo: `process.env.GITHUB_CLIENT_ID`. Per questa sfida userai la strategia GitHub. -Segui queste istruzioni per ottenere il tuo *Client ID e Secret* da GitHub. Set the homepage URL to your Replit homepage (**not the project code's URL**), and set the callback URL to the same homepage URL with `/auth/github/callback` appended to the end. Save the client ID and your client secret in your project's `.env` file as `GITHUB_CLIENT_ID` and `GITHUB_CLIENT_SECRET`. +Segui queste istruzioni per ottenere i tuoi *ID e Secret Client* da GitHub. Imposta l'URL della homepage alla tua homepage Replit (**non l'URL del codice progetto**) e imposta l'URL della callback sullo stesso URL della homepage con `/auth/github/callback` aggiunto alla fine. Salva l'ID Client e il Secret Client nel file `.env` del progetto come `GITHUB_CLIENT_ID` e `GITHUB_CLIENT_SECRET`. -In your `routes.js` file, add `showSocialAuth: true` to the homepage route, after `showRegistration: true`. Now, create 2 routes accepting GET requests: `/auth/github` and `/auth/github/callback`. The first should only call passport to authenticate `'github'`. The second should call passport to authenticate `'github'` with a failure redirect to `/`, and then if that is successful redirect to `/profile` (similar to your last project). +Nel tuo file `routes.js`, aggiungi `showSocialAuth: true` alla rotta homepage, dopo `showRegistration: true`. Ora, crea 2 rotte accettando le richieste GET: `/auth/github` e `/auth/github/callback`. La prima dovrebbe chiamare solo passport per autenticare `'github'`. La seconda dovrebbe chiamare passport per autenticare `'github'` con un reindirizzamento a `/` in caso di fallimento, mentre, in caso di successo, reindirizzare a `/profile` (in modo simile all'ultimo progetto). -An example of how `/auth/github/callback` should look is similar to how you handled a normal login: +Un esempio di come dovrebbe apparire `/auth/github/callback` è simile a come hai gestito un normale login: ```js app.route('/login') @@ -31,11 +31,11 @@ app.route('/login') }); ``` -Submit your page when you think you've got it right. If you're running into errors, you can check out the project up to this point. +Invia la tua pagina quando pensi che sia tutto corretto. Se incontri degli errori, puoi vedere il progetto fino a questo punto. # --hints-- -Route `/auth/github` should be correct. +La rotta `/auth/github` dovrebbe essere corretta. ```js async (getUserInput) => { @@ -66,7 +66,7 @@ async (getUserInput) => { } ``` -Route `/auth/github/callback` should be correct. +La rotta `/auth/github/callback` dovrebbe essere corretta. ```js async (getUserInput) => { diff --git a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-projects/personal-library.md b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-projects/personal-library.md index 83c6823abaf..108fd8da4ed 100644 --- a/curriculum/challenges/italian/06-quality-assurance/quality-assurance-projects/personal-library.md +++ b/curriculum/challenges/italian/06-quality-assurance/quality-assurance-projects/personal-library.md @@ -170,7 +170,7 @@ async (getUserInput) => { }; ``` -Puoi inviare una richiesta DELETE a `/api/books` per eliminare tutti i libri nel database. La risposta restituita sarà la stringa `'complete delete successful` se la richiesta ha avuto successo. +Puoi inviare una richiesta DELETE a `/api/books` per eliminare tutti i libri nel database. La risposta restituita sarà la stringa `complete delete successful` se la richiesta ha avuto successo. ```js async (getUserInput) => { diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md index 5bf200cf8e8..35d113fb91b 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md @@ -19,7 +19,7 @@ Dovresti definire una nuova regola `@keyframes`. assert.notEmpty(new __helpers.CSSHelp(document).getCSSRules('keyframes')); ``` -Dovresti dare alla regola `@keyframes` un `name` di `--fcc-expected--` invece di `--fcc-actual--`. +Dovresti dare alla regola `@keyframes` il nome `--fcc-expected--` invece di `--fcc-actual--`. ```js assert.equal(new __helpers.CSSHelp(document).getCSSRules('keyframes')?.[0]?.name, 'wave'); diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md index bdf6b45de58..81aa2f9388b 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md @@ -77,6 +77,7 @@ assert(collection.indexOf('H1') < collection.indexOf('H2')); --fcc-editable-region--

    CatPhotoApp

    + --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md index c696a1b123c..8c984784465 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md @@ -53,6 +53,7 @@ assert(collection.indexOf('H2') < collection.indexOf('P'));

    CatPhotoApp

    --fcc-editable-region--

    Cat Photos

    + --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md index c4076fc40a8..63f677f93af 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md @@ -63,6 +63,7 @@ assert(

    Cat Photos

    --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md index 44333c14016..f80626231f3 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md @@ -25,7 +25,7 @@ L'elemento `main` dovrebbe avere un tag di chiusura. I tag di chiusura hanno un assert(code.match(/<\/main\>/)); ``` -Il tag di apertura dell'elemento `main` dovrebbe essere al di sotto dell'elemento `body`. Sono nell'ordine sbagliato. +Il tag di apertura dell'elemento `main` dovrebbe essere al di sotto del tag di apertura dell'elemento `body`. Sono nell'ordine sbagliato. ```js const main = document.querySelector('main'); @@ -60,10 +60,12 @@ assert( --fcc-editable-region-- +

    CatPhotoApp

    Cat Photos

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md index a7c7439be8e..18264e96607 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md @@ -53,6 +53,7 @@ assert(collection.indexOf('P') < collection.indexOf('IMG')); --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md index d8c0bad1534..bb8920716e5 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md @@ -70,6 +70,7 @@ assert( --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- A cute orange cat lying on its back. diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md index 3295e8ca468..156ecd0648d 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md @@ -66,6 +66,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md index e7517b28c7f..1c28f438e36 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md @@ -75,6 +75,7 @@ assert( --fcc-editable-region--

    Cat Lists

    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md index 4230b1a6fee..aa4263f9357 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md @@ -49,6 +49,7 @@ assert(secondSectionLastElemNode.nodeName === 'UL'); --fcc-editable-region--

    Cat Lists

    Things cats love:

    + --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md index 55000621a71..71980f4ea6f 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md @@ -69,6 +69,7 @@ assert(

    Things cats love:

    --fcc-editable-region--
      +
    --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md index cbbc7f3decf..22554373da7 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md @@ -85,6 +85,7 @@ assert(!/\laser pointers
  • lasagna
  • + --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md index 2c7bf41f030..c1688a12d6a 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md @@ -65,7 +65,9 @@ assert(
  • lasagna
  • --fcc-editable-region-- + A slice of lasagna on a plate. + --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md index 825c5a7a969..0fc0867516c 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md @@ -88,6 +88,7 @@ assert( --fcc-editable-region--
    A slice of lasagna on a plate. +
    --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md index c82822baf5b..83f8c7d712d 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md @@ -72,6 +72,7 @@ assert( A slice of lasagna on a plate.
    Cats love lasagna.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md index 3da6c12fc5b..3ac09c64341 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md @@ -84,6 +84,7 @@ assert.deepStrictEqual( --fcc-editable-region--

    Top 3 things cats hate:

    + --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md index 2fade0a47cb..ba187dd60f6 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md @@ -63,6 +63,7 @@ assert($('main > section')[1].lastElementChild.nodeName === 'FIGURE');
  • thunder
  • other cats
  • + --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md index 78b42f085a8..491dc010be2 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md @@ -85,7 +85,9 @@ assert(
    Five cats looking around a field. --fcc-editable-region-- +
    Cats hate other cats.
    + --fcc-editable-region--
    diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md index 490b0eabf69..86e71acac6f 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md @@ -96,6 +96,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md index 7818e61e736..f2aebeaf025 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md @@ -79,6 +79,7 @@ assert($('form')[0].innerHTML.trim().length === 0);
    --fcc-editable-region--

    Cat Form

    + --fcc-editable-region--
    diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md index 4b340592467..5989da345c9 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md @@ -99,6 +99,7 @@ assert(

    Cat Form

    --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md index fbc87950f8e..b1452e2e62c 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md @@ -83,6 +83,7 @@ assert(collection.indexOf('INPUT') < collection.indexOf('BUTTON'));
    --fcc-editable-region-- + --fcc-editable-region--
    diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md index 52a09993d3b..a349fd75104 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md @@ -88,8 +88,10 @@ assert(

    Cat Form

    --fcc-editable-region-- + + --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md index f8227f414e0..b939351f746 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md @@ -117,6 +117,7 @@ assert(
    --fcc-editable-region-- What's your cat's personality? + --fcc-editable-region--
    diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md index fdfac352570..bef14d8f348 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md @@ -95,8 +95,9 @@ assert(document.querySelector('main').nextElementSibling.nodeName === 'FOOTER'); --fcc-editable-region-- + - --fcc-editable-region-- + ``` diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md index 5e9af768e4e..a94991a9676 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md @@ -96,6 +96,7 @@ assert(extraSpacesRemoved.match(/No Copyright - freeCodeCamp\.org$/i)); --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md index a8e49578405..1e019f6be55 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md @@ -9,7 +9,7 @@ dashedName: step-65 Nota che tutto ciò che hai aggiunto alla pagina finora è all'interno dell'elemento `body`. Tutti i contenuti che devono essere visualizzati nella pagina devono trovarsi all'interno dell'elemento `body`. Tuttavia, altre informazioni importanti vanno all'interno dell'elemento `head`. -Aggiungi un elemento `head` appena sopra l'elemento `body`. +Aggiungi un elemento `head` sopra l'elemento `body`. # --hints-- @@ -43,9 +43,11 @@ assert(noSpaces.match(/\<\/head\>\/)); ## --seed-contents-- ```html - --fcc-editable-region-- + + +--fcc-editable-region--

    CatPhotoApp

    @@ -102,7 +104,6 @@ assert(noSpaces.match(/\<\/head\>\/));

    ---fcc-editable-region-- ``` diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md index 1d722dc4c19..664fc1b7ad5 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md @@ -48,6 +48,7 @@ assert(document.title && document.title.toLowerCase() === 'catphotoapp'); --fcc-editable-region-- + --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md index 6bf9fbaa98b..38f0da69730 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md @@ -32,11 +32,12 @@ assert(noSpaces.match(/^\<\!DOCTYPEhtml\>\ +--fcc-editable-region-- CatPhotoApp ---fcc-editable-region--

    CatPhotoApp

    diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md index c5f2277a800..b7646ffad15 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md @@ -89,6 +89,7 @@ assert(!/\ --fcc-editable-region--
    +
    --fcc-editable-region--
    diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md index 751adc48359..52c20b0c72c 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md @@ -7,7 +7,7 @@ dashedName: step-30 # --description-- -Per migliorare l'accessibilità dell'immagine che hai appena aggiunto, aggiungi un attributo `alt` con il testo: +Per migliorare l'accessibilità dell'immagine che hai aggiunto, aggiungi un attributo `alt` con il testo: `Five cats looking around a field.` diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md index 0d1b40781eb..be3ab042a2e 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md @@ -110,11 +110,12 @@ assert(
  • thunder
  • other cats
  • +--fcc-editable-region--
    ---fcc-editable-region-- Five cats looking around a field. ---fcc-editable-region-- +
    +--fcc-editable-region--
    diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md index 31770ad8928..eace2a26735 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md @@ -124,6 +124,7 @@ assert(code.match(/<\/label>\s*\s*]+>\s*Outdoor/i)); --fcc-editable-region-- + --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md index 0efe6b069f0..e7d026d157c 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md @@ -57,6 +57,7 @@ assert.isFalse(includesH1); --fcc-editable-region-- +

    CatPhotoApp

    Cat Photos

    @@ -64,6 +65,7 @@ assert.isFalse(includesH1);

    Click here to view more cat photos.

    A cute orange cat lying on its back.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md index ca9fffea76c..89c5b68b165 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md @@ -73,6 +73,7 @@ assert(foundElems.length === 2);

    Click here to view more cat photos.

    A cute orange cat lying on its back. + --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md index 60c16e5e6fd..b1deb7652ce 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md @@ -90,6 +90,7 @@ assert($('main > section')[2].children.length === 0);
    Cats hate other cats.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md index 2333a0606a7..6189db63654 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md @@ -90,6 +90,7 @@ assert(extraSpacesRemoved.match(/Is your cat an indoor or outdoor cat\??$/i)); --fcc-editable-region--
    +
    diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md index 020bb8bcf95..04d12a81c63 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md @@ -116,9 +116,10 @@ assert(fieldsetChildren[0].length > fieldsetChildren[1].length); + +--fcc-editable-region-- ---fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md index 515eef1df9e..338124072be 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md @@ -101,6 +101,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md index 623ff949636..4848314b629 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md @@ -13,7 +13,7 @@ Puoi impostare il comportamento del browser aggiungendo degli elementi `meta` au ``` -Ordina al browser di interpretare il markdown in linguaggi multipli creando un elemento `meta` come figlio dell'elemento `head`. Imposta l'attributo `charset` su `UTF-8`. +Tell the browser to parse the markup into multiple languages by creating a `meta` element as a child of the `head` element. Imposta l'attributo `charset` su `UTF-8`. # --hints-- @@ -45,6 +45,7 @@ assert.notMatch(code, /<\/meta\s*>?/i); --fcc-editable-region-- + CatPhotoApp --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md b/curriculum/challenges/japanese/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md index 2753a97180a..f31410f00fe 100644 --- a/curriculum/challenges/japanese/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md +++ b/curriculum/challenges/japanese/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md @@ -20,10 +20,12 @@ dashedName: implement-map-on-a-prototype # --hints-- -`new_s` は `[46, 130, 196, 10]` と等しくなければなりません。 +`[23, 65, 98, 5, 13].myMap(item => item * 2)` should equal `[46, 130, 196, 10, 26]`. ```js -assert(JSON.stringify(new_s) === JSON.stringify([46, 130, 196, 10])); +const _test_s = [46, 130, 196, 10, 13]; +const _callback = item => item * 2; +assert(JSON.stringify(_test_s.map(_callback)) === JSON.stringify(_test_s.myMap(_callback))); ``` コードでは `map` メソッドを使用しないでください。 @@ -37,9 +39,6 @@ assert(!code.match(/\.?[\s\S]*?map/g)); ## --seed-contents-- ```js -// The global variable -const s = [23, 65, 98, 5]; - Array.prototype.myMap = function(callback) { const newArray = []; // Only change code below this line @@ -47,17 +46,11 @@ Array.prototype.myMap = function(callback) { // Only change code above this line return newArray; }; - -const new_s = s.myMap(function(item) { - return item * 2; -}); ``` # --solutions-- ```js -const s = [23, 65, 98, 5]; - Array.prototype.myMap = function(callback) { const newArray = []; for (const elem of this) { @@ -66,7 +59,7 @@ Array.prototype.myMap = function(callback) { return newArray; }; -const new_s = s.myMap(function(item) { - return item * 2; -}); +// Test case +const s = [23, 65, 98, 5]; +const doubled_s = s.myMap(item => item * 2); ``` diff --git a/curriculum/challenges/japanese/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md b/curriculum/challenges/japanese/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md index 7dbb07d2529..f18ecacbf18 100644 --- a/curriculum/challenges/japanese/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md +++ b/curriculum/challenges/japanese/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md @@ -16,10 +16,12 @@ dashedName: implement-the-filter-method-on-a-prototype # --hints-- -`new_s` は `[23, 65, 5]` と等しくなければなりません。 +`[23, 65, 98, 5, 13].myFilter(item => item % 2)` should equal `[23, 65, 5, 13]`. ```js -assert(JSON.stringify(new_s) === JSON.stringify([23, 65, 5])); +const _test_s = [23, 65, 98, 5, 13]; +const _callback = item => item % 2; +assert(JSON.stringify(_test_s.filter(_callback)) === JSON.stringify(_test_s.myFilter(_callback))); ``` `filter` メソッドを使用しないでください。 @@ -33,26 +35,18 @@ assert(!code.match(/\.?[\s\S]*?filter/g)); ## --seed-contents-- ```js -// The global variable -const s = [23, 65, 98, 5]; - Array.prototype.myFilter = function(callback) { - // Only change code below this line const newArray = []; + // Only change code below this line + // Only change code above this line return newArray; }; - -const new_s = s.myFilter(function(item) { - return item % 2 === 1; -}); ``` # --solutions-- ```js -const s = [23, 65, 98, 5]; - Array.prototype.myFilter = function(callback) { const newArray = []; for (let i = 0; i < this.length; i++) { @@ -61,7 +55,7 @@ Array.prototype.myFilter = function(callback) { return newArray; }; -const new_s = s.myFilter(function(item) { - return item % 2 === 1; -}); +// Test case +const s = [23, 65, 98, 5]; +const odd_s = s.myFilter(item => item % 2 === 1); ``` diff --git a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-projects/personal-library.md b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-projects/personal-library.md index 7c9ecb7fc12..87b306b1d79 100644 --- a/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-projects/personal-library.md +++ b/curriculum/challenges/japanese/06-quality-assurance/quality-assurance-projects/personal-library.md @@ -170,7 +170,7 @@ async (getUserInput) => { }; ``` -DELETE リクエストを `/api/books` へ送信して、データベース内のすべてのブックを削除することができます。 成功した場合、文字列 `'complete delete successful` のレスポンスを返します。 +DELETE リクエストを `/api/books` へ送信して、データベース内のすべてのブックを削除することができます。 The returned response will be the string `complete delete successful` if successful. ```js async (getUserInput) => { diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/build-a-survey-form-project/build-a-survey-form.md b/curriculum/challenges/japanese/14-responsive-web-design-22/build-a-survey-form-project/build-a-survey-form.md index 1b99437cdd0..1145d49e13a 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/build-a-survey-form-project/build-a-survey-form.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/build-a-survey-form-project/build-a-survey-form.md @@ -19,7 +19,7 @@ dashedName: build-a-survey-form 1. その form 要素の中では、`id` の値が `email` である `input` 欄へのメールアドレスの入力が**必須**となっています 1. メールアドレスを不正なフォーマットで入力すると、HTML5 のバリデーションエラーが表示されます 1. フォームの中で、`id` の値が `number` に設定されている `input` の欄内に数値を入力できます -1. The number input should not accept non-numbers, either by preventing you from typing them or by showing an HTML5 validation error (depending on your browser). +1. 数値入力欄は数値でない値を受け付けないように、数値以外の値が入力できないか、HTML5 のバリデーションエラーが表示されるようになっています (ブラウザによって動作が異なります) 1. `min` と `max` 属性で定義した範囲外の数字を入力すると、HTML5 のバリデーションエラーが表示されます 1. 名前、メールアドレス、数値の入力欄に対応して、フォーム内に各欄の目的を説明する `label` 要素があり、それぞれ以下の id が設定されている必要があります: `id="name-label"`、`id="email-label"`、`id="number-label"` 1. 名前、メールアドレス、数値の入力欄には、各欄の説明や指示を示すプレイスホルダーテキストが表示されます @@ -119,7 +119,7 @@ const el = document.getElementById('email') assert(!!el && el.required) ``` -Your `#email` should be a descendant of `#survey-form`. +`#email` は `#survey-form` の子孫要素である必要があります ```js const el = document.querySelector('#survey-form #email') diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61537a8054753e2f1f2a1574.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61537a8054753e2f1f2a1574.md index d041d4832dc..5dbb1db6f6e 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61537a8054753e2f1f2a1574.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61537a8054753e2f1f2a1574.md @@ -28,7 +28,7 @@ const target = meta?.find(m => m?.getAttribute('name') === 'viewport' && m?.getA assert.exists(target); ``` -Your other `meta` element should have the `charset` attribute set to `UTF-8`. +もうひとつの `meta` 要素は `charset` 属性が `UTF-8` に設定されている必要があります。 ```js const meta = [...document.querySelectorAll('meta')]; diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61537c5f81f0cf325b4a854c.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61537c5f81f0cf325b4a854c.md index 882ea2b9071..fffeb7db551 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61537c5f81f0cf325b4a854c.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61537c5f81f0cf325b4a854c.md @@ -9,7 +9,7 @@ dashedName: step-4 `body` 要素内に `header` 要素を追加して、`header` というクラスを割り当ててください。 -Inside the `header`, create an `h1` with `css flexbox photo gallery` as the text. +そして、`header` 内に `h1` 要素を作成して、`css flexbox photo gallery` というテキストを持たせてください。 # --hints-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61537c9eecea6a335db6da79.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61537c9eecea6a335db6da79.md index 1cbd75c713f..03111eb53bd 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61537c9eecea6a335db6da79.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61537c9eecea6a335db6da79.md @@ -1,37 +1,37 @@ --- id: 61537c9eecea6a335db6da79 -title: Step 5 +title: ステップ 5 challengeType: 0 dashedName: step-5 --- # --description-- -Below your `.header` element, create a new `div` element and assign it a `class` of `gallery`. This `div` will act as a container for the gallery images. +`.header` 要素の下に新しい `div` 要素を作成して、`gallery` という `class` を割り当ててください。 この `div` がギャラリー画像のコンテナーになります。 -Inside that `.gallery` element, create nine `img` elements. +その `.gallery` 要素内に、`img` 要素を 9 つ作成してください。 # --hints-- -You should create a `div` element in your `body` element. +`body` 要素の中に `div` 要素を作成する必要があります。 ```js assert(document.querySelector('body')?.querySelectorAll('div')?.length >= 1); ``` -Your new `div` element should have a `class` with `gallery` set as the value. +新しい `div` 要素の `class` の値として `gallery` を設定する必要があります。 ```js assert(document.querySelector('body')?.querySelector('.gallery')); ``` -Your new `div` element should come after your `.header` element. +新しい `div` 要素は `.header` 要素の後に置く必要があります。 ```js assert(document.querySelector('header')?.nextElementSibling?.classList?.contains('gallery')); ``` -Your `.gallery` element should have nine `img` elements. +`.gallery` 要素には `img` 要素が 9 個必要です。 ```js assert(document.querySelector('.gallery')?.querySelectorAll('img')?.length === 9); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61537d86bdc3dd343688fceb.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61537d86bdc3dd343688fceb.md index b205c1600cc..06722caa953 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61537d86bdc3dd343688fceb.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61537d86bdc3dd343688fceb.md @@ -1,72 +1,72 @@ --- id: 61537d86bdc3dd343688fceb -title: Step 6 +title: ステップ 6 challengeType: 0 dashedName: step-6 --- # --description-- -Next, give each `img` a `src` attribute according to its order in the document. The first `img` should have a `src` of `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/1.jpg`. The rest should be the same, except replace the `1` with the number the `img` is in the document. +次に、各 `img` にドキュメント内の順番に従って `src` 属性を追加します。 1 番目の `img` の `src` は `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/1.jpg` としてください。 残りも同様に、`1` の部分をドキュメント内の `img` の順番に置き換えたものを設定してください。 # --hints-- -All nine of your `img` elements should have a `src` attribute. +9 個ある `img` 要素のすべてに `src` 属性が必要です。 ```js const images = [...document.querySelectorAll('img')]; assert(images.every(image => image.getAttribute('src'))); ``` -Your first `img` element should have `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/1.jpg` set as the `src` attribute value. +1 番目の `img` 要素には `src` 属性値として `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/1.jpg` を設定する必要があります。 ```js assert(document.querySelectorAll('img')?.[0]?.getAttribute('src') === 'https://cdn.freecodecamp.org/curriculum/css-photo-gallery/1.jpg'); ``` -Your second `img` element should have `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/2.jpg` set as the `src` attribute value. +2 番目の `img` 要素には `src` 属性値として `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/2.jpg` を設定する必要があります。 ```js assert(document.querySelectorAll('img')?.[1]?.getAttribute('src') === 'https://cdn.freecodecamp.org/curriculum/css-photo-gallery/2.jpg'); ``` -Your third `img` element should have `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/3.jpg` set as the `src` attribute value. +3 番目の `img` 要素には `src` 属性値として `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/3.jpg` を設定する必要があります。 ```js assert(document.querySelectorAll('img')?.[2]?.getAttribute('src') === 'https://cdn.freecodecamp.org/curriculum/css-photo-gallery/3.jpg'); ``` -Your fourth `img` element should have `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/4.jpg` set as the `src` attribute value. +4 番目の `img` 要素には `src` 属性値として `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/4.jpg` を設定する必要があります。 ```js assert(document.querySelectorAll('img')?.[3]?.getAttribute('src') === 'https://cdn.freecodecamp.org/curriculum/css-photo-gallery/4.jpg'); ``` -Your fifth `img` element should have `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/5.jpg` set as the `src` attribute value. +5 番目の `img` 要素には `src` 属性値として `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/5.jpg` を設定する必要があります。 ```js assert(document.querySelectorAll('img')?.[4]?.getAttribute('src') === 'https://cdn.freecodecamp.org/curriculum/css-photo-gallery/5.jpg'); ``` -Your sixth `img` element should have `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/6.jpg` set as the `src` attribute value. +6 番目の `img` 要素には `src` 属性値として `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/6.jpg` を設定する必要があります。 ```js assert(document.querySelectorAll('img')?.[5]?.getAttribute('src') === 'https://cdn.freecodecamp.org/curriculum/css-photo-gallery/6.jpg'); ``` -Your seventh `img` element should have `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/7.jpg` set as the `src` attribute value. +7 番目の `img` 要素には `src` 属性値として `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/7.jpg` を設定する必要があります。 ```js assert(document.querySelectorAll('img')?.[6]?.getAttribute('src') === 'https://cdn.freecodecamp.org/curriculum/css-photo-gallery/7.jpg'); ``` -Your eighth `img` element should have `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/8.jpg` set as the `src` attribute value. +8 番目の `img` 要素には `src` 属性値として `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/8.jpg` を設定する必要があります。 ```js assert(document.querySelectorAll('img')?.[7]?.getAttribute('src') === 'https://cdn.freecodecamp.org/curriculum/css-photo-gallery/8.jpg'); ``` -Your ninth `img` element should have `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/9.jpg` set as the `src` attribute value. +9 番目の `img` 要素には `src` 属性値として `https://cdn.freecodecamp.org/curriculum/css-photo-gallery/9.jpg` を設定する必要があります。 ```js assert(document.querySelectorAll('img')?.[8]?.getAttribute('src') === 'https://cdn.freecodecamp.org/curriculum/css-photo-gallery/9.jpg'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/615380dff67172357fcf0425.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/615380dff67172357fcf0425.md index 5041ab39c54..5fa24f5e376 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/615380dff67172357fcf0425.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/615380dff67172357fcf0425.md @@ -11,13 +11,13 @@ dashedName: step-7 # --hints-- -You should have a `*` selector. +`*` セレクターが必要です。 ```js assert.exists(new __helpers.CSSHelp(document).getStyle('*')); ``` -Your `*` selector should have a `box-sizing` property set to `border-box` as the value. +`*` セレクターの `box-sizing` プロパティの値を `border-box` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('*')?.boxSizing === 'border-box'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153893900438b4643590367.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153893900438b4643590367.md index 82026c6a38e..2f2e5738db3 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153893900438b4643590367.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153893900438b4643590367.md @@ -1,23 +1,23 @@ --- id: 6153893900438b4643590367 -title: Step 9 +title: ステップ 9 challengeType: 0 dashedName: step-9 --- # --description-- -Remove the margin from your `body` element, set the `font-family` to `sans-serif`, and give it a `background-color` of `#f5f6f7` as the value. +`body` 要素からマージンを取り除いて、`font-family` を `sans-serif` に設定し、`background-color` を `#f5f6f7` に設定してください。 # --hints-- -You should have a `body` selector. +`body` セレクターが必要です。 ```js assert.exists(new __helpers.CSSHelp(document).getStyle('body')); ``` -Your `body` selector should have a `margin` property set to `0` as the value. +`body` セレクターの `margin` プロパティの値を `0` に設定する必要があります。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('body')?.marginTop, '0px'); @@ -26,13 +26,13 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('body')?.marginLeft, '0px' assert.equal(new __helpers.CSSHelp(document).getStyle('body')?.marginRight, '0px'); ``` -Your `body` selector should have a `font-family` property set to `sans-serif` as the value. +`body` セレクターの `font-family` プロパティの値を `sans-serif` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('body')?.fontFamily === 'sans-serif'); ``` -Your `body` selector should have a `background-color` property set to `#f5f6f7` as the value. +`body` セレクターの `background-color` プロパティの値を `#f5f6f7` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('body')?.backgroundColor === 'rgb(245, 246, 247)'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153897c27f6334716ee5abe.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153897c27f6334716ee5abe.md index 5ac1cad9739..c1f089b4016 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153897c27f6334716ee5abe.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153897c27f6334716ee5abe.md @@ -7,52 +7,52 @@ dashedName: step-10 # --description-- -Align your `.header` text in the center. Make the text uppercase using the `text-transform` property with `uppercase` as the value. +`.header` のテキストを中央揃えにしてください。 また、`text-transform` プロパティと `uppercase` の値を使用して、テキストを大文字にしてください。 -Give it a padding of `32px` on all sides. Set the background to `#0a0a23` and the text to `#fff` as the color values. +各辺のパディングは `32px` にしてください。 背景色を `#0a0a23` に、文字色を `#fff` に設定してください。 -Add a `border-bottom` with `4px solid #fdb347` as the value. +そして `border-bottom` を追加して、値を `4px solid #fdb347` に設定してください。 # --hints-- -You should have a `.header` selector. +`.header` セレクターが必要です。 ```js assert.exists(new __helpers.CSSHelp(document).getStyle('.header')); ``` -Your `.header` selector should have a `text-align` property set to `center` as the value. +`.header` セレクターの `text-align` プロパティの値を `center` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('.header')?.textAlign === 'center'); ``` -Your `.header` selector should have a `text-transform` property set to `uppercase` as the value. +`.header` セレクターの `text-transform` プロパティの値を `uppercase` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('.header')?.textTransform === 'uppercase'); ``` -Your `.header` selector should have a `padding` property set to `32px` as the value. +`.header` セレクターの `padding` プロパティの値を `32px` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('.header')?.padding === '32px'); ``` -Your `.header` selector should have a `background-color` property set to `#0a0a23` as the value. +`.header` セレクターの `background-color` プロパティの値を `#0a0a23` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('.header')?.backgroundColor === 'rgb(10, 10, 35)'); ``` -Your `.header` selector should have a `color` property set to `#fff` as the value. +`.header` セレクターの `color` プロパティの値を `#fff` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('.header')?.color === 'rgb(255, 255, 255)'); ``` -Your `.header` selector should have a `border-bottom` property set to `4px solid #fdb347` as the value. +`.header` セレクターの `border-bottom` プロパティの値を `4px solid #fdb347` に設定する必要があります。 ```js console.log(new __helpers.CSSHelp(document).getStyle('.header')) diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/615389bd81347947ea7ba896.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/615389bd81347947ea7ba896.md index f764d2a6812..3f4cd5437dc 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/615389bd81347947ea7ba896.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/615389bd81347947ea7ba896.md @@ -9,19 +9,19 @@ dashedName: step-11 フレックスボックスとは、コンテナー内のアイテムの間隔や整列方法を制御するための一次元の CSS レイアウトです。 -To use it, give an element a `display` property of `flex`. これにより、要素がフレックスコンテナーとなります。 フレックスコンテナーの直接の子要素はフレックスアイテムと呼ばれます。 +フレックスボックスを使用するには、要素の `display` プロパティを `flex` に設定します。 これにより、要素がフレックスコンテナーとなります。 フレックスコンテナーの直接の子要素はフレックスアイテムと呼ばれます。 `.gallery` セレクターを作成して、それをフレックスコンテナーにしてください。 # --hints-- -You should have a `.gallery` selector. +`.gallery` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('.gallery')); ``` -Your `.gallery` selector should have a `display` property set to `flex` as the value. +`.gallery` セレクターの `display` プロパティの値を `flex` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('.gallery')?.display === 'flex'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153908a366afb4d57185c8d.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153908a366afb4d57185c8d.md index 5a2d7edab89..3ecfc550597 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153908a366afb4d57185c8d.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153908a366afb4d57185c8d.md @@ -7,22 +7,22 @@ dashedName: step-12 # --description-- -Flexbox has a main and cross axis. The main axis is defined by the `flex-direction` property, which has four possible values: +フレックスボックスには主軸と交差軸があります。 主軸は `flex-direction` プロパティで定義され、以下 4 種類の値を受け付けます。 -- `row` (default): horizontal axis with flex items from left to right -- `row-reverse`: horizontal axis with flex items from right to left -- `column`: vertical axis with flex items from top to bottom -- `column-reverse`: vertical axis with flex items from bottom to top +- `row` (デフォルト): フレックスアイテムを左から右へ配置する、水平方向の軸 +- `row-reverse`: フレックスアイテムを右から左へ配置する、水平方向の軸 +- `column`: フレックスアイテムを上から下へ配置する、垂直方向の軸 +- `column-reverse`: フレックスアイテムを下から上へ配置する、垂直方向の軸 -**Note**: The axes and directions will be different depending on the text direction. The values shown are for a left-to-right text direction. +**注**: 軸と方向は、テキストの方向によって異なります。 上記の値はテキストの方向が左から右の場合です。 -Try the different values to see how they affect the layout. +異なる値を設定して、レイアウトにどう影響するか試してみてください。 -When you are done, set an explicit `flex-direction` of `row` on the `.gallery` element. +確認し終わったら、`.gallery` 要素の `flex-direction` を明示的に `row` に設定しましょう。 # --hints-- -Your `.gallery` selector should have a `flex-direction` property set to `row` as the value. +`.gallery` セレクターの `flex-direction` プロパティの値を `row` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('.gallery')?.flexDirection === 'row'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/615392916d83fa4f02f7e2cf.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/615392916d83fa4f02f7e2cf.md index bddcf61ecd7..acda0b3a2d2 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/615392916d83fa4f02f7e2cf.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/615392916d83fa4f02f7e2cf.md @@ -8,14 +8,14 @@ dashedName: step-13 # --description-- -`flex-wrap` プロパティは、フレックスコンテナーが小さすぎる場合にフレックスアイテムがどのように動作するかを決定します。 Setting it to `wrap` will allow the items to wrap to the next row or column. `nowrap` (default) will prevent your items from wrapping and shrink them if needed. +`flex-wrap` プロパティは、フレックスコンテナーが小さすぎる場合にフレックスアイテムがどのように動作するかを決定します。 このプロパティを `wrap` に設定すると、アイテムが次の行または列に折り返されます。 `nowrap` (デフォルト) の場合は、アイテムは折り返されず、必要に応じて縮小されます。 -Make it so your flex items wrap to the next row when they run out of space. +スペースが足りない場合に、フレックスアイテムが次の行に折り返されるよう設定してください。 # --hints-- -Your `.gallery` selector should have a `flex-wrap` property set to `wrap` as the value. +`.gallery` セレクターの `flex-wrap` プロパティの値を `wrap` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('.gallery')?.flexWrap === 'wrap'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153938dce8b294ff8f5a4e9.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153938dce8b294ff8f5a4e9.md index 8bacd9c8afe..c751b0d7704 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153938dce8b294ff8f5a4e9.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153938dce8b294ff8f5a4e9.md @@ -1,19 +1,19 @@ --- id: 6153938dce8b294ff8f5a4e9 -title: Step 14 +title: ステップ 14 challengeType: 0 dashedName: step-14 --- # --description-- -`justify-content` プロパティは、フレックスコンテナー内のアイテムが主軸に沿ってどう配置されるかを決定し、アイテムの位置と周りの余白に影響を及ぼします。 +`justify-content` プロパティは、フレックスコンテナー内のアイテムが主軸に沿ってどう配置されるかを決めるもので、アイテムの位置と周りの余白に影響します。 -Give your `.gallery` selector a `justify-content` property with `center` as the value. +`.gallery` セレクターに `justify-content` プロパティを追加して、値として `center` を設定してください。 # --hints-- -Your `.gallery` selector should have a `justify-content` property set to `center` as the value. +`.gallery` セレクターの `justify-content` プロパティの値を `center` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('.gallery')?.justifyContent === 'center'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153947986535e5117e60615.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153947986535e5117e60615.md index 488165a36f3..8d9a109e1d3 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153947986535e5117e60615.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153947986535e5117e60615.md @@ -1,19 +1,19 @@ --- id: 6153947986535e5117e60615 -title: Step 15 +title: ステップ 15 challengeType: 0 dashedName: step-15 --- # --description-- -The `align-items` property positions the flex content along the cross axis. In this case, with your `flex-direction` set to `row`, your cross axis would be vertical. +`align-items` プロパティは、フレックスボックスの中身の交差軸方向の配置を調整します。 このプロジェクトでは、`flex-direction` が `row`に設定されているので、交差軸は垂直方向になります。 -To vertically center your images, give your `.gallery` selector an `align-items` property with `center` as the value. +画像を垂直方向の中央に配置するために、`.gallery` セレクターに `align-items` プロパティを追加し、値として `center` を設定してください。 # --hints-- -Your `.gallery` selector should have an `align-items` property set to `center` as the value. +`.gallery` セレクターの `align-items` プロパティの値を `center` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('.gallery')?.alignItems === 'center'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61539e07e7430b528fbffe21.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61539e07e7430b528fbffe21.md index 1e3e6a37799..31bcb1a6bbe 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61539e07e7430b528fbffe21.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61539e07e7430b528fbffe21.md @@ -7,13 +7,13 @@ dashedName: step-16 # --description-- -Give your `.gallery` selector a `padding` property set to `20px 10px` to create some space around the container. +コンテナーの周りに余白を追加するため、`.gallery` セレクターの `padding` プロパティを `20px 10px` に設定してください。 -Then, give it a `max-width` of `1400px` and add a `margin` of `0 auto` to center it. +次に、`max-width` を `1400px` に設定し、コンテナーを中央に配置するために `margin` を `0 auto` に設定してください。 # --hints-- -Your `.gallery` selector should have a `padding` property set to `20px 10px` as the value. +`.gallery` セレクターの `padding` プロパティの値を `20px 10px` に設定する必要があります。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.gallery')?.paddingTop, '20px'); @@ -22,13 +22,13 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('.gallery')?.paddingLeft, assert.equal(new __helpers.CSSHelp(document).getStyle('.gallery')?.paddingRight, '10px'); ``` -Your `.gallery` selector should have a `max-width` property set to `1400px` as the value. +`.gallery` セレクターの `max-width` プロパティの値を `1400px` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('.gallery')?.maxWidth === '1400px'); ``` -Your `.gallery` element should be centered using a `margin` with `0 auto` as the value. +`.gallery` 要素は、`margin` の値に `0 auto` を設定することによって中央に配置される必要があります。 ```js assert.include(new __helpers.CSSHelp(document).getStyle('.gallery').cssText, 'margin: 0px auto'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61539f32a206bd53ec116465.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61539f32a206bd53ec116465.md index 0df67edc75c..5c076a1a075 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61539f32a206bd53ec116465.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/61539f32a206bd53ec116465.md @@ -7,13 +7,13 @@ dashedName: step-17 # --description-- -Notice how some of your images have become distorted. This is because the images have different aspect ratios. Rather than setting each aspect ratio individually, you can use the `object-fit` property to determine how images should behave. +歪んでいる画像があることに注目してください。 これは、画像のアスペクト比が異なるためです。 各アスペクト比を個別に設定する代わりに、`object-fit` プロパティを使用して、画像の動作を指定できます。 -Give your `.gallery img` selector the `object-fit` property and set it to `cover`. This will tell the image to fill the `img` container while maintaining aspect ratio, resulting in cropping to fit. +`.gallery img` セレクターに `object-fit` プロパティを追加して、`cover` に設定してください。 これにより、アスペクト比を維持しながら画像を `img` コンテナー全体に広げ、はみ出した部分は切り取るように指示します。 # --hints-- -Your `.gallery img` selector should have an `object-fit` property set to `cover` as the value. +`.gallery img` セレクターの `object-fit` プロパティの値を `cover` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('.gallery img')?.objectFit === 'cover'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153a04847abee57a3a406ac.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153a04847abee57a3a406ac.md index abb839852ab..c0969e7d970 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153a04847abee57a3a406ac.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153a04847abee57a3a406ac.md @@ -1,21 +1,21 @@ --- id: 6153a04847abee57a3a406ac -title: Step 18 +title: ステップ 18 challengeType: 0 dashedName: step-18 --- # --description-- -Your images need some space between them. +画像の間にスペースを入れましょう。 -The `gap` CSS shorthand property sets the gaps, also knowns as gutters, between rows and columns. The `gap` property and its `row-gap` and `column-gap` sub-properties provide this functionality for flex, grid, and multi-column layout. You apply the property to the container element. +CSS の `gap` 一括指定プロパティは、列と行の隙間を設定します (この隙間を gutter (ガター、溝) と呼ぶこともあります)。 この隙間は、フレックス、グリッド、および段組み (multi-column) レイアウトにおいて、`gap` プロパティとそのサブプロパティである `row-gap` および `column-gap` を使って設定できます。 このプロパティはコンテナー要素に適用します。 -Give your `.gallery` flex container a `gap` property with `16px` as the value. +フレックスコンテナー `.gallery` に `gap` プロパティを追加し、値として `16px` を設定してください。 # --hints-- -Your `.gallery` selector should have a `gap` property with `16px` set as the value. +`.gallery` セレクターの `gap` プロパティの値を `16px` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('.gallery')?.gap === '16px'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153a3485f0b20591d26d2a1.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153a3485f0b20591d26d2a1.md index f1ec2efa5c7..2cb6dad63e7 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153a3485f0b20591d26d2a1.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153a3485f0b20591d26d2a1.md @@ -1,17 +1,17 @@ --- id: 6153a3485f0b20591d26d2a1 -title: Step 19 +title: ステップ 19 challengeType: 0 dashedName: step-19 --- # --description-- -Smooth out your images a bit by giving the `.gallery img` selector a `border-radius` property with `10px` set as the value. +`.gallery img` セレクターに `border-radius` プロパティと `10px` の値を設定して、画像の角をなめらかにしましょう。 # --hints-- -Your `.gallery img` selector should have a `border-radius` property with `10px` set as the value. +`.gallery img` セレクターの `border-radius` プロパティの値を `10px` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('.gallery img')?.borderRadius === '10px'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153a3952facd25a83fe8083.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153a3952facd25a83fe8083.md index 3cf84ad51b8..cf3c29826c9 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153a3952facd25a83fe8083.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/6153a3952facd25a83fe8083.md @@ -7,7 +7,7 @@ dashedName: step-20 # --description-- -The `::after` pseudo-element creates an element that is the last child of the selected element. You can use it to add an empty element after the last image. If you give it the same `width` as the images it will push the last image to the left when the gallery is in a two-column layout. Right now, it is in the center because you set `justify-content: center` on the flex container. +疑似要素 `::after` は、選択された要素の最後の子要素にあたる要素を作成します。 この擬似要素を使って、最後の画像の後に空の要素を追加することができます。 疑似要素に画像と同じ `width` を設定すれば、ギャラリーが 2 列レイアウトの時、最後の画像を左に押しやることができます。 Right now, it is in the center because you set `justify-content: center` on the flex container. Example: diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/615f171d05def3218035dc85.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/615f171d05def3218035dc85.md index c92fa4f61ed..2adf8a98549 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/615f171d05def3218035dc85.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-flexbox-by-building-a-photo-gallery/615f171d05def3218035dc85.md @@ -1,37 +1,37 @@ --- id: 615f171d05def3218035dc85 -title: Step 8 +title: ステップ 8 challengeType: 0 dashedName: step-8 --- # --description-- -Your images are too big. Create a `.gallery img` selector to target them. Give them all a `width` of `100%` and a `max-width` of `350px` so they shrink as needed but don't get too big. +画像が大きすぎますね。 画像を選択する `.gallery img` セレクターを作成してください。 すべての画像の `width` を `100%` に、`max-width` を `350px` に設定することで、必要に応じて縮小されながらも大きくなりすぎないようにしてください。 -Also set the `height` property to `300px` to keep your images a uniform size. +また、`height` プロパティを `300px` に設定して画像のサイズを均一にしましょう。 # --hints-- -You should have a `.gallery img` selector. +`.gallery img` セレクターが必要です。 ```js assert.exists(new __helpers.CSSHelp(document).getStyle('.gallery img')); ``` -Your `.gallery img` selector should have a `width` property set to `100%` as the value. +`.gallery img` セレクターの `width` プロパティの値を `100%` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('.gallery img')?.width === '100%'); ``` -Your `.gallery img` selector should have a `max-width` property set to `350px` as the value. +`.gallery img` セレクターの `max-width` プロパティの値を `350px` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('.gallery img')?.maxWidth === '350px'); ``` -Your `.gallery img` selector should have a `height` property set to `300px` as the value. +`.gallery img` セレクターの `height` プロパティの値を `300px` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('.gallery img')?.height === '300px'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619665c9abd72906f3ad30f9.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619665c9abd72906f3ad30f9.md index f424f7f5224..cecd55e7af5 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619665c9abd72906f3ad30f9.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619665c9abd72906f3ad30f9.md @@ -7,7 +7,7 @@ dashedName: step-1 # --description-- -楽しそうにぱたぱたと翼を動かすペンギンを作成しながら、CSS の座標変換とアニメーションについてより深く学びましょう。 +ぱたぱたと翼を動かす楽しそうなペンギンを作成しながら、CSS の座標変換とアニメーションについてより深く学びましょう。 基本的な HTML ボイラープレートから始めましょう。 `DOCTYPE` 宣言、言語を英語に設定した `html` 要素、適切な `meta` タグ一式、`head` 要素、`body` 要素、`title` 要素を追加してください。 また、スタイルシートをページにリンクしてください。 @@ -85,7 +85,7 @@ const title = document.querySelector('title'); assert.exists(title); ``` -Your `title` should have some text. +`title` には何らかのテキストが必要です。 ```js const title = document.querySelector('title'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/6196adc17f77a714d51485f2.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/6196adc17f77a714d51485f2.md index a99a2451107..92e61a4693d 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/6196adc17f77a714d51485f2.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/6196adc17f77a714d51485f2.md @@ -23,7 +23,7 @@ assert.notEmpty(new __helpers.CSSHelp(document).getStyle('.left-mountain')?.zInd assert.equal(new __helpers.CSSHelp(document).getStyle('.left-mountain')?.zIndex, '2'); ``` -You should not change the `z-index` of the `.ground` element. +`.ground` 要素の `z-index` は変更しないでください。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.ground')?.zIndex, '3'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d1c5fc9f8941a400955da.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d1c5fc9f8941a400955da.md index 32f784f3b1e..d5044d5c9fc 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d1c5fc9f8941a400955da.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d1c5fc9f8941a400955da.md @@ -7,7 +7,7 @@ dashedName: step-75 # --description-- -If you look closely, the _heart_ emoji is slightly different. これは、文字のプロパティの一部が `font-weight` スタイルの `bold` に上書きされたためです。 +よく見ると、_ハート_ の絵文字が先ほどまでと少し違います。 これは、文字のプロパティの一部が `font-weight` スタイルの `bold` に上書きされたためです。 ハートの絵文字を含む `div` を選択し、`font-weight` を初期値に設定することでこれを修正してください。 diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d237a107c10221ed743fa.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d237a107c10221ed743fa.md index 3bed7531e2f..aaaa9c5ba27 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d237a107c10221ed743fa.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d237a107c10221ed743fa.md @@ -7,43 +7,43 @@ dashedName: step-86 # --description-- -Fun fact: Penguins cannot fly without wings. +豆知識: 翼がないとペンギンは飛べません。 -Within `.penguin-body`, before the `.foot` elements, add two `div` elements each with a `class` of `arm`. Give the first `.arm` a `class` of `left`, and the second `.arm` a `class` of `right`. +`.penguin-body` 内の `.foot` 要素の前に、`class` が `arm` の `div` 要素を 2 つ追加してください。 最初の `.arm` の `class` に `left`、2 つ目の `.arm` の `class` に `right` を追加してください。 # --hints-- -You should add two `div` elements within `.penguin-body`. Expected `--fcc-expected--` `div` elements, found `--fcc-actual--`. +`.penguin-body` 内に `div` 要素を 2 つ加える必要があります。 `--fcc-expected--` 個の `div` 要素があるはずですが、`--fcc-actual--` 個となっています。 ```js assert.equal(document.querySelectorAll('.penguin-body > div')?.length, 4); ``` -You should give the first new `div` a `class` of `arm`. +1 つ目の新しい `div` の `class` に `arm` を設定する必要があります。 ```js assert.exists(document.querySelector('.penguin-body > div.arm')); ``` -You should give the second new `div` a `class` of `arm`. +2 つ目の新しい `div` の `class` に `arm` を設定する必要があります。 ```js assert.equal(document.querySelectorAll('.penguin-body > div.arm')?.length, 2); ``` -You should give one `div` a `class` of `left`. +`div` の 1 つに `left` という `class` を追加する必要があります。 ```js assert.exists(document.querySelector('.penguin-body > div.arm.left')); ``` -You should give the other `div` a `class` of `right`. +もう 1 つの `div` に `right` という `class` を追加する必要があります。 ```js assert.exists(document.querySelector('.penguin-body > div.arm.right')); ``` -You should place `.arm.right` after `.arm.left`. +`.arm.right` は `.arm.left` の後に置く必要があります。 ```js assert.exists(document.querySelector('.arm.left + .arm.right')); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d26b12e651022d80cd017.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d26b12e651022d80cd017.md index 15ea279388b..11781fb0aa7 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d26b12e651022d80cd017.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d26b12e651022d80cd017.md @@ -7,29 +7,29 @@ dashedName: step-87 # --description-- -`.arm` 要素を指定し、`width` を `30%`、`height` を `60%` に設定し、さらに角度が時計回りに `90deg` で、`gray` で始まり `rgb(209, 210, 199)` で終わる linear gradient (線形グラデーション) を、`background` に設定してください。 +`.arm` 要素について、`width` は `30%`、`height` は `60%` に設定し、`background` は線形グラデーションを時計回りに `90deg` の角度で、`gray` で始まり `rgb(209, 210, 199)` で終わるように設定してください。 # --hints-- -You should use the `.arm` selector. +`.arm` セレクターを使用する必要があります。 ```js assert.match(code, /\.arm\s*\{/); ``` -You should give `.arm` a `width` of `--fcc-expected--`, found `--fcc-actual--`. +`.arm` の `width` を `--fcc-expected--` に設定する必要がありますが、`--fcc-actual--` が設定されています。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.arm')?.width, '30%'); ``` -You should give `.arm` a `height` of `--fcc-expected--`, found `--fcc-actual--`. +`.arm` の `height` を `--fcc-expected--` に設定する必要がありますが、`--fcc-actual--` が設定されています。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.arm')?.height, '60%'); ``` -You should give `.arm` a `background` of `linear-gradient(90deg, gray, rgb(209, 210, 199))`. +`.arm` の `background` を `linear-gradient(90deg, gray, rgb(209, 210, 199))` に設定する必要があります。 ```js assert.include(['linear-gradient(90deg,gray,rgb(209,210,199))', 'rgba(0,0,0,0)linear-gradient(90deg,gray,rgb(209,210,199))repeatscroll0%0%'], new __helpers.CSSHelp(document).getStyle('.arm')?.getPropVal('background', true)); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2712853306238f41828e.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2712853306238f41828e.md index f92b45ab939..884d04036f7 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2712853306238f41828e.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2712853306238f41828e.md @@ -7,35 +7,35 @@ dashedName: step-88 # --description-- -Create a custom CSS variable named `--penguin-skin`, and set it to `gray`. Then, replace all relevant property values with it. +`--penguin-skin` という名前のカスタム CSS 変数を作成し、その値を `gray` に設定してください。 次に、関連するすべてのプロパティの値をその変数に置き換えてください。 # --hints-- -You should give `:root` a `--penguin-skin` property. +`:root` には `--penguin-skin` プロパティが必要です。 ```js assert.exists(new __helpers.CSSHelp(document).getStyle(':root').getPropertyValue('--penguin-skin')); ``` -You should give `--penguin-skin` a value of `gray`, but found `--fcc-actual--`. +`--penguin-skin` には `gray` という値を設定する必要がありますが、`--fcc-actual--` が設定されています。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle(':root').getPropVal('--penguin-skin', true), 'gray'); ``` -You should give `.penguin-head` a `background` of `linear-gradient(45deg, var(--penguin-skin), rgb(239, 240, 228))`. +`.penguin-head` の `background` を `linear-gradient(45deg, var(--penguin-skin), rgb(239, 240, 228))` に設定する必要があります。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.penguin-head')?.getPropVal('background', true), 'linear-gradient(45deg,var(--penguin-skin),rgb(239,240,228))'); ``` -You should give `.penguin-body::before` a `background-color` of `var(--penguin-skin)`, but found `--fcc-actual--`. +`.penguin-body::before` の `background-color` を `var(--penguin-skin)` に設定する必要がありますが、`--fcc-actual--` が得られました。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.penguin-body::before')?.getPropVal('background-color', true), 'var(--penguin-skin)'); ``` -You should give `.arm` a `background` of `linear-gradient(90deg, var(--penguin-skin), rgb(209, 210, 199))`. +`.arm` の `background` を `linear-gradient(90deg, var(--penguin-skin), rgb(209, 210, 199))` に設定する必要があります。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.arm')?.getPropVal('background', true), 'linear-gradient(90deg,var(--penguin-skin),rgb(209,210,199))'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2b7a84e78b246f2d17a2.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2b7a84e78b246f2d17a2.md index 61729fa039b..de5ccdd5859 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2b7a84e78b246f2d17a2.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2b7a84e78b246f2d17a2.md @@ -7,7 +7,7 @@ dashedName: step-89 # --description-- -Target the `.arm` element with a `class` of `left`, and position it `35%` from the top, and `5%` from the left of its parent. Then, target the `.arm` element with a `class` of `right`, and position it `0%` from the top, and `-5%` from the right of its parent. +`class` に `left` を含む `.arm` 要素を選択し、親要素の上端から `35%`、左端から `5%` の位置に配置してください。(訳注: この要素が向かって左の腕になります。) 次に、`class` に `right` を含む `.arm` 要素を選択し、親要素の上端から `0%`、右端から `-5%` の位置に配置してください。(訳注: 向かって右の腕になります。) # --hints-- @@ -17,13 +17,13 @@ Target the `.arm` element with a `class` of `left`, and position it `35%` from t assert.match(code, /\.arm\.left\s*\{/); ``` -You should give `.arm.left` a `top` of `--fcc-expected--`, but found `--fcc-actual--`. +`.arm.left` の `top` を `--fcc-expected--` に設定する必要がありますが、`--fcc-actual--` が設定されています。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.arm.left')?.top, '35%'); ``` -You should give `.arm.left` a `left` of `--fcc-expected--`, but found `--fcc-actual--`. +`.arm.left` の `left` を `--fcc-expected--` に設定する必要がありますが、`--fcc-actual--` が設定されています。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.arm.left')?.left, '5%'); @@ -35,13 +35,13 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('.arm.left')?.left, '5%'); assert.match(code, /\.arm\.right\s*\{/); ``` -You should give `.arm.right` a `top` of `0%`. +`.arm.right` の `top` プロパティを `0%` に設定する必要があります。 ```js assert.include(['0%', '0', '0px'], new __helpers.CSSHelp(document).getStyle('.arm.right')?.top); ``` -You should give `.arm.right` a `right` of `--fcc-expected--`, but found `--fcc-actual--`. +`.arm.right` の `right` プロパティを `--fcc-expected--` に設定する必要がありますが、`--fcc-actual--` が得られました。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.arm.right')?.right, '-5%'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2bd9c1d43c2526e96f1f.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2bd9c1d43c2526e96f1f.md index 99569633a27..83cb9b0af56 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2bd9c1d43c2526e96f1f.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2bd9c1d43c2526e96f1f.md @@ -7,17 +7,17 @@ dashedName: step-90 # --description-- -Within the `.arm.left` selector, alter the origin of the `transform` function to be the top left corner of its parent. +`.arm.left` セレクター内で、`transform` 関数の原点を初期値から変更し、親要素の左上隅に設定してください。 # --hints-- -You should use the `transform-origin` property to do this. +`transform-origin` プロパティを使用して原点を設定する必要があります。 ```js assert.notEmpty(new __helpers.CSSHelp(document).getStyle('.arm.left')?.transformOrigin); ``` -You should give `.arm.left` a `transform-origin` of `0% 0%` or `top left`. +`.arm.left` の `transform-origin` を `0% 0%` もしくは `top left` に設定する必要があります。 ```js assert.include(['0% 0%', 'left top', '0% 0% 0px', 'left top 0px'], new __helpers.CSSHelp(document).getStyle('.arm.left')?.transformOrigin); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2d4e80400325ff89664a.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2d4e80400325ff89664a.md index d93824d1ad1..f5500147bf2 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2d4e80400325ff89664a.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2d4e80400325ff89664a.md @@ -7,11 +7,11 @@ dashedName: step-91 # --description-- -To keep the linear gradient on the correct side of the penguin's left arm, first rotate it by `130deg`, then invert the x-axis. +線形グラデーションの方向が正しくなるように、ペンギンの向かって左側の腕を、まず `130deg` 回転させてから X 軸方向に反転させてください。 # --hints-- -You should give `.arm.left` a `transform` of `rotate(130deg) scaleX(-1)`. +`.arm.left` の `transform` を `rotate(130deg) scaleX(-1)` に設定する必要があります。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.arm.left').getPropVal('transform', true), 'rotate(130deg)scaleX(-1)'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2ebc81ba81271460850d.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2ebc81ba81271460850d.md index 961c536f052..ee9d1f634c4 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2ebc81ba81271460850d.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2ebc81ba81271460850d.md @@ -7,11 +7,11 @@ dashedName: step-92 # --description-- -Rotate the right arm by `45deg` counterclockwise. +向かって右の腕を反時計回りに `45deg` 回転させてください。 # --hints-- -You should give `.arm.right` a `transform` of `rotate(-45deg)`. +`.arm.right` の `transform` を `rotate(-45deg)` に設定する必要があります。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.arm.right')?.getPropVal('transform', true), 'rotate(-45deg)'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2f0e9440bc27caee1cec.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2f0e9440bc27caee1cec.md index 35857cc93e3..4d78195184e 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2f0e9440bc27caee1cec.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2f0e9440bc27caee1cec.md @@ -7,13 +7,13 @@ dashedName: step-93 # --description-- -Fun fact: Most, if not all, flippers are not naturally rectangles. +豆知識: (もし「すべて」ではないとしても) ほとんどのペンギンの翼は、普通は長方形ではありません。 -Give the `.arm` elements top -left, -right, and bottom-right corners a radius of `30%`, and the bottom-left corner a radius of `120%`. +`.arm` 要素の左上と右上、および右下の角の半径を `30%`、左下の角の半径を `120%` に設定してください。 # --hints-- -You should give `.arm` a `border-radius` of `30% 30% 30% 120%`. +`.arm` の `border-radius` を `30% 30% 30% 120%` に設定する必要があります。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.arm')?.borderTopLeftRadius, '30%'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2fd3ff4f772882e3d998.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2fd3ff4f772882e3d998.md index cfb1d506dca..776f930bc6d 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2fd3ff4f772882e3d998.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2fd3ff4f772882e3d998.md @@ -7,11 +7,11 @@ dashedName: step-94 # --description-- -Change the `.arm` elements' stacking order such that they appear behind the `.penguin-body` element. +`.arm` 要素の重ね合わせレベルを変更して、腕が `.penguin-body` 要素の後ろに表示されるようにしてください。 # --hints-- -You should give `.arm` a `z-index` of `--fcc-expected--`, but found `--fcc-actual--`. +`.arm` の `z-index` を `--fcc-expected--` に設定する必要がありますが、`--fcc-actual--` が設定されています。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.arm')?.zIndex, '-1'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md index 1bc323e1f77..4c7cd0c8940 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md @@ -7,19 +7,19 @@ dashedName: step-95 # --description-- -Now, you are going to use CSS animations to make the penguin wave. +では、CSS アニメーションを使用してペンギンに翼を振らせてみましょう。 -Define a new `@keyframes` named `wave`. +新しい `@keyframes` を作成し、`wave` という名前をつけてください。 # --hints-- -You should defined a new `@keyframes` rule. +`@keyframes` ルールを新たに定義する必要があります。 ```js assert.notEmpty(new __helpers.CSSHelp(document).getCSSRules('keyframes')); ``` -You should give the `@keyframes` rule a `name` of `--fcc-expected--`, but found `--fcc-actual--`. +You should give the `@keyframes` rule a name of `--fcc-expected--`, but found `--fcc-actual--`. ```js assert.equal(new __helpers.CSSHelp(document).getCSSRules('keyframes')?.[0]?.name, 'wave'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d324f5915c929f36ae91d.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d324f5915c929f36ae91d.md index c1d420c9221..37dd1ffc97a 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d324f5915c929f36ae91d.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d324f5915c929f36ae91d.md @@ -7,29 +7,29 @@ dashedName: step-96 # --description-- -Give `wave` four waypoints starting at `10%`, and incrementing by `10%`. +`wave` に、`10%` から始めて `10%` ごとに全部で 4 つの経由点を設定してください。 # --hints-- -You should add a `10%` waypoint for `@keyframes wave`. +`10%` の経由点を `@keyframes wave` に追加する必要があります。 ```js assert([...[...new __helpers.CSSHelp(document).getCSSRules('keyframes')].find(rule => rule?.name === 'wave')?.cssRules].some(css => css?.keyText === '10%')); ``` -You should add a `20%` waypoint for `@keyframes wave`. +`20%` の経由点を `@keyframes wave` に追加する必要があります。 ```js assert([...[...new __helpers.CSSHelp(document).getCSSRules('keyframes')].find(rule => rule?.name === 'wave')?.cssRules].some(css => css?.keyText === '20%')); ``` -You should add a `30%` waypoint for `@keyframes wave`. +`30%` の経由点を `@keyframes wave` に追加する必要があります。 ```js assert([...[...new __helpers.CSSHelp(document).getCSSRules('keyframes')].find(rule => rule?.name === 'wave')?.cssRules].some(css => css?.keyText === '30%')); ``` -You should add a `40%` waypoint for `@keyframes wave`. +`40%` の経由点を `@keyframes wave` に追加する必要があります。 ```js assert([...[...new __helpers.CSSHelp(document).getCSSRules('keyframes')].find(rule => rule?.name === 'wave')?.cssRules].some(css => css?.keyText === '40%')); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d32c7fa21f32aaa91d499.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d32c7fa21f32aaa91d499.md index 7a1733de2f6..c3a63ec8771 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d32c7fa21f32aaa91d499.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d32c7fa21f32aaa91d499.md @@ -7,11 +7,11 @@ dashedName: step-97 # --description-- -Within the first waypoint, rotate to `110deg`, and retain the scaling of the left arm. +最初の経由点において、回転を `110deg` に、スケールの変形は向かって左側の腕に設定されている値そのままに設定してください。 # --hints-- -You should give the `10%` waypoint a `transform` of `rotate(110deg) scaleX(-1)`. +`10%` 経由点の `transform` を `rotate(110deg) scaleX(-1)` に設定する必要があります。 ```js assert([...[...new __helpers.CSSHelp(document).getCSSRules('keyframes')].find(rule => rule?.name === 'wave')?.cssRules].find(css => css?.keyText === '10%')?.style?.transform?.replace(/\s+/g, '') === 'rotate(110deg)scaleX(-1)'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d333b738e3c2b5d58b095.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d333b738e3c2b5d58b095.md index 0d59cfc42c6..611404ac59e 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d333b738e3c2b5d58b095.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d333b738e3c2b5d58b095.md @@ -7,11 +7,11 @@ dashedName: step-98 # --description-- -Within the second waypoint, rotate to `130deg`, and retain the scaling of the left arm. +2 番目の経由点において、回転を `130deg` に、スケールの変形は向かって左側の腕の設定値そのままに設定してください。 # --hints-- -You should give the `20%` waypoint a `transform` of `rotate(130deg) scaleX(-1)`. +`20%` 経由点の `transform` を `rotate(130deg) scaleX(-1)` に設定する必要があります。 ```js assert([...[...new __helpers.CSSHelp(document).getCSSRules('keyframes')].find(rule => rule?.name === 'wave')?.cssRules].find(css => css?.keyText === '20%')?.style?.transform?.replace(/\s+/g, '') === 'rotate(130deg)scaleX(-1)'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d337765b9f02c10e93722.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d337765b9f02c10e93722.md index c7ef65eb570..e1dcbd8c204 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d337765b9f02c10e93722.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d337765b9f02c10e93722.md @@ -7,17 +7,17 @@ dashedName: step-99 # --description-- -For the third and fourth waypoints, repeat the `transform` pattern once more. +3 番目と 4 番目の経由点に対して、同じ `transform` のパターンをもう一度繰り返し設定してください。 # --hints-- -You should give the `30%` waypoint a `transform` of `rotate(110deg) scaleX(-1)`. +`30%` 経由点の `transform` を `rotate(110deg) scaleX(-1)` に設定する必要があります。 ```js assert([...[...new __helpers.CSSHelp(document).getCSSRules('keyframes')].find(rule => rule?.name === 'wave')?.cssRules].find(css => css?.keyText === '30%')?.style?.transform?.replace(/\s+/g, '') === 'rotate(110deg)scaleX(-1)'); ``` -You should give the `40%` waypoint a `transform` of `rotate(130deg) scaleX(-1)`. +`40%` 経由点の `transform` を `rotate(130deg) scaleX(-1)` に設定する必要があります。 ```js assert([...[...new __helpers.CSSHelp(document).getCSSRules('keyframes')].find(rule => rule?.name === 'wave')?.cssRules].find(css => css?.keyText === '40%')?.style?.transform?.replace(/\s+/g, '') === 'rotate(130deg)scaleX(-1)'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d33c51140292cc5a21742.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d33c51140292cc5a21742.md index 2c1d6467632..50407f0b287 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d33c51140292cc5a21742.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d33c51140292cc5a21742.md @@ -7,29 +7,29 @@ dashedName: step-100 # --description-- -Use the `wave` animation on the left arm. Have the animation last `3s`, infinitely iterate, and have a linear timing function. +向かって左の腕に `wave` アニメーションを適用してください。 3 秒間 (`3s`) のアニメーションが無限に繰り返されるように設定し、また、線形 (linear) タイミング関数を設定してください。 # --hints-- -You should give `.arm.left` an `animation-name` of `--fcc-expected--`, but found `--fcc-actual--`. +`.arm.left` の `animation-name` を `--fcc-expected--` に設定する必要がありますが、`--fcc-actual--` が設定されています。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.arm.left')?.animationName, 'wave'); ``` -You should give `.arm.left` an `animation-duration` of `--fcc-expected--`, but found `--fcc-actual--`. +`.arm.left` の `animation-duration` を `--fcc-expected--` に設定する必要がありますが、`--fcc-actual--` が設定されています。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.arm.left')?.animationDuration, '3s'); ``` -You should give `.arm.left` an `animation-iteration-count` of `--fcc-expected--`, but found `--fcc-actual--`. +`.arm.left` の `animation-iteration-count` を `--fcc-expected--` に設定する必要がありますが、`--fcc-actual--` が設定されています。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.arm.left')?.animationIterationCount, 'infinite'); ``` -You should give `.arm.left` an `animation-timing-function` of `--fcc-expected--`, but found `--fcc-actual--`. +`.arm.left` の `animation-timing-function` を `--fcc-expected--` に設定する必要がありますが、`--fcc-actual--` が設定されています。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.arm.left')?.animationTimingFunction, 'linear'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d3482f505452d861d0f62.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d3482f505452d861d0f62.md index a63ff9d4ebf..83c54ab4b2d 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d3482f505452d861d0f62.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d3482f505452d861d0f62.md @@ -7,17 +7,17 @@ dashedName: step-101 # --description-- -Target the `.penguin` element when it is active, and increase its size by `50%` in both dimensions. +アクティブ状態の `.penguin` 要素を対象に、サイズを縦横両方に `50%` 拡大してください。 # --hints-- -You should use the `.penguin:active` selector. +`.penguin:active` セレクターを使用する必要があります。 ```js assert.match(code, /\.penguin:active\s*\{/); ``` -You should give `.penguin:active` a `transform` of `scale(1.5)`. +`.penguin:active` の `transform` を `scale(1.5)` に設定する必要があります。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.penguin:active')?.getPropVal('transform', true), 'scale(1.5)'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d3561a951bf2e41a24f10.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d3561a951bf2e41a24f10.md index ff53e59965b..b885ce3668b 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d3561a951bf2e41a24f10.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d3561a951bf2e41a24f10.md @@ -7,13 +7,13 @@ dashedName: step-102 # --description-- -When you activate the `.penguin` element, it might look as though you can drag it around. This is not true. +`.penguin` 要素をアクティブ化 (クリック) した時、ドラッグできそうに見えるかもしれません。 でも実際はできません。 -Indicate this to users, by giving the active element a `cursor` property of `not-allowed`. +そのことをユーザーに分かりやすくするために、アクティブな要素の `cursor` プロパティを `not-allowed` に設定してください。 # --hints-- -You should give `.penguin:active` a `cursor` property of `not-allowed`. +`.penguin:active` の `cursor` プロパティを `not-allowed` に設定する必要があります。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.penguin:active')?.cursor, 'not-allowed'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d36103839c82efa95dd34.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d36103839c82efa95dd34.md index 1c2f21b049c..b941015a708 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d36103839c82efa95dd34.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d36103839c82efa95dd34.md @@ -7,23 +7,23 @@ dashedName: step-103 # --description-- -Change the `.penguin` element's `transition` behavior during transformation to have a duration of `1s`, a timing function of `ease-in-out`, and a delay of `0ms`. +`.penguin` 要素の変形中の振る舞い、トランジション (`transition`) を変更し、所要時間 (duration) を `1s`、タイミング関数を `ease-in-out`、遅延 (delay) を `0ms` に設定してください。 # --hints-- -You should give `.penguin` a `transition-duration` of `--fcc-expected--`, but found `--fcc-actual--`. +`.penguin` の `transition-duration` を `--fcc-expected--` に設定する必要がありますが、`--fcc-actual--` が設定されています。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.penguin')?.transitionDuration, '1s'); ``` -You should give `.penguin` a `transition-timing-function` of `--fcc-expected--`, but found `--fcc-actual--`. +`.penguin` の `transition-timing-function` を `--fcc-expected--` に設定する必要がありますが、`--fcc-actual--` が設定されています。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.penguin')?.transitionTimingFunction, 'ease-in-out'); ``` -You should give `.penguin` a `transition-delay` of `--fcc-expected--`, but found `--fcc-actual--`. +`.penguin` の `transition-delay` を `--fcc-expected--` に設定する必要がありますが、`--fcc-actual--` が設定されています。 ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.penguin')?.transitionDelay, '0ms'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d3711d04d623000013e9e.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d3711d04d623000013e9e.md index b4bd09f6493..93a22f11000 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d3711d04d623000013e9e.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d3711d04d623000013e9e.md @@ -7,13 +7,13 @@ dashedName: step-104 # --description-- -Finally, calculate the `height` of the `.ground` element to be the height of the viewport minus the height of the `.penguin` element. +最後に、`.ground` 要素の `height` を、ビューポートの高さから `.penguin` 要素の高さを引いて算出される値に設定してください。 -Congratulations! You have completed the Responsive Web Design certification. +おめでとうございます! レスポンシブウェブデザイン認定講座を完了しました。 # --hints-- -You should give `.ground` a `height` of `calc(100vh - 300px)`. +`.ground` の `height` を `calc(100vh - 300px)` に設定する必要があります。 ```js assert.include(['calc(100vh-300px)', 'calc(-300px+100vh)'], new __helpers.CSSHelp(document).getStyle('.ground')?.getPropVal('height', true)); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc174fcf86c76b9248c6eb2.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc174fcf86c76b9248c6eb2.md index 4b68e2a78d6..15a1202f889 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc174fcf86c76b9248c6eb2.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc174fcf86c76b9248c6eb2.md @@ -7,17 +7,17 @@ dashedName: step-1 # --description-- -HTML 要素は、`

    ` のような開始タグと `

    ` のような終了タグを持ちます。 +HTML 要素は、`

    ` のような「開始タグ」と、`

    ` のような「終了タグ」を持ちます。 要素のテキストは開始タグと終了タグの間に入ります。 -`h1` 要素を見つけて、そのテキストを下記に変更してください: +`h1` 要素を見つけて、要素のテキストを下記に変更してください: `CatPhotoApp` # --hints-- -テキスト `CatPhotoApp` がコード内に存在する必要があります。 スペルが正しいか確認してください。 +コード内には `CatPhotoApp` というテキストが必要です。 スペルが正しいか確認してください。 ```js assert(code.match(/catphotoapp/i)); @@ -47,7 +47,7 @@ assert(document.querySelectorAll('h1').length === 1); assert(document.querySelector('h1').innerText.toLowerCase() === 'catphotoapp'); ``` -You appear to be using a browser extension that is modifying the page. Be sure to turn off all browser extensions. +ウェブページを変更するブラウザ拡張機能が使用されているようです。 拡張機能をオフにしてください。 ```js assert.isAtMost(document.querySelectorAll('script').length, 2); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md index f29b6a98820..5c03fe049c9 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md @@ -77,6 +77,7 @@ assert(collection.indexOf('H1') < collection.indexOf('H2')); --fcc-editable-region--

    CatPhotoApp

    + --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md index 7ee08f2cb91..fb1d1134c09 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md @@ -53,6 +53,7 @@ assert(collection.indexOf('H2') < collection.indexOf('P'));

    CatPhotoApp

    --fcc-editable-region--

    Cat Photos

    + --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md index a969f2d0b8c..8ab29799b3d 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md @@ -63,6 +63,7 @@ assert(

    Cat Photos

    --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md index d3319cab0a1..575fe3ad786 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md @@ -9,7 +9,7 @@ dashedName: step-5 HTML5 には、さまざまなコンテンツの領域を表す要素があります。 これらの要素によって HTML が読みやすくなり、検索エンジン最適化 (SEO) やアクセシビリティの向上に役立ちます。 -Identify the main section of this page by adding a `
    ` opening tag before the `h1` element, and a `
    ` closing tag after the `p` element. +このページのメインとなる領域を表すため、`h1` 要素の前に開始タグ `
    `、`p` 要素の後に終了タグ `
    ` を追加しましょう。 # --hints-- @@ -25,14 +25,14 @@ assert(document.querySelector('main')); assert(code.match(/<\/main\>/)); ``` -Your `main` element's opening tag should be below the `body` element. 順番が誤っているようです。 +Your `main` element's opening tag should be below the `body` element's opening tag. 順番が誤っているようです。 ```js const main = document.querySelector('main'); assert.equal(main?.previousElementSibling, null); ``` -Your `main` element's opening tag should be above the `h1` element. 順番が誤っているようです。 +`main` 要素の開始タグは `h1` 要素の上に置く必要があります。 順番が誤っているようです。 ```js const collection = [...document.querySelectorAll('main,h1')].map( @@ -60,10 +60,12 @@ assert( --fcc-editable-region-- +

    CatPhotoApp

    Cat Photos

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md index a5a5e284588..4a8fbb80c8f 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md @@ -53,6 +53,7 @@ assert(collection.indexOf('P') < collection.indexOf('IMG')); --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md index 754dcc0dd5e..ea7c5e2cdc7 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md @@ -70,6 +70,7 @@ assert( --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- A cute orange cat lying on its back. diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa22d1b521be39a3de7be0.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa22d1b521be39a3de7be0.md index fc6d7084bbc..96c05fca840 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa22d1b521be39a3de7be0.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa22d1b521be39a3de7be0.md @@ -9,7 +9,7 @@ dashedName: step-12 前のステップでは、`link to cat pictures` という言葉をアンカー (`a`) の開始タグと終了タグの間に配置することで、リンクに変えることができました。 ある要素、例えば `p` 要素の中の言葉に対しても、同じようにリンクを設定することができます。 -In the text of your `p` element, turn the words `cat photos` into a link to `https://freecatphotoapp.com` by adding opening and closing anchor (`a`) tags around these words. +`p` 要素内のテキストについて、`cat photos` という言葉の前後にアンカータグ (`a`) の開始タグと終了タグを追加して、この部分を `https://freecatphotoapp.com` へのリンクにしてください。 # --hints-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md index bf2815b79bb..6a883f072be 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md @@ -66,6 +66,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md index 8cdac618f7e..8477feb031b 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md @@ -75,6 +75,7 @@ assert( --fcc-editable-region--

    Cat Lists

    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md index 61b97b4deea..5b6e9a2cead 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md @@ -49,6 +49,7 @@ assert(secondSectionLastElemNode.nodeName === 'UL'); --fcc-editable-region--

    Cat Lists

    Things cats love:

    + --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md index d55e63f7ae1..e6c5d0cf090 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md @@ -69,6 +69,7 @@ assert(

    Things cats love:

    --fcc-editable-region--
      +
    --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md index 06c9e96946e..188e0d91c23 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md @@ -85,6 +85,7 @@ assert(!/\laser pointers
  • lasagna
  • + --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md index 4fb18c3068b..90af0926fee 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md @@ -65,7 +65,9 @@ assert(
  • lasagna
  • --fcc-editable-region-- + A slice of lasagna on a plate. + --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md index d564812106f..3e4023617ce 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md @@ -88,6 +88,7 @@ assert( --fcc-editable-region--
    A slice of lasagna on a plate. +
    --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md index d5916a1402e..ee7cdb7b784 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md @@ -72,6 +72,7 @@ assert( A slice of lasagna on a plate.
    Cats love lasagna.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md index 6d5fe3f4106..89f0bb491c1 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md @@ -84,6 +84,7 @@ assert.deepStrictEqual( --fcc-editable-region--

    Top 3 things cats hate:

    + --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md index ecf0dc32540..f816ec24193 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md @@ -63,6 +63,7 @@ assert($('main > section')[1].lastElementChild.nodeName === 'FIGURE');
  • thunder
  • other cats
  • + --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md index 3f90607d4fd..1d171fbc616 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md @@ -85,7 +85,9 @@ assert(
    Five cats looking around a field. --fcc-editable-region-- +
    Cats hate other cats.
    + --fcc-editable-region--
    diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md index 6f31b36c1fe..9b039afdf38 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md @@ -96,6 +96,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md index cbee444301b..b4594e3dcc4 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md @@ -79,6 +79,7 @@ assert($('form')[0].innerHTML.trim().length === 0);
    --fcc-editable-region--

    Cat Form

    + --fcc-editable-region--
    diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md index 3ff06351ddc..534d15f50fd 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md @@ -99,6 +99,7 @@ assert(

    Cat Form

    --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md index 7706bd1d631..bd65e42aa5e 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md @@ -83,6 +83,7 @@ assert(collection.indexOf('INPUT') < collection.indexOf('BUTTON'));
    --fcc-editable-region-- + --fcc-editable-region--
    diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md index 3e5ca89e63f..cfbcb39bdee 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md @@ -88,8 +88,10 @@ assert(

    Cat Form

    --fcc-editable-region-- + + --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md index ca0589c21af..e44fa61cb4c 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md @@ -117,6 +117,7 @@ assert(
    --fcc-editable-region-- What's your cat's personality? + --fcc-editable-region--
    diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md index 76f6b1a551f..3eb43664b20 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md @@ -95,8 +95,9 @@ assert(document.querySelector('main').nextElementSibling.nodeName === 'FOOTER'); --fcc-editable-region-- + - --fcc-editable-region-- + ``` diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md index 2dfbec29a30..620e38a3851 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md @@ -96,6 +96,7 @@ assert(extraSpacesRemoved.match(/No Copyright - freeCodeCamp\.org$/i)); --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md index 0963be47df0..07ad8b1eab5 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md @@ -9,7 +9,7 @@ dashedName: step-65 ここまでページに追加してきた物がすべて `body` 要素内にあることに注目しましょう。 ページ上に表示されるべきコンテンツの要素は、すべて `body` 要素の中に入れます。 ですが、その他の重要な情報を `head` 要素に入れます。 -`body` 要素のすぐ上に `head` 要素を追加してください。 +Add a `head` element above the `body` element. # --hints-- @@ -43,9 +43,11 @@ assert(noSpaces.match(/\<\/head\>\/)); ## --seed-contents-- ```html - --fcc-editable-region-- + + +--fcc-editable-region--

    CatPhotoApp

    @@ -102,7 +104,6 @@ assert(noSpaces.match(/\<\/head\>\/));

    ---fcc-editable-region-- ``` diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md index 7a8d4e06f33..4129bd2d320 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md @@ -48,6 +48,7 @@ assert(document.title && document.title.toLowerCase() === 'catphotoapp'); --fcc-editable-region-- + --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md index caafa2ae487..f66784d2292 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md @@ -32,11 +32,12 @@ assert(noSpaces.match(/^\<\!DOCTYPEhtml\>\ +--fcc-editable-region-- CatPhotoApp ---fcc-editable-region--

    CatPhotoApp

    diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md index d5d019a9f7f..7faa5a09d6c 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md @@ -89,6 +89,7 @@ assert(!/\ --fcc-editable-region--
    +
    --fcc-editable-region--
    diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md index 8d6cd5be983..907534e6750 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md @@ -7,7 +7,7 @@ dashedName: step-30 # --description-- -追加した画像のアクセシビリティを向上させるために、`alt` 属性に下記テキストを追加してください: +To improve accessibility of the image you added, add an `alt` attribute with the text: `Five cats looking around a field.` diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md index ba8268583ba..71eabbd765b 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md @@ -110,11 +110,12 @@ assert(
  • thunder
  • other cats
  • +--fcc-editable-region--
    ---fcc-editable-region-- Five cats looking around a field. ---fcc-editable-region-- +
    +--fcc-editable-region--
    diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md index 5b0fc7ceaed..458fb5a7885 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md @@ -124,6 +124,7 @@ assert(code.match(/<\/label>\s*\s*]+>\s*Outdoor/i)); --fcc-editable-region-- + --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md index bc50467d6c9..c2ef03ffc5c 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md @@ -9,7 +9,7 @@ dashedName: step-16 新しいコンテンツを追加する前に、`section` 要素を利用して猫の写真とこれから追加するコンテンツを分けましょう。 -Take your `h2`, comment, `p`, and anchor (`a`) elements and nest them in a `section` element. +コード内にある `h2` 要素、コメント、`p` 要素、アンカー (`a`) 要素をまとめて、1 つの `section` 要素の中にネストしてください。 # --hints-- @@ -31,7 +31,7 @@ assert(code.match(/<\/section\>/)); assert(document.querySelector('section').parentNode.nodeName === 'MAIN'); ``` -既存の `h2` 要素、コメント、`p` 要素、アンカー (`a`) 要素が、`section` 要素の開始タグと終了タグの間にあるようにしてください。 +既存の `h2` 要素、コメント、`p` 要素、アンカー (`a`) 要素を、`section` 要素の開始タグと終了タグの間に入れてください。 ```js const childrenOfSection = [...document.querySelector('section').childNodes]; @@ -41,7 +41,7 @@ const foundElements = childrenOfSection.filter((child) => { assert(foundElements.length === 3); ``` -The `h1` element should not be nested in the `section` element. +`h1` 要素は `section` 要素の中にネストしないでください。 ```js const childrenOfSection = [...document.querySelector('section').childNodes]; @@ -57,6 +57,7 @@ assert.isFalse(includesH1); --fcc-editable-region-- +

    CatPhotoApp

    Cat Photos

    @@ -64,6 +65,7 @@ assert.isFalse(includesH1);

    Click here to view more cat photos.

    A cute orange cat lying on its back.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md index 97c0b77c136..08cde4bd4c3 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md @@ -73,6 +73,7 @@ assert(foundElems.length === 2);

    Click here to view more cat photos.

    A cute orange cat lying on its back. + --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md index b1f80e890fa..16e64474475 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md @@ -90,6 +90,7 @@ assert($('main > section')[2].children.length === 0);
    Cats hate other cats.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md index 0118ded911f..9711e19d270 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md @@ -90,6 +90,7 @@ assert(extraSpacesRemoved.match(/Is your cat an indoor or outdoor cat\??$/i)); --fcc-editable-region--
    +
    diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md index 92123597570..5de491a1c40 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md @@ -116,9 +116,10 @@ assert(fieldsetChildren[0].length > fieldsetChildren[1].length); + +--fcc-editable-region-- ---fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md index 589946a2ab8..413f084e2fc 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md @@ -101,6 +101,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md index 673aa341e8f..18e887a1505 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md @@ -13,7 +13,7 @@ You can set browser behavior by adding self-closing `meta` elements in the `head ``` -Tell the browser to parse the markdown into multiple languages by creating a `meta` element as a child of the `head` element. meta 要素の `charset` 属性を `UTF-8` に設定してください。 +Tell the browser to parse the markup into multiple languages by creating a `meta` element as a child of the `head` element. meta 要素の `charset` 属性を `UTF-8` に設定してください。 # --hints-- @@ -45,6 +45,7 @@ assert.notMatch(code, /<\/meta\s*>?/i); --fcc-editable-region-- + CatPhotoApp --fcc-editable-region-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd5a93fd62bb35968adeab.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd5a93fd62bb35968adeab.md index c980a30f15a..21ee6453fe3 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd5a93fd62bb35968adeab.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd5a93fd62bb35968adeab.md @@ -7,9 +7,9 @@ dashedName: step-1 # --description-- -Set up your HTML with the `DOCTYPE`, `html` indicating this document is in English, `head`, and `body` elements. +`DOCTYPE` と、このドキュメントが英語だという指定を含む `html` 要素、`head` 要素、そして `body` 要素で HTML を書き始めましょう。 -Give your `head` element the appropriate `meta` elements for the `charset` and `viewport`, a `title` element with an appropriate title, and a `link` element for your stylesheet. +`head` 要素内には、`charset` と `viewport` を適切に設定する `meta` 要素と、適切なタイトルを含む `title` 要素、そしてスタイルシートへの `link` 要素を追加してください。 # --hints-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd6343fb42013d99bcd7f3.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd6343fb42013d99bcd7f3.md index 0921ef960a7..91a1633cfa1 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd6343fb42013d99bcd7f3.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd6343fb42013d99bcd7f3.md @@ -7,17 +7,17 @@ dashedName: step-2 # --description-- -Within your `body` element, nest a `section` element within a `main` element. +`body` 要素内で、`main` 要素の中に `section` 要素をネストしてください。 # --hints-- -The first element inside the `body` element should be your `main` element. +`body` 要素内の最初の要素は `main` 要素である必要があります。 ```js assert(document.querySelector('body')?.children?.[0]?.localName === 'main'); ``` -You should have a `section` element within your `main` element. +`main` 要素の中に `section` 要素が 1 つ必要です。 ```js assert(document.querySelector('main')?.children?.[0]?.localName === 'section'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd66c687e610436494c6f1.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd66c687e610436494c6f1.md index 7fc3fa9cbaa..0a9e7c8a499 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd66c687e610436494c6f1.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd66c687e610436494c6f1.md @@ -7,7 +7,7 @@ dashedName: step-3 # --description-- -Within your `section` element, add an `h1` element with a nested `span` element. +`section` 要素内に、`h1` 要素とその中にネストされた `span` 要素を追加してください。 # --hints-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd67a656743144844941cb.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd67a656743144844941cb.md index 6b5d3d8326d..a20d4311b5c 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd67a656743144844941cb.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd67a656743144844941cb.md @@ -7,39 +7,39 @@ dashedName: step-4 # --description-- -Screen readers announce HTML elements based on the document flow. We will eventually want the balance sheet to have a heading of "Balance Sheet" and a subheading of "AcmeWidgetCorp". However, this order does not make sense if announced by a screen reader. +スクリーンリーダーはドキュメントフローに従って HTML 要素を読み上げます。 最終的にこのバランスシートの見出しを「Balance Sheet」、サブ見出しを「AcmeWidgetCorp」にしようと思っています。 しかし、この順序でスクリーンリーダーに読み上げられても (英語では) 意味を成しません。 -Give your existing `span` the `class` attribute set to `flex`, and add two `span` elements within it. Give the first the text `AcmeWidgetCorp`. Give the second the text `Balance Sheet`. You will use CSS to reverse the order of the text on the page, but the HTML order will make more sense for a screen reader. +今ある `span` の `class` 属性を `flex` に設定し、その中に `span` 要素を 2 つ追加してください。 1 つ目のテキストは `AcmeWidgetCorp` にしてください。 2 つ目のテキストは `Balance Sheet` にしてください。 表示上のテキストの順序は後ほど CSS を使って入れ替えますが、HTML の順序はこれで、スクリーンリーダーで読み上げられた時に意味のあるものになります。 # --hints-- -Your existing `span` element should have the `class` attribute set to `flex`. +既存の `span` 要素の `class` 属性を `flex` に設定する必要があります。 ```js assert(document.querySelector('h1')?.children?.[0]?.classList?.contains('flex')); ``` -Your existing `span` element should have two new `span` elements within it. +既存の `span` 要素内に `span` 要素が新たに 2 つ必要です。 ```js assert(document.querySelector('.flex')?.children?.[0]?.localName === 'span'); assert(document.querySelector('.flex')?.children?.[1]?.localName === 'span'); ``` -Your new `span` elements should not have a `class` attribute. +新しい `span` 要素は `class` 属性を持たないようにしてください。 ```js assert(!document.querySelector('.flex')?.children?.[0]?.classList?.length); assert(!document.querySelector('.flex')?.children?.[1]?.classList?.length); ``` -Your first new `span` element should have the text `AcmeWidgetCorp`. +1 つ目の新しい `span` 要素には `AcmeWidgetCorp` というテキストが必要です。 ```js assert(document.querySelector('.flex')?.children?.[0]?.textContent === 'AcmeWidgetCorp'); ``` -Your second new `span` element should have the text `Balance Sheet`. +2 つ目の新しい `span` 要素には `Balance Sheet` というテキストが必要です。 ```js assert(document.querySelector('.flex')?.children?.[1]?.textContent === 'Balance Sheet'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd6ab779390f49148773bb.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd6ab779390f49148773bb.md index d4efa76eb6a..da5dc65893d 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd6ab779390f49148773bb.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd6ab779390f49148773bb.md @@ -7,23 +7,23 @@ dashedName: step-5 # --description-- -Below your `h1` element, create a `div` element. Give it an `id` attribute set to `years`. You want this particular element to be hidden from screen readers, so give it the `aria-hidden` attribute set to `true`. +`h1` 要素の下に `div` 要素を作成してください。 その `id` 属性を `years` に設定してください。 この要素はスクリーンリーダーから隠したいので、`aria-hidden` 属性を `true` に設定してください。 # --hints-- -You should create a new `div` element after your `h1` element. +`h1` 要素の後に新しい `div` 要素を作成する必要があります。 ```js assert(document.querySelector('h1')?.nextElementSibling?.localName === 'div'); ``` -Your new `div` element should have an `id` attribute set to `years`. +新しい `div` 要素の `id` 属性を `years` に設定する必要があります。 ```js assert(document.querySelector('div')?.getAttribute('id') === 'years'); ``` -Your new `div` element should have the `aria-hidden` attribute set to `true`. +新しい `div` 要素の `aria-hidden` 属性を `true` に設定する必要があります。 ```js assert(document.querySelector('div')?.getAttribute('aria-hidden') === 'true'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd6b7c83dbf54a08cf0498.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd6b7c83dbf54a08cf0498.md index ccdbd643b4b..6ce71b8773b 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd6b7c83dbf54a08cf0498.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd6b7c83dbf54a08cf0498.md @@ -7,7 +7,7 @@ dashedName: step-6 # --description-- -Within your `div` element, add three `span` elements. Give each of them a `class` attribute set to `year`, and add the following text (in order): `2019`, `2020`, and `2021`. +`div` 要素の中に、`span` 要素を 3 つ追加してください。 それぞれの `class` 属性を `year` に設定し、それぞれ `2019`、`2020`、`2021` というテキストを、この順で追加してください。 # --hints-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd6cc9475a784b7776233e.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd6cc9475a784b7776233e.md index 3ec08662edb..44dd1d84fd4 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd6cc9475a784b7776233e.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd6cc9475a784b7776233e.md @@ -7,31 +7,31 @@ dashedName: step-7 # --description-- -Below your existing `div` element, add a new `div` element with a `class` set to `table-wrap`. This will be the container for your tables. +既存の `div` 要素の下に新しい `div` 要素を追加して、`class` を `table-wrap` に設定してください。 これがテーブル (表) のコンテナーになります。 -Within that, add three `table` elements. You will be using CSS to style these into a single table, but using separate tables will help screen readers understand the document flow. +その中に `table` 要素を 3 つ追加してください。 後ほど CSS を使ってこの 3 つが 1 つのテーブルに見えるようにスタイルを設定しますが、個別のテーブルを使うことで、スクリーンリーダーがドキュメントフローを理解するのに役立ちます。 # --hints-- -You should create a new `div` element. +新しい `div` 要素を作成してください。 ```js assert(document.querySelectorAll('div')?.length === 2); ``` -Your new `div` element should have the `class` set to `table-wrap`. +新しい `div` 要素の `class` を `table-wrap` に設定する必要があります。 ```js assert(document.querySelector('.table-wrap')?.localName === 'div'); ``` -Your `.table-wrap` element should come after your existing `div`. +`.table-wrap` 要素は既存の `div` の後に置く必要があります。 ```js assert(document.querySelectorAll('div')?.[1]?.classList?.contains('table-wrap')); ``` -Your `.table-wrap` element should have three `table` elements. +`.table-wrap` 要素内には `table` 要素が 3 つ必要です。 ```js const children = [...(document.querySelector('.table-wrap')?.children ?? [])]; diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd70336ebb3e4f62ee81ba.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd70336ebb3e4f62ee81ba.md index cfdd6718dd3..e25e4ac19af 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd70336ebb3e4f62ee81ba.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd70336ebb3e4f62ee81ba.md @@ -7,19 +7,19 @@ dashedName: step-8 # --description-- -HTML tables use the `caption` element to describe what the table is about. The `caption` element should always be the first child of a `table`, but can be positioned with the `caption-side` CSS property. +HTML のテーブルでは、`caption` 要素を使用してそのテーブルが何についての表であるかを説明します。 `caption` 要素は常に `table` 要素の最初の子要素であるべきですが、表示上の位置は CSS プロパティ `caption-side` で変更できます。 -Add a `caption` element to your first `table`, and give it the text `Assets`. +1 つ目の `table` に `caption` 要素を追加して、`Assets` というテキストを設定してください。 # --hints-- -Your first `table` element should have a `caption` element. +1 つ目の `table` 要素内に `caption` 要素が 1 つ必要です。 ```js assert(document.querySelector('table')?.children?.[0]?.localName === 'caption'); ``` -Your `caption` element should have the text `Assets`. +`caption` 要素のテキストは `Assets` にする必要があります。 ```js assert(document.querySelector('caption')?.textContent === 'Assets'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd719788899952e67692b9.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd719788899952e67692b9.md index 1cf984ebc0f..9bbb97c7646 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd719788899952e67692b9.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd719788899952e67692b9.md @@ -7,31 +7,31 @@ dashedName: step-9 # --description-- -The `thead` and `tbody` elements are used to indicate which portion of your table is the header, and which portion contains the primary data or content. +`thead` と `tbody` 要素は、テーブルのどの部分がヘッダーで、どの部分が主要なデータ、つまりコンテンツであるかを表します。 -Add a `thead` and `tbody` to your first `table`, below the `caption` element. +1 つ目の `table` の `caption` 要素の下に、`thead` と `tbody` を追加してください。 # --hints-- -Your first `table` element should have a `thead` element. +1 つ目の `table` 要素内に `thead` 要素が 1 つ必要です。 ```js assert(document.querySelectorAll('table')?.[0]?.querySelector('thead')); ``` -Your first `table` element should have a `tbody` element. +1 つ目の `table` 要素内に `tbody` 要素が 1 つ必要です。 ```js assert(document.querySelectorAll('table')?.[0]?.querySelector('tbody')); ``` -Your `thead` element should be immediately below your `caption` element. +`thead` 要素は `caption` 要素のすぐ下に置く必要があります。 ```js assert(document.querySelector('caption')?.nextElementSibling?.localName === 'thead'); ``` -Your `tbody` element should be immediately below your `thead` element. +`tbody` 要素は `thead` 要素のすぐ下に置く必要があります。 ```js assert(document.querySelector('thead')?.nextElementSibling?.localName === 'tbody'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd71d596e8f253b9408b39.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd71d596e8f253b9408b39.md index cd61d97a898..665fa0c143f 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd71d596e8f253b9408b39.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd71d596e8f253b9408b39.md @@ -7,25 +7,25 @@ dashedName: step-10 # --description-- -The `tr` element is used to indicate a table row. Add a `tr` element within your `thead` element. In your new `tr` element, add a `td` element, followed by three `th` elements. +`tr` 要素は、テーブルの行を表すために使われます。 `thead` 要素内に `tr` 要素を追加してください。 その `tr` 要素内に、`td` 要素を 1 つと `th` 要素を 3 つ追加してください。 -The `td` element indicates a data cell, while the `th` element indicates a header cell. +`td` 要素はデータセルを、`th` 要素はヘッダーセルを表します。 # --hints-- -Your `thead` element should have a `tr` element. +`thead` 要素内には `tr` 要素が 1 つ必要です。 ```js assert(document.querySelector('thead')?.children?.[0]?.localName === 'tr'); ``` -Your `tr` element should have a `td` element as the first child. +`tr` 要素の最初の子要素は `td` 要素である必要があります。 ```js assert(document.querySelector('tr')?.children?.[0]?.localName === 'td'); ``` -Your `tr` element should have three `th` elements, after the `td` element. +`tr` 要素内には、`td` 要素の後に 3 つの `th` 要素が必要です。 ```js assert(document.querySelector('tr')?.children?.[1]?.localName === 'th'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd75ea7f663457612dba02.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd75ea7f663457612dba02.md index eeff5dae177..09c2378d602 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd75ea7f663457612dba02.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd75ea7f663457612dba02.md @@ -7,11 +7,11 @@ dashedName: step-11 # --description-- -Within each of your new `th` elements, nest a `span` element with the `class` set to `sr-only year`. Give them the following text (in order): `2019`, `2020`, and `2021`. +先ほど追加した各 `th` 要素内に、`class` を `sr-only year` に設定した `span` 要素をネストしてください。 span 要素には次のテキストを (この順で) 追加してください: `2019`、`2020`、`2021` -Give your third `th` element the `class` attribute set to `current`. +また、3 つ目の `th` 要素の `class` 属性を `current` に設定してください。 -Leave the `td` element empty. This element exists only to ensure your table has a four-column layout and associate the headers with the correct columns. +`td` 要素は空のままにしてください。 この要素は、テーブルを 4 列レイアウトにすることでヘッダーを正しい列と関連付ける目的で追加しています。 # --hints-- @@ -53,13 +53,13 @@ assert(document.querySelectorAll('th')?.[1]?.children?.[0]?.textContent === '202 assert(document.querySelectorAll('th')?.[2]?.children?.[0]?.textContent === '2021'); ``` -Your third `th` element should have the `class` set to `current`. +3 つ目の `th` 要素の `class` を `current` に設定する必要があります。 ```js assert(document.querySelector('table')?.querySelectorAll('th')?.[2]?.classList?.contains('current')); ``` -Your `td` element should be empty. +`td` 要素は空にしてください。 ```js assert(document.querySelector('table')?.querySelectorAll('td')?.[0]?.textContent === ''); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd7648a7ba2e5882436831.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd7648a7ba2e5882436831.md index 183ffc49118..034f8fccbc6 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd7648a7ba2e5882436831.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd7648a7ba2e5882436831.md @@ -7,7 +7,7 @@ dashedName: step-12 # --description-- -Within your `tbody` element, add four `tr` elements. Give the first three a `class` attribute set to `data`, and the fourth a `class` attribute set to `total`. +`tbody` 要素内に `tr` 要素を 4 つ追加してください。 最初の 3 つは `class` 属性を `data` に設定し、4 つ目の `class` 属性は `total` に設定してください。 # --hints-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd778081276b59d59abad6.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd778081276b59d59abad6.md index 96ca339e555..91f7c5b519f 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd778081276b59d59abad6.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd778081276b59d59abad6.md @@ -7,61 +7,61 @@ dashedName: step-13 # --description-- -In your first `tr`, add a `th` element with the text `Cash This is the cash we currently have on hand.`. Wrap all of that text except `Cash` in a `span` element with the `class` set to `description`. +最初の `tr` 内に `th` 要素を追加して、`Cash This is the cash we currently have on hand.` というテキストを設定してください。 そのテキストの `Cash` 以外の文を `span` 要素で囲み、`class` を `description` に設定してください。 -Following that, add three `td` elements with the following text (in order): `$25`, `$30`, `$28`. Give the third `td` element a `class` attribute set to `current`. +th の後に、`td` 要素を 3 つ追加して、`$25`、`$30`、`$28` というテキストを (この順で) 設定してください。 3 つ目の `td` 要素の `class` 属性を `current` に設定してください。 # --hints-- -Your first `tr` should have a `th` element. +1 つ目の `tr` 要素内に `th` 要素が 1 つ必要です。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[0]?.querySelector('th')); ``` -Your `th` element should have the text `Cash This is the cash we currently have on hand.`. +`th` 要素のテキストは `Cash This is the cash we currently have on hand.` にする必要があります。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[0]?.querySelector('th')?.innerText === 'Cash This is the cash we currently have on hand.'); ``` -You should wrap the text `This is the cash we currently have on hand.` in a `span` element. +`This is the cash we currently have on hand.` というテキストを `span` 要素で囲む必要があります。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[0]?.querySelector('th > span')?.textContent === 'This is the cash we currently have on hand.'); ``` -Your `span` element should have the `class` attribute set to `description`. +`span` 要素の `class` 属性を `description` に設定する必要があります。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[0]?.querySelector('th > span')?.classList?.contains('description')); ``` -You should have three `td` elements. +`td` 要素が 3 つ必要です。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[0]?.querySelectorAll('td').length === 3); ``` -Your first `td` element should have the text `$25`. +1 つ目の `td` 要素には `$25` というテキストが必要です。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[0]?.querySelectorAll('td')?.[0]?.textContent === '$25'); ``` -Your second `td` element should have the text `$30`. +2 つ目の `td` 要素には `$30` というテキストが必要です。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[0]?.querySelectorAll('td')?.[1]?.textContent === '$30'); ``` -Your third `td` element should have the text `$28`. +3 つ目の `td` 要素には `$28` というテキストが必要です。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[0]?.querySelectorAll('td')?.[2]?.textContent === '$28'); ``` -Your third `td` element should have the `class` set to `current`. +3 つ目の `td` 要素の `class` を `current` に設定する必要があります。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[0]?.querySelectorAll('td')?.[2]?.classList?.contains('current')); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd77f7ad2aeb5ae34d07d6.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd77f7ad2aeb5ae34d07d6.md index d67dccf677d..fcc02a3e06d 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd77f7ad2aeb5ae34d07d6.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd77f7ad2aeb5ae34d07d6.md @@ -7,61 +7,61 @@ dashedName: step-14 # --description-- -In your second `tr` element, add a `th` element with the text `Checking Our primary transactional account.`. Wrap that text, except for `Checking`, in a `span` element with the `class` attribute set to `description`. +2 つ目の `tr` 要素内に `th` 要素を追加して、テキストを `Checking Our primary transactional account.` としてください。 テキストの `Checking` 以外の文を `span` 要素で囲み、`class` 属性を `description` に設定してください。 -Following that, add three `td` elements with the following text (in order): `$54`, `$56`, `$53`. Give the third `td` element a `class` attribute set to `current`. +その後に、`td` 要素を 3 つ追加して、`$54`、`$56`、`$53` というテキストを (この順で) 設定してください。 3 つ目の `td` 要素の `class` 属性を `current` に設定してください。 # --hints-- -Your second `tr` should have a `th` element. +2 つ目の `tr` 要素内に `th` 要素が 1 つ必要です。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[1]?.querySelector('th')); ``` -Your `th` element should have the text `Checking Our primary transactional account.`. +`th` 要素のテキストは `Checking Our primary transactional account.` にする必要があります。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[1]?.querySelector('th')?.innerText === 'Checking Our primary transactional account.'); ``` -You should wrap the text `Our primary transactional account.` in a `span` element. +`Our primary transactional account.` というテキストを `span` 要素で囲む必要があります。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[1]?.querySelector('th > span')?.textContent === 'Our primary transactional account.'); ``` -Your `span` element should have the `class` attribute set to `description`. +`span` 要素の `class` 属性を `description` に設定する必要があります。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[1]?.querySelector('th > span')?.classList?.contains('description')); ``` -You should have three `td` elements. +`td` 要素が 3 つ必要です。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[1]?.querySelectorAll('td').length === 3); ``` -Your first `td` element should have the text `$54`. +1 つ目の `td` 要素には `$54` というテキストが必要です。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[1]?.querySelectorAll('td')?.[0]?.textContent === '$54'); ``` -Your second `td` element should have the text `$56`. +2 つ目の `td` 要素には `$56` というテキストが必要です。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[1]?.querySelectorAll('td')?.[1]?.textContent === '$56'); ``` -Your third `td` element should have the text `$53`. +3 つ目の `td` 要素には `$53` というテキストが必要です。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[1]?.querySelectorAll('td')?.[2]?.textContent === '$53'); ``` -Your third `td` element should have the `class` set to `current`. +3 つ目の `td` 要素の `class` を `current` に設定する必要があります。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[1]?.querySelectorAll('td')?.[2]?.classList?.contains('current')); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd78621573aa5e8b512f5e.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd78621573aa5e8b512f5e.md index 9be4e216dbc..29d9b8ba616 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd78621573aa5e8b512f5e.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd78621573aa5e8b512f5e.md @@ -7,9 +7,9 @@ dashedName: step-15 # --description-- -In your third `tr` element, add a `th` element with the text `Savings Funds set aside for emergencies.`. Wrap that text, except for `Savings`, in a `span` element with the `class` attribute set to `description`. +3 つ目の `tr` 要素内に `th` 要素を追加して、テキストを `Savings Funds set aside for emergencies.` としてください。 テキストの `Savings` 以外の文を `span` 要素で囲み、`class` 属性を `description` に設定してください。 -Following that, add three `td` elements with the following text (in order): `$500`, `$650`, `$728`. Give the third `td` element a `class` attribute set to `current`. +その後に、`td` 要素を 3 つ追加して、`$500`、`$650`、`$728` というテキストを (この順で) 設定してください。 3 つ目の `td` 要素の `class` 属性を `current` に設定してください。 # --hints-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd7a160ed17960e971f28b.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd7a160ed17960e971f28b.md index 5fced8300d9..ecd638aa5a6 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd7a160ed17960e971f28b.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd7a160ed17960e971f28b.md @@ -7,55 +7,55 @@ dashedName: step-16 # --description-- -In your fourth `tr` element, add a `th` element with the text `Total Assets`. Wrap the text `Assets` in a `span` element with the `class` attribute set to `sr-only`. +4 つ目の `tr` 要素内に `th` 要素を追加して、テキストを `Total Assets` としてください。 `Assets` というテキストを `span` 要素で囲み、その `class` 属性を `sr-only` に設定してください。 -Following that, add three `td` elements with the following text (in order): `$579`, `$736`, `$809`. Give the third `td` element a `class` attribute set to `current`. +その後に、`td` 要素を 3 つ追加して、`$579`、`$736`、`$809` というテキストを (この順で) 設定してください。 3 つ目の `td` 要素の `class` 属性を `current` に設定してください。 # --hints-- -Your fourth `tr` should have a `th` element. +4 つ目の `tr` 要素内に `th` 要素が 1 つ必要です。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelector('th')); ``` -Your `th` element should have the text `Total Assets`. +`th` 要素のテキストは `Total Assets` にする必要があります。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelector('th')?.innerText === 'Total Assets'); ``` -You should wrap the text `Assets` in a `span` element. +`Assets` というテキストを `span` 要素で囲む必要があります。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelector('th > span')?.textContent === 'Assets'); ``` -Your `span` element should have the `class` attribute set to `sr-only`. +`span` 要素の `class` 属性を `sr-only` に設定する必要があります。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelector('th > span')?.classList?.contains('sr-only')); ``` -You should have three `td` elements. +`td` 要素が 3 つ必要です。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelectorAll('td').length === 3); ``` -Your first `td` element should have the text `$579`. +1 つ目の `td` 要素には `$579` というテキストが必要です。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelectorAll('td')?.[0]?.textContent === '$579'); ``` -Your second `td` element should have the text `$736`. +2 つ目の `td` 要素には `$736` というテキストが必要です。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelectorAll('td')?.[1]?.textContent === '$736'); ``` -Your third `td` element should have the text `$809`. +3 つ目の `td` 要素には `$809` というテキストが必要です。 ```js assert(document.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelectorAll('td')?.[2]?.textContent === '$809'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd7b3fcaa5406257abc5d1.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd7b3fcaa5406257abc5d1.md index d39438b34dd..3139d3779e6 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd7b3fcaa5406257abc5d1.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd7b3fcaa5406257abc5d1.md @@ -7,41 +7,41 @@ dashedName: step-17 # --description-- -Time to move on to your second table. Start by giving it a `caption` element set to `Liabilities`. Then add your `thead` and `tbody`. +では 2 つ目のテーブルに取り掛かりましょう。 まず、`caption` 要素を追加してテキストを `Liabilities` にしてください。 次に `thead` と `tbody` を追加してください。 # --hints-- -Your second `table` element should have a `caption` element. +2 つ目の `table` 要素内に `caption` 要素が必要です。 ```js assert(document.querySelectorAll('table')?.[1]?.children?.[0]?.localName === 'caption'); ``` -Your `caption` element should have the text `Liabilities`. +`caption` 要素のテキストを `Liabilities` にする必要があります。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('caption')?.textContent === 'Liabilities'); ``` -Your second `table` element should have a `thead` element. +2 つ目の `table` 要素内に `thead` 要素が必要です。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('thead')); ``` -Your second `table` element should have a `tbody` element. +2 つ目の `table` 要素内に `tbody` 要素が必要です。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')); ``` -Your `thead` element should be immediately below your `caption` element. +`thead` 要素は `caption` 要素のすぐ下に置く必要があります。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('caption')?.nextElementSibling?.localName === 'thead'); ``` -Your `tbody` element should be immediately below your `thead` element. +`tbody` 要素は `thead` 要素のすぐ下に置く必要があります。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('thead')?.nextElementSibling?.localName === 'tbody'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd8e491324ce717da97ffe.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd8e491324ce717da97ffe.md index db449f90465..395ec143e5c 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd8e491324ce717da97ffe.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd8e491324ce717da97ffe.md @@ -7,7 +7,7 @@ dashedName: step-18 # --description-- -Within your `thead`, add a `tr`. Inside that, add a `td` and three `th` elements. +`thead` 内に `tr` を追加してください。 その中に、`td` 要素 1 つと `th` 要素 3 つを追加してください。 # --hints-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd8fd08af43372f02952d0.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd8fd08af43372f02952d0.md index f04b34b766a..47da20cb981 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd8fd08af43372f02952d0.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd8fd08af43372f02952d0.md @@ -7,11 +7,11 @@ dashedName: step-19 # --description-- -Give each `th` element a `span` element with the class set to `sr-only` and the following text, in order: `2019`, `2020`, and `2021`. +各 `th` 要素に `span` 要素を追加して、クラスを `sr-only` に設定し、`2019`、`2020`、`2021` というテキストをこの順で追加してください。 # --hints-- -Each of your `th` elements should have a `span` element. +各 `th` 要素内に `span` 要素が 1 つ必要です。 ```js const ths = [...document.querySelectorAll('table')?.[1]?.querySelectorAll('th')]; @@ -21,7 +21,7 @@ ths?.forEach(th => { }); ``` -Each of your new `span` elements should have the `class` attribute set to `sr-only`. +新しく追加した各 `span` 要素の `class` 属性は `sr-only` に設定する必要があります。 ```js const ths = [...document.querySelectorAll('table')?.[1]?.querySelectorAll('th')]; @@ -30,25 +30,25 @@ ths?.forEach(th => { }); ``` -Your first `span` element should have the text `2019`. +1 つ目の `span` 要素は `2019` というテキストを持つ必要があります。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelectorAll('th')?.[0]?.children?.[0]?.textContent === '2019'); ``` -Your second `span` element should have the text `2020`. +2 つ目の `span` 要素は `2020` というテキストを持つ必要があります。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelectorAll('th')?.[1]?.children?.[0]?.textContent === '2020'); ``` -Your third `span` element should have the text `2021`. +3 つ目の `span` 要素は `2021` というテキストを持つ必要があります。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelectorAll('th')?.[2]?.children?.[0]?.textContent === '2021'); ``` -Your `td` element should be empty. +`td` 要素は空にしてください。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelectorAll('td')?.[0]?.textContent === ''); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9126aa72a474301fc49f.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9126aa72a474301fc49f.md index 859f19f6300..f9b14df62d3 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9126aa72a474301fc49f.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9126aa72a474301fc49f.md @@ -7,11 +7,11 @@ dashedName: step-20 # --description-- -Within the `tbody` element, add four `tr` elements. Give the first three the `class` attribute set to `data`, and the fourth the `class` attribute set to `total`. +`tbody` 要素内に `tr` 要素を 4 つ追加してください。 最初の 3 つは `class` 属性を `data` に設定し、4 つ目の `class` 属性は `total` に設定してください。 # --hints-- -Your `tbody` element should have four `tr` elements. +`tbody` 要素内には `tr` 要素が 4 つ必要です。 ```js const children = [...document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.children]; @@ -19,7 +19,7 @@ assert(children?.length === 4); children.forEach(child => assert(child?.localName === 'tr')); ``` -Your first three `tr` elements should have the `class` attribute set to `data`. +最初の 3 つの `tr` 要素の `class` 属性は `data` に設定する必要があります。 ```js const children = [...document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.children]; @@ -30,7 +30,7 @@ children.forEach((child, index) => { }); ``` -Your fourth `tr` element should have the `class` attribute set to `total`. +4 つ目の `tr` 要素の `class` 属性は `total` に設定する必要があります。 ```js const children = [...document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.children]; diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd933ba685de776a94997e.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd933ba685de776a94997e.md index f5755c1d735..0c5c25f8721 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd933ba685de776a94997e.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd933ba685de776a94997e.md @@ -7,9 +7,9 @@ dashedName: step-21 # --description-- -Within the first `tr`, add a `th` element with the text `Loans The outstanding balance on our startup loan.`. Wrap that text, except for `Loans`, within a `span` element with the `class` set to `description`. +最初の `tr` 内に、`th` 要素を追加して、`Loans The outstanding balance on our startup loan.` というテキストを設定してください。 テキストの `Loans` 以外の文を `span` 要素で囲み、`class` 属性を `description` に設定してください。 -Add three `td` elements below that, and give them the following text, in order: `$500`, `$250`, and `$0`. Give the third `td` element a `class` set to `current`. +その下に `td` 要素を 3 つ追加して、`$500`、`$250`、`$0` というテキストをこの順で追加してください。 そして 3 つ目の `td` 要素の `class` を `current` に設定してください。 # --hints-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd94056e0355785fbba4d3.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd94056e0355785fbba4d3.md index 2f625903bbb..d7d2b1d340a 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd94056e0355785fbba4d3.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd94056e0355785fbba4d3.md @@ -7,61 +7,61 @@ dashedName: step-22 # --description-- -Within the second `tr`, add a `th` element with the text `Expenses Annual anticipated expenses, such as payroll.`. Wrap that text, except for `Expenses`, within a `span` element with the `class` set to `description`. +2 つ目の `tr` に `th` 要素を追加して、テキストを `Expenses Annual anticipated expenses, such as payroll.` としてください。 テキストの `Expenses` 以外の文を `span` 要素で囲み、`class` を `description` に設定してください。 -Add three `td` elements below that, and give them the following text, in order: `$200`, `$300`, and `$400`. Give the third `td` element a `class` set to `current`. +その下に `td` 要素を 3 つ追加して、`$200`、`$300`、`$400` というテキストをこの順で追加してください。 3 つ目の `td` 要素の `class` を `current` に設定してください。 # --hints-- -Your second `tr` should have a `th` element. +2 つ目の `tr` 要素内に `th` 要素が 1 つ必要です。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[1]?.querySelector('th')); ``` -Your `th` element should have the text `Expenses Annual anticipated expenses, such as payroll.`. +`th` 要素のテキストは `Expenses Annual anticipated expenses, such as payroll.` にする必要があります。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[1]?.querySelector('th')?.innerText === 'Expenses Annual anticipated expenses, such as payroll.'); ``` -You should wrap the text `Annual anticipated expenses, such as payroll.` in a `span` element. +`Annual anticipated expenses, such as payroll.` というテキストを `span` 要素で囲む必要があります。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[1]?.querySelector('th > span')?.textContent === 'Annual anticipated expenses, such as payroll.'); ``` -Your `span` element should have the `class` attribute set to `description`. +`span` 要素の `class` 属性を `description` に設定する必要があります。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[1]?.querySelector('th > span')?.classList?.contains('description')); ``` -You should have three `td` elements. +`td` 要素が 3 つ必要です。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[1]?.querySelectorAll('td').length === 3); ``` -Your first `td` element should have the text `$200`. +1 つ目の `td` 要素には `$200` というテキストが必要です。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[1]?.querySelectorAll('td')?.[0]?.textContent === '$200'); ``` -Your second `td` element should have the text `$300`. +2 つ目の `td` 要素には `$300` というテキストが必要です。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[1]?.querySelectorAll('td')?.[1]?.textContent === '$300'); ``` -Your third `td` element should have the text `$400`. +3 つ目の `td` 要素には `$400` というテキストが必要です。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[1]?.querySelectorAll('td')?.[2]?.textContent === '$400'); ``` -Your third `td` element should have the `class` set to `current`. +3 つ目の `td` 要素の `class` を `current` に設定する必要があります。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[1]?.querySelectorAll('td')?.[2]?.classList?.contains('current')); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd986ddbcbd47ba8fbc5ec.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd986ddbcbd47ba8fbc5ec.md index 4b977bc4cb2..53f5b473bfe 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd986ddbcbd47ba8fbc5ec.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd986ddbcbd47ba8fbc5ec.md @@ -7,61 +7,61 @@ dashedName: step-23 # --description-- -Within the third `tr`, add a `th` element with the text `Credit The outstanding balance on our credit card.`. Wrap that text, except for `Credit`, within a `span` element with the `class` set to `description`. +3 つ目の `tr` 内に `th` 要素を追加して、テキストを `Credit The outstanding balance on our credit card.` に設定してください。 テキストの `Credit` 以外の文を `span` 要素で囲み、`class` 属性を `description` に設定してください。 -Add three `td` elements below that, and give them the following text, in order: `$50`, `$50`, and `$75`. Give the third `td` element a `class` set to `current`. +その下に `td` 要素を 3 つ追加して、`$50`、`$50`、`$75` というテキストをこの順で追加してください。 そして 3 つ目の `td` 要素の `class` を `current` に設定してください。 # --hints-- -Your third `tr` should have a `th` element. +3 つ目の `tr` 要素内に `th` 要素が 1 つ必要です。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[2]?.querySelector('th')); ``` -Your `th` element should have the text `Credit The outstanding balance on our credit card.`. +`th` 要素のテキストは `Credit The outstanding balance on our credit card.` にする必要があります。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[2]?.querySelector('th')?.innerText === 'Credit The outstanding balance on our credit card.'); ``` -You should wrap the text `The outstanding balance on our credit card.` in a `span` element. +`The outstanding balance on our credit card.` というテキストを `span` 要素で囲む必要があります。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[2]?.querySelector('th > span')?.textContent === 'The outstanding balance on our credit card.'); ``` -Your `span` element should have the `class` attribute set to `description`. +`span` 要素の `class` 属性を `description` に設定する必要があります。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[2]?.querySelector('th > span')?.classList?.contains('description')); ``` -You should have three `td` elements. +`td` 要素が 3 つ必要です。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[2]?.querySelectorAll('td').length === 3); ``` -Your first `td` element should have the text `$50`. +1 つ目の `td` 要素には `$50` というテキストが必要です。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[2]?.querySelectorAll('td')?.[0]?.textContent === '$50'); ``` -Your second `td` element should have the text `$50`. +2 つ目の `td` 要素には `$50` というテキストが必要です。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[2]?.querySelectorAll('td')?.[1]?.textContent === '$50'); ``` -Your third `td` element should have the text `$75`. +3 つ目の `td` 要素には `$75` というテキストが必要です。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[2]?.querySelectorAll('td')?.[2]?.textContent === '$75'); ``` -Your third `td` element should have the `class` set to `current`. +3 つ目の `td` 要素の `class` を `current` に設定する必要があります。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[2]?.querySelectorAll('td')?.[2]?.classList?.contains('current')); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd990577d8227dd93fbeeb.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd990577d8227dd93fbeeb.md index 43f6851149a..c7655c26da4 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd990577d8227dd93fbeeb.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd990577d8227dd93fbeeb.md @@ -7,9 +7,9 @@ dashedName: step-24 # --description-- -In your fourth `tr` element, add a `th` element with the text `Total Liabilities`. Wrap the text `Liabilities` in a `span` element with the `class` attribute set to `sr-only`. +4 つ目の `tr` 要素内に `th` 要素を追加して、テキストを `Total Liabilities` としてください。 そして `Liabilities` というテキストを `span` 要素で囲み、その `class` 属性を `sr-only` に設定してください。 -Following that, add three `td` elements with the following text (in order): `$750`, `$600`, `$475`. Give the third `td` element a `class` attribute set to `current`. +その後に、`td` 要素を 3 つ追加して、`$750`、`$600`、`$475` というテキストを (この順で) 設定してください。 3 つ目の `td` 要素の `class` 属性を `current` に設定してください。 # --hints-- @@ -37,31 +37,31 @@ assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySel assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelector('th > span')?.classList?.contains('sr-only')); ``` -You should have three `td` elements. +`td` 要素が 3 つ必要です。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelectorAll('td').length === 3); ``` -Your first `td` element should have the text `$750`. +1 つ目の `td` 要素には `$750` というテキストが必要です。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelectorAll('td')?.[0]?.textContent === '$750'); ``` -Your second `td` element should have the text `$600`. +2 つ目の `td` 要素には `$600` というテキストが必要です。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelectorAll('td')?.[1]?.textContent === '$600'); ``` -Your third `td` element should have the text `$475`. +3 つ目の `td` 要素には `$475` というテキストが必要です。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelectorAll('td')?.[2]?.textContent === '$475'); ``` -Your third `td` element should have the `class` set to `current`. +3 つ目の `td` 要素の `class` を `current` に設定する必要があります。 ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelectorAll('td')?.[2]?.classList?.contains('current')); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9a4ff2fc4481b9157bd7.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9a4ff2fc4481b9157bd7.md index f48f6d17f78..d5e60a8fca4 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9a4ff2fc4481b9157bd7.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9a4ff2fc4481b9157bd7.md @@ -7,41 +7,41 @@ dashedName: step-25 # --description-- -For your third table, add a `caption` with the text `Net Worth`, and set up a table header and table body. +3 つ目のテーブルに `caption` を追加して、テキストを `Net Worth` に設定し、さらにテーブルのヘッダーとボディも追加してください。 # --hints-- -Your third `table` element should have a `caption` element. +3 つ目の `table` 要素内に `caption` 要素が 1 つ必要です。 ```js assert(document.querySelectorAll('table')?.[2]?.children?.[0]?.localName === 'caption'); ``` -Your `caption` element should have the text `Net Worth`. +`caption` 要素のテキストは `Net Worth` にする必要があります。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelector('caption')?.textContent === 'Net Worth'); ``` -Your third `table` element should have a `thead` element. +3 つ目の `table` 要素内に `thead` 要素が 1 つ必要です。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelector('thead')); ``` -Your third `table` element should have a `tbody` element. +3 つ目の `table` 要素内に `tbody` 要素が 1 つ必要です。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelector('tbody')); ``` -Your `thead` element should be immediately below your `caption` element. +`thead` 要素は `caption` 要素のすぐ下に置く必要があります。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelector('caption')?.nextElementSibling?.localName === 'thead'); ``` -Your `tbody` element should be immediately below your `thead` element. +`tbody` 要素は `thead` 要素のすぐ下に置く必要があります。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelector('thead')?.nextElementSibling?.localName === 'tbody'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9ad665a4a282c8106be3.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9ad665a4a282c8106be3.md index ccb2bdee686..1c10b89e8be 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9ad665a4a282c8106be3.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9ad665a4a282c8106be3.md @@ -7,23 +7,23 @@ dashedName: step-26 # --description-- -Within your `thead`, create a `tr` element. In that, add a `td` and three `th` elements. Within each of the `th` elements, add a `span` element with the `class` set to `sr-only` and the following text, in order: `2019`, `2020`, and `2021`. +`thead` 内に `tr` を作成してください。 その中に、`td` 要素 1 つと `th` 要素 3 つを追加してください。 各 `th` 要素内に `span` 要素を追加して、`class` を `sr-only` に設定し、次のテキストをこの順で追加してください: `2019`、`2020`、`2021` # --hints-- -Your `thead` element should have a `tr` element. +`thead` 要素内には `tr` 要素が 1 つ必要です。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelector('thead')?.children?.[0]?.localName === 'tr'); ``` -Your `tr` element should have a `td` element as the first child. +`tr` 要素の最初の子要素は `td` 要素である必要があります。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelector('tr')?.children?.[0]?.localName === 'td'); ``` -Your `tr` element should have three `th` elements, after the `td` element. +`tr` 要素内には `td` 要素の後に 3 つの `th` 要素が必要です。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelector('tr')?.children?.[1]?.localName === 'th'); @@ -31,7 +31,7 @@ assert(document.querySelectorAll('table')?.[2]?.querySelector('tr')?.children?.[ assert(document.querySelectorAll('table')?.[2]?.querySelector('tr')?.children?.[3]?.localName === 'th'); ``` -Each of your `th` elements should have a `span` element. +各 `th` 要素内に `span` 要素が 1 つ必要です。 ```js const ths = [...document.querySelectorAll('table')?.[2]?.querySelectorAll('th')]; @@ -41,7 +41,7 @@ ths?.forEach(th => { }); ``` -Each of your new `span` elements should have the `class` attribute set to `sr-only`. +新しく追加した各 `span` 要素の `class` 属性は `sr-only` に設定する必要があります。 ```js const ths = [...document.querySelectorAll('table')?.[2]?.querySelectorAll('th')]; @@ -50,25 +50,25 @@ ths?.forEach(th => { }); ``` -Your first `span` element should have the text `2019`. +1 つ目の `span` 要素は `2019` というテキストを持つ必要があります。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelectorAll('th')?.[0]?.children?.[0]?.textContent === '2019'); ``` -Your second `span` element should have the text `2020`. +2 つ目の `span` 要素は `2020` というテキストを持つ必要があります。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelectorAll('th')?.[1]?.children?.[0]?.textContent === '2020'); ``` -Your third `span` element should have the text `2021`. +3 つ目の `span` 要素は `2021` というテキストを持つ必要があります。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelectorAll('th')?.[2]?.children?.[0]?.textContent === '2021'); ``` -Your `td` element should be empty. +`td` 要素は空にしてください。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelectorAll('td')?.[0]?.textContent === ''); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9b7285bde783ad5b8aac.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9b7285bde783ad5b8aac.md index b9980ba3766..b1b1738419f 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9b7285bde783ad5b8aac.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9b7285bde783ad5b8aac.md @@ -7,73 +7,73 @@ dashedName: step-27 # --description-- -Within the `tbody`, add a `tr` with the `class` set to `total`. In that, add a `th` with the text `Total Net Worth`, and wrap `Net Worth` in a `span` with the `class` set to `sr-only`. +`tbody` 内に `tr` を追加して、`class` を `total` に設定してください。 その中に `th` と `Total Net Worth` というテキストを追加して、`Net Worth` の部分を `span` で囲み、`class` を `sr-only` に設定してください。 -Then add three `td` elements, giving the third a `class` set to `current`, and giving each the following text: `$-171`, `$136`, `$334`. +次に `td` 要素を 3 つ追加して、3 つ目は `class` を `current` に設定し、それぞれ以下のテキストを設定してください: `$-171`、`$136`、`$334` # --hints-- -Your `tbody` element should have one `tr` element. +`tbody` 要素内には `tr` 要素が 1 つ必要です。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelector('tbody')?.querySelectorAll('tr')?.length === 1); ``` -Your `tr` element should have the `class` set to `total`. +`tr` 要素の `class` を `total` に設定する必要があります。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelector('tbody')?.querySelector('tr')?.classList?.contains('total')); ``` -Your `tr` should have a `th` element. +`tr` に `th` 要素が 1 つ必要です。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelector('tbody')?.querySelectorAll('tr')?.[0]?.querySelector('th')); ``` -Your `th` element should have the text `Total Net Worth`. +`th` 要素のテキストは `Total Net Worth` にする必要があります。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelector('tbody')?.querySelectorAll('tr')?.[0]?.querySelector('th')?.innerText === 'Total Net Worth'); ``` -You should wrap the text `Net Worth` in a `span` element. +`Net Worth` というテキストを `span` 要素で囲む必要があります。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelector('tbody')?.querySelectorAll('tr')?.[0]?.querySelector('th > span')?.textContent === 'Net Worth'); ``` -Your `span` element should have the `class` attribute set to `sr-only`. +`span` 要素の `class` 属性を `sr-only` に設定する必要があります。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelector('tbody')?.querySelectorAll('tr')?.[0]?.querySelector('th > span')?.classList?.contains('sr-only')); ``` -You should have three `td` elements. +`td` 要素が 3 つ必要です。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelector('tbody')?.querySelectorAll('tr')?.[0]?.querySelectorAll('td').length === 3); ``` -Your first `td` element should have the text `$-171`. +1 つ目の `td` 要素には `$-171` というテキストが必要です。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelector('tbody')?.querySelectorAll('tr')?.[0]?.querySelectorAll('td')?.[0]?.textContent === '$-171'); ``` -Your second `td` element should have the text `$136`. +2 つ目の `td` 要素には `$136` というテキストが必要です。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelector('tbody')?.querySelectorAll('tr')?.[0]?.querySelectorAll('td')?.[1]?.textContent === '$136'); ``` -Your third `td` element should have the text `$334`. +3 つ目の `td` 要素には `$334` というテキストが必要です。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelector('tbody')?.querySelectorAll('tr')?.[0]?.querySelectorAll('td')?.[2]?.textContent === '$334'); ``` -Your third `td` element should have the `class` set to `current`. +3 つ目の `td` 要素の `class` を `current` に設定する必要があります。 ```js assert(document.querySelectorAll('table')?.[2]?.querySelector('tbody')?.querySelectorAll('tr')?.[0]?.querySelectorAll('td')?.[2]?.classList?.contains('current')); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9d9fbdfe078800317055.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9d9fbdfe078800317055.md index 7ecc45d217f..afb0ef36184 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9d9fbdfe078800317055.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd9d9fbdfe078800317055.md @@ -7,17 +7,17 @@ dashedName: step-28 # --description-- -Time to style your table. Start by resetting the box model. Create an `html` selector and give it a `box-sizing` property set to `border-box`. +ではテーブルのスタイルを設定しましょう。 まず、ボックスモデルをリセットします。 `html` セレクターを作成し、`box-sizing` プロパティを `border-box` に設定してください。 # --hints-- -You should have an `html` selector. +`html` セレクターが 1 つ必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('html')); ``` -Your `html` selector should have a `box-sizing` property set to `border-box`. +`html` セレクターの `box-sizing` プロパティを `border-box` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('html')?.getPropertyValue('box-sizing') === 'border-box'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fda307bde0b091cf7d884a.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fda307bde0b091cf7d884a.md index 0cfebdb1fce..50b46cff28a 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fda307bde0b091cf7d884a.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fda307bde0b091cf7d884a.md @@ -7,23 +7,23 @@ dashedName: step-29 # --description-- -Create a `body` selector and give it a `font-family` property set to `sans-serif` and a `color` set to `#0a0a23`. +`body` セレクターを作成し、`font-family` プロパティを `sans-serif` に、`color` を `#0a0a23` に設定してください。 # --hints-- -You should have a `body` selector. +`body` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('body')); ``` -Your `body` selector should have a `font-family` property set to `sans-serif`. +`body` セレクターの `font-family` プロパティを `sans-serif` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('body')?.getPropertyValue('font-family') === 'sans-serif'); ``` -Your `body` selector should have a `color` property set to `#0a0a23`. +`body` セレクターの `color` プロパティを `#0a0a23` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('body')?.getPropertyValue('color') === 'rgb(10, 10, 35)'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fda339eadcfd92a6812bed.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fda339eadcfd92a6812bed.md index 0d4cef53305..b051d779287 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fda339eadcfd92a6812bed.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fda339eadcfd92a6812bed.md @@ -7,21 +7,21 @@ dashedName: step-30 # --description-- -Before you get too far into your styling, you should make use of the `sr-only` class. You can use CSS to make elements with this class completely hidden from the visual page, but still be announced by screen readers. +スタイル設定を進める前に、`sr-only` クラスを活用しましょう。 このクラスを持つ要素を、CSS を使って、視覚的なページでは非表示にしながらスクリーンリーダーでは読み上げられるようにできます。 -The CSS you are about to write is a common set of properties used to ensure elements are completely hidden visually. +これから書く CSS は、要素を視覚的に隠すためによくセットで使われるプロパティです。 -The `span[class~="sr-only"]` selector will select any `span` element whose `class` *includes* `sr-only`. Create that selector, and give it a `border` property set to `0`. +`span[class~="sr-only"]` セレクターを使うと、`class` に `sr-only` を*含む*すべての `span` 要素が選択されます。 このセレクターを作成し、`border` プロパティを `0` に設定してください。 # --hints-- -You should have an `span[class~="sr-only"]` selector. +`span[class~="sr-only"]` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')); ``` -Your `span[class~="sr-only"]` selector should have a `border` property set to `0`. +`span[class~="sr-only"]` セレクターの `border` プロパティを `0` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')?.getPropertyValue('border-width') === '0px'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdac1e31692f9a9ad97295.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdac1e31692f9a9ad97295.md index c4e380f5519..3e8cecea008 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdac1e31692f9a9ad97295.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdac1e31692f9a9ad97295.md @@ -7,25 +7,25 @@ dashedName: step-31 # --description-- -The CSS `clip` property is used to define the visible portions of an element. Set the `span[class~="sr-only"]` selector to have a `clip` property of `rect(1px, 1px, 1px, 1px)`. +CSS の `clip` プロパティは、要素の可視部分を定義するために使われます。 `span[class~="sr-only"]` セレクターの `clip` プロパティを `rect(1px, 1px, 1px, 1px)` に設定してください。 -The `clip-path` property determines the shape the `clip` property should take. Set both the `clip-path` and `-webkit-clip-path` properties to the value of `inset(50%)`, forming the clip-path into a rectangle within the element. +`clip-path` プロパティは `clip` プロパティの形状を指定します。 `clip-path` プロパティと `-webkit-clip-path` プロパティの両方を `inset(50%)` の値に設定し、clip-path を要素内部の長方形に整形してください。 # --hints-- -Your `span[class~="sr-only"]` selector should have a `clip` property set to `rect(1px, 1px, 1px, 1px)`. +`span[class~="sr-only"]` セレクターの `clip` プロパティを `rect(1px, 1px, 1px, 1px)` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')?.getPropertyValue('clip') === 'rect(1px, 1px, 1px, 1px)'); ``` -Your `span[class~="sr-only"]` selector should have a `clip-path` property set to `inset(50%)`. +`span[class~="sr-only"]` セレクターの `clip-path` プロパティを `inset(50%)` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')?.getPropertyValue('clip-path') === 'inset(50%)'); ``` -Your `span[class~="sr-only"]` selector should have a `-webkit-clip-path` property set to `inset(50%)`. +`span[class~="sr-only"]` セレクターの `-webkit-clip-path` プロパティを `inset(50%)` に設定する必要があります。 ```js assert(/-webkit-clip-path\s*:\s*inset\(\s*50%\s*\)\s*(;|})/.test(code)); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdaea3999cb19d76ce717b.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdaea3999cb19d76ce717b.md index 844b459e59c..51425a35399 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdaea3999cb19d76ce717b.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdaea3999cb19d76ce717b.md @@ -7,17 +7,17 @@ dashedName: step-32 # --description-- -Now you need to size these elements down. Give your `span[class~="sr-only"]` selector a `width` and `height` property set to `1px`. +では、この要素のサイズを小さくします。 `span[class~="sr-only"]` セレクターの `width` および `height` プロパティを、`1px` に設定してください。 # --hints-- -Your `span[class~="sr-only"]` selector should have a `width` property set to `1px`. +`span[class~="sr-only"]` セレクターの `width` プロパティを `1px` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')?.getPropertyValue('width') === '1px'); ``` -Your `span[class~="sr-only"]` selector should have a `height` property set to `1px`. +`span[class~="sr-only"]` セレクターの `height` プロパティを `1px` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')?.getPropertyValue('height') === '1px'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdaf9ff894b6a084ecdc1b.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdaf9ff894b6a084ecdc1b.md index dc4095c2b02..1ccacc5575e 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdaf9ff894b6a084ecdc1b.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdaf9ff894b6a084ecdc1b.md @@ -7,17 +7,17 @@ dashedName: step-33 # --description-- -To prevent the text content from overflowing, give your `span[class~="sr-only"]` selector an `overflow` property set to `hidden` and a `white-space` property set to `nowrap`. +テキストコンテンツがはみ出すことを防ぐため、`span[class~="sr-only"]` セレクターの `overflow` プロパティを `hidden` に、`white-space` プロパティを `nowrap` に設定してください。 # --hints-- -Your `span[class~="sr-only"]` selector should have an `overflow` property set to `hidden`. +`span[class~="sr-only"]` セレクターの `overflow` プロパティを `hidden` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')?.getPropertyValue('overflow') === 'hidden'); ``` -Your `span[class~="sr-only"]` selector should have a `white-space` property set to `nowrap`. +`span[class~="sr-only"]` セレクターの `white-space` プロパティを `nowrap` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')?.getPropertyValue('white-space') === 'nowrap'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdafe6f07fd7a1c6785bc2.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdafe6f07fd7a1c6785bc2.md index 8f530971aed..35b9faa87bf 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdafe6f07fd7a1c6785bc2.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdafe6f07fd7a1c6785bc2.md @@ -7,23 +7,23 @@ dashedName: step-34 # --description-- -Finally, you need to take these hidden elements out of the document flow. Give the `span[class~="sr-only"]` selector a `position` property set to `absolute`, a `padding` property set to `0`, and a `margin` property set to `-1px`. This will ensure that not only are they no longer visible, but they are not even within the page view. +最後に、この隠し要素をドキュメントフローから除外します。 `span[class~="sr-only"]` セレクターの `position` プロパティを `absolute` に、`padding` プロパティを `0` に、`margin` プロパティを `-1px` に設定してください。 これにより、要素が見た目に表示されないだけでなく、ページビュー内にない状態にします。 # --hints-- -Your `span[class~="sr-only"]` selector should have a `position` property set to `absolute`. +`span[class~="sr-only"]` セレクターの `position` プロパティを `absolute` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')?.getPropertyValue('position') === 'absolute'); ``` -Your `span[class~="sr-only"]` selector should have a `padding` property set to `0`. +`span[class~="sr-only"]` セレクターの `padding` プロパティを `0` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')?.getPropertyValue('padding') === '0px'); ``` -Your `span[class~="sr-only"]` selector should have a `margin` property set to `-1px`. +`span[class~="sr-only"]` セレクターの `margin` プロパティを `-1px` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')?.getPropertyValue('margin') === '-1px'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdb04d9939f0a26ca51c2b.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdb04d9939f0a26ca51c2b.md index 13e44cee72e..70801b3c366 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdb04d9939f0a26ca51c2b.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fdb04d9939f0a26ca51c2b.md @@ -7,29 +7,29 @@ dashedName: step-35 # --description-- -Time to style your table heading. Create an `h1` selector. Give it a `max-width` property set to `37.25rem`, a `margin` property set to `0 auto`, and a `padding` property set to `1.5rem 1.25rem`. +では表の見出しのスタイルを設定しましょう。 `h1` セレクターを作成してください。 `max-width` プロパティを `37.25rem` に、`margin` プロパティを `0 auto` に、`padding` プロパティを `1.5rem 1.25rem` に設定してください。 # --hints-- -You should have an `h1` selector. +`h1` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('h1')); ``` -Your `h1` selector should have a `max-width` property set to `37.25rem`. +`h1` セレクターの `max-width` プロパティを `37.25rem` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('h1')?.getPropertyValue('max-width') === '37.25rem'); ``` -Your `h1` selector should have a `margin` property set to `0 auto`. +`h1` セレクターの `margin` プロパティを `0 auto` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('h1')?.getPropertyValue('margin') === '0px auto'); ``` -Your `h1` selector should have a `padding` property set to `1.5rem 1.25rem`. +`h1` セレクターの `padding` プロパティを `1.5rem 1.25rem` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('h1')?.getPropertyValue('padding') === '1.5rem 1.25rem'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620159cd5431aa34bc6a4c9c.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620159cd5431aa34bc6a4c9c.md index 97f88909a61..784be624fb2 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620159cd5431aa34bc6a4c9c.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620159cd5431aa34bc6a4c9c.md @@ -7,29 +7,29 @@ dashedName: step-36 # --description-- -Target your flex container with an `h1 .flex` selector. Give it a `display` property set to `flex` to enable the flexbox layout. Then set the `flex-direction` property to `column-reverse` - this will display the nested elements from bottom to top. Finally, set the `gap` property to `1rem` to create some space between the elements. +`h1 .flex` セレクターで、フレックスコンテナーを選択します。 フレックスボックスレイアウトを有効にするため、`display` プロパティを `flex` に設定してください。 次に `flex-direction` プロパティを `column-reverse` に設定してください。これで、ネストされている要素が下から上に表示されます。 最後に、要素の間に余白を作るため、`gap` プロパティを `1rem` に設定してください。 # --hints-- -You should have an `h1 .flex` selector. +`h1 .flex` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('h1 .flex')); ``` -Your `h1 .flex` selector should have a `display` property set to `flex`. +`h1 .flex` セレクターの `display` プロパティを `flex` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('h1 .flex')?.getPropertyValue('display') === 'flex'); ``` -Your `h1 .flex` selector should have a `flex-direction` property set to `column-reverse`. +`h1 .flex` セレクターの `flex-direction` プロパティを `column-reverse` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('h1 .flex')?.getPropertyValue('flex-direction') === 'column-reverse'); ``` -Your `h1 .flex` selector should have a `gap` property set to `1rem`. +`h1 .flex` セレクターの `gap` プロパティを `1rem` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('h1 .flex')?.getPropertyValue('gap') === '1rem'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62015a5da1c95c358f079ebb.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62015a5da1c95c358f079ebb.md index a279a7cac28..c599c9c601a 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62015a5da1c95c358f079ebb.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62015a5da1c95c358f079ebb.md @@ -7,13 +7,13 @@ dashedName: step-37 # --description-- -The `:first-of-type` pseudo-selector is used to target the first element that matches the selector. Create an `h1 .flex span:first-of-type` selector to target the first `span` element in your `.flex` container. Remember that your `span` elements are reversed, visually, so this will appear to be the second element on the page. +`:first-of-type` 疑似セレクターを使用すると、あるセレクターに一致する最初の要素を選択できます。 `.flex` コンテナー内の最初の `span` 要素を選択するために、`h1 .flex span:first-of-type` セレクターを作成してください。 `span` 要素は視覚的には逆順 (reverse) に配置されているので、表示上は 2 番目の要素のように見えることに注意してください。 -Give your new selector a `font-size` property of `0.7em` to make it look like a sub-heading. +新しく追加したセレクターの `font-size` プロパティを `0.7em` に設定して、サブ見出しらしい見た目にしましょう。 # --hints-- -You should have an `h1 .flex span:first-of-type` selector. +`h1 .flex span:first-of-type` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('h1 .flex span:first-of-type')); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62015cd2654a1139321a89d2.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62015cd2654a1139321a89d2.md index f8ebce1a753..915e07f7366 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62015cd2654a1139321a89d2.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62015cd2654a1139321a89d2.md @@ -7,17 +7,17 @@ dashedName: step-38 # --description-- -The `:last-of-type` pseudo-selector does the exact opposite - it targets the last element that matches the selector. Create an `h1 .flex span:last-of-type` selector to target the last `span` in your flex container, and give it a `font-size` property set to `1.2em` to make it look like a header. +`:last-of-type` 疑似セレクターは、先ほどと逆に、あるセレクターに一致する最後の要素を選択します。 フレックスコンテナー内の最後の `span` 要素を選択するために、`h1 .flex span:last-of-type` セレクターを作成してください。その `font-size` プロパティを `1.2em` に設定して、見出しらしく見えるようにしましょう。 # --hints-- -You should have an `h1 .flex span:last-of-type` selector. +`h1 .flex span:last-of-type` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('h1 .flex span:last-of-type')); ``` -Your `h1 .flex span:last-of-type` selector should have a `font-size` property set to `1.2em`. +`h1 .flex span:last-of-type` セレクターの `font-size` プロパティを `1.2em` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('h1 .flex span:last-of-type')?.getPropertyValue('font-size') === '1.2em'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62015d8942384c3aed48329e.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62015d8942384c3aed48329e.md index b58bbefae56..e531a657d9d 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62015d8942384c3aed48329e.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62015d8942384c3aed48329e.md @@ -7,29 +7,29 @@ dashedName: step-39 # --description-- -You wrapped your table in a section element - now you can style that to give your table a border. Create a `section` selector, and give it a `max-width` property set to `40rem` for responsive design. Set the `margin` property to `0 auto` to center it, and set the `border` property to `2px solid #d0d0d5`. +表全体をセクション要素で囲んであるので、そのセクション要素にスタイルを設定することで表の周りに境界線を作ることができます。 `section` セレクターを作成し、レスポンシブデザインにするために `max-width` プロパティを `40rem` に設定してください。 中央揃えにするため `margin` プロパティを `0 auto` に設定し、`border` プロパティは `2px solid #d0d0d5` に設定してください。 # --hints-- -You should have a `section` selector. +`section` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('section')); ``` -Your `section` selector should have a `max-width` property set to `40rem`. +`section` セレクターの `max-width` プロパティを `40rem` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('section')?.getPropertyValue('max-width') === '40rem'); ``` -Your `section` selector should have a `margin` property set to `0 auto`. +`section` セレクターの `margin` プロパティを `0 auto` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('section')?.getPropertyValue('margin') === '0px auto'); ``` -Your `section` selector should have a `border` property set to `2px solid #d0d0d5`. +`section` セレクターの `border` プロパティを `2px solid #d0d0d5` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('section')?.getPropertyValue('border') === '2px solid rgb(208, 208, 213)'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620167374bb8b4455cd11125.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620167374bb8b4455cd11125.md index 0977f73e073..d373a8724ad 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620167374bb8b4455cd11125.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620167374bb8b4455cd11125.md @@ -7,35 +7,35 @@ dashedName: step-40 # --description-- -The last part of your table heading is your years. Create a `#years` selector, and enable flexbox. Justify the content to the end of the flex direction, and make the element sticky. Fix it to the top of its container with `top: 0`. +表の見出しの最後の部分は、年の表示です。 `#years` セレクターを作成して、フレックスボックスを有効にしてください。 コンテンツをフレックスコンテナーの主軸方向の末尾に寄せ、スクロールした時にこの要素が画面に貼りつく (sticky) ようにしてください。 その際コンテナーの上端で固定されるように、`top: 0` を設定してください。 # --hints-- -You should have a `#years` selector. +`#years` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('#years')); ``` -Your `#years` selector should have a `display` property set to `flex`. +`#years` セレクターの `display` プロパティを `flex` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('#years')?.getPropertyValue('display') === 'flex'); ``` -Your `#years` selector should have a `justify-content` property set to `flex-end`. +`#years` セレクターの `justify-content` プロパティを `flex-end` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('#years')?.getPropertyValue('justify-content') === 'flex-end'); ``` -Your `#years` selector should have a `position` property set to `sticky`. +`#years` セレクターの `position` プロパティを `sticky` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('#years')?.getPropertyValue('position') === 'sticky'); ``` -Your `#years` selector should have a `top` property set to `0`. +`#years` セレクターの `top` プロパティを `0` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('#years')?.getPropertyValue('top') === '0px'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620174ed519dd7506c1a4b61.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620174ed519dd7506c1a4b61.md index 3d2b5d2892b..dff21b4ebed 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620174ed519dd7506c1a4b61.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620174ed519dd7506c1a4b61.md @@ -7,17 +7,17 @@ dashedName: step-41 # --description-- -Now apply some color to your `#years`. Make the text `#fff` and the background `#0a0a23`. +では `#years` に色を付けましょう。 文字色を `#fff` に、背景色を `#0a0a23` に設定してください。 # --hints-- -Your `#years` should have a `color` property set to `#fff`. +`#years` の `color` プロパティを `#fff` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('#years')?.getPropertyValue('color') === 'rgb(255, 255, 255)'); ``` -Your `#years` should have a `background-color` property set to `#0a0a23`. +`#years` の `background-color` プロパティを `#0a0a23` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('#years')?.getPropertyValue('background-color') === 'rgb(10, 10, 35)'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620175b3710a0951cfa86edf.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620175b3710a0951cfa86edf.md index e4ad10c3e88..458251d4f2c 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620175b3710a0951cfa86edf.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620175b3710a0951cfa86edf.md @@ -7,7 +7,7 @@ dashedName: step-42 # --description-- -The `calc()` function is a CSS function that allows you to calculate a value based on other values. For example, you can use it to calculate the width of the viewport minus the margin of an element: +`calc()` 関数は、他の値に基づいて値を計算する CSS 関数です。 例えば、以下のようにしてビューポートの幅全体から要素のマージンを引いた値を計算できます。 ```css .example { @@ -16,7 +16,7 @@ The `calc()` function is a CSS function that allows you to calculate a value bas } ``` -Ensure your years do not get hidden by setting a `z-index` of `999`. Then, give it a `margin` of `0 -2px`, and a `padding` set to `0.5rem calc(1.25rem + 2px) 0.5rem 0`. +年の表示が隠れないようにするため、`z-index` を `999` に設定してください。 次に、`margin` を `0 -2px` に、`padding` を `0.5rem calc(1.25rem + 2px) 0.5rem 0` に設定してください。 # --hints-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201782cc420715562f36271.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201782cc420715562f36271.md index 9e7788df350..3d3a1954c4c 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201782cc420715562f36271.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201782cc420715562f36271.md @@ -7,31 +7,31 @@ dashedName: step-43 # --description-- -Style the text within your `#years` element by creating a `#years span[class]` selector. The `span[class]` syntax will target any `span` element that has a `class` attribute set, regardless of the attribute's value. +`#years` 要素内のテキストにスタイルを設定するため、`#years span[class]` セレクターを作成してください。 `span[class]` という構文は、`class` 属性が設定されている `span` 要素を、属性値に関わらず選択します。 -Give your new selector a `bold` font, a width of `4.5rem`, and text aligned to the right. +新しく追加したセレクターについて、フォントを `bold` (太字) にし、要素の幅を `4.5rem` に、テキストを右揃えにしてください。 # --hints-- -You should have a `#years span[class]` selector. +`#years span[class]` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('#years span[class]')); ``` -Your `#years span[class]` selector should have a `font-weight` property set to `bold`. +`#years span[class]` セレクターの `font-weight` プロパティを `bold` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('#years span[class]')?.getPropertyValue('font-weight') === 'bold'); ``` -Your `#years span[class]` selector should have a `width` property set to `4.5rem`. +`#years span[class]` セレクターの `width` プロパティを `4.5rem` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('#years span[class]')?.getPropertyValue('width') === '4.5rem'); ``` -Your `#years span[class]` selector should have a `text-align` property set to `right`. +`#years span[class]` セレクターの `text-align` プロパティを `right` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('#years span[class]')?.getPropertyValue('text-align') === 'right'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620179bc0a6a2358c72b90ad.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620179bc0a6a2358c72b90ad.md index 2171184dc66..c8b0e75eb92 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620179bc0a6a2358c72b90ad.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620179bc0a6a2358c72b90ad.md @@ -7,17 +7,17 @@ dashedName: step-44 # --description-- -You wrapped your tables in a container with the `table-wrap` class. Create a selector for that class, and give it a `padding` set to `0 0.75rem 1.5rem 0.75rem`. +全テーブルを `table-wrap` クラスのコンテナーで囲んでありますね。 このクラスを選択するセレクターを作成し、`padding` を `0 0.75rem 1.5rem 0.75rem` に設定してください。 # --hints-- -You should have a `.table-wrap` selector. +`.table-wrap` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('.table-wrap')); ``` -Your `.table-wrap` selector should have a `padding` property set to `0 0.75rem 1.5rem 0.75rem`. +`.table-wrap` セレクターの `padding` プロパティを `0 0.75rem 1.5rem 0.75rem` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('.table-wrap')?.getPropertyValue('padding') === '0px 0.75rem 1.5rem'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62017b6f47454059bf2d3bd1.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62017b6f47454059bf2d3bd1.md index 5fb26c9042a..5180de84ed2 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62017b6f47454059bf2d3bd1.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62017b6f47454059bf2d3bd1.md @@ -7,19 +7,19 @@ dashedName: step-45 # --description-- -Before you start diving in to the table itself, your `span` elements are currently bolded. Create a `span:not(.sr-only)` selector and give it a `font-weight` property set to `normal`. +テーブル自体のスタイル設定に取り掛かりたいところですが、現状、`span` 要素が太字になっています。 `span:not(.sr-only)` セレクターを作成して、`font-weight` プロパティを `normal` に設定してください。 -The `:not()` pseudo-selector is used to target all elements that do not match the selector - in this case, any of your `span` elements that do not have the `sr-only` class. This ensures that your earlier rules for the `span[class~="sr-only"]` selector are not overwritten. +`:not()` 疑似セレクターを使うと、あるセレクターに一致しないすべての要素を選択できます。この例では、`sr-only` クラスを持たない `span` 要素すべてを選択します。 これで、前に設定した `span[class~="sr-only"]` クラス用のルールが上書きされなくなります。 # --hints-- -You should have a `span:not(.sr-only)` selector. +`span:not(.sr-only)` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('span:not(.sr-only)')); ``` -Your `span:not(.sr-only)` selector should have a `font-weight` property set to `normal`. +`span:not(.sr-only)` セレクターの `font-weight` プロパティを `normal` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('span:not(.sr-only)')?.getPropertyValue('font-weight') === 'normal'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62017f47c87be96457c49f46.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62017f47c87be96457c49f46.md index aaf4d768f62..4e88b02e47f 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62017f47c87be96457c49f46.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62017f47c87be96457c49f46.md @@ -7,13 +7,13 @@ dashedName: step-46 # --description-- -Rather than having to constantly double-check you are not overwriting your earlier properties, you can use the `!important` keyword to ensure these properties are always applied, regardless of order or specificity. +先に設定したプロパティを上書きしてしまわないか頻繁にダブルチェックしなくて済むように、`!important` キーワードを使って、指定順や詳細度 (specificity) に関わらず常にそのプロパティが適用されるようにできます。 -Give each property in your `span[class~="sr-only"]` selector an `!important` keyword. Do not change any of the values. +`span[class~="sr-only"]` セレクター内の各プロパティに、`!important` キーワードを追加してください。 設定値はいずれも変更しないでください。 # --hints-- -Your `span[class~="sr-only"]` selector should have the `border` property set to `0 !important`. +`span[class~="sr-only"]` セレクターの `border` プロパティを `0 !important` に設定する必要があります。 ```js // log it @@ -21,70 +21,70 @@ const text = new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')? assert(text.includes('border: 0px !important;') || text.includes('border: 0px none !important')); ``` -Your `span[class~="sr-only"]` selector should have the `clip` property set to `rect(1px, 1px, 1px, 1px) !important`. +`span[class~="sr-only"]` セレクターの `clip` プロパティを `rect(1px, 1px, 1px, 1px) !important` に設定する必要があります。 ```js const text = new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')?.cssText; assert(text.includes('clip: rect(1px, 1px, 1px, 1px) !important;')); ``` -Your `span[class~="sr-only"]` selector should have the `clip-path` property set to `inset(50%) !important`. +`span[class~="sr-only"]` セレクターの `clip-path` プロパティを `inset(50%) !important` に設定する必要があります。 ```js const text = new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')?.cssText; assert(text.includes('clip-path: inset(50%) !important;')); ``` -Your `span[class~="sr-only"]` selector should have the `-webkit-clip-path` property set to `inset(50%) !important`. +`span[class~="sr-only"]` セレクターの `-webkit-clip-path` プロパティを `inset(50%) !important` に設定する必要があります。 ```js // this one gets removed apparently assert(code.includes('-webkit-clip-path: inset(50%) !important;')); ``` -Your `span[class~="sr-only"]` selector should have the `height` property set to `1px !important`. +`span[class~="sr-only"]` セレクターの `height` プロパティを `1px !important` に設定する必要があります。 ```js const text = new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')?.cssText; assert(text.includes('height: 1px !important;')); ``` -Your `span[class~="sr-only"]` selector should have the `width` property set to `1px !important`. +`span[class~="sr-only"]` セレクターの `width` プロパティを `1px !important` に設定する必要があります。 ```js const text = new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')?.cssText; assert(text.includes('width: 1px !important;')); ``` -Your `span[class~="sr-only"]` selector should have the `position` property set to `absolute !important`. +`span[class~="sr-only"]` セレクターの `position` プロパティを `absolute !important` に設定する必要があります。 ```js const text = new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')?.cssText; assert(text.includes('position: absolute !important;')); ``` -Your `span[class~="sr-only"]` selector should have the `overflow` property set to `hidden !important`. +`span[class~="sr-only"]` セレクターの `overflow` プロパティを `hidden !important` に設定する必要があります。 ```js const text = new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')?.cssText; assert(text.includes('overflow: hidden !important;')); ``` -Your `span[class~="sr-only"]` selector should have the `white-space` property set to `nowrap !important`. +`span[class~="sr-only"]` セレクターの `white-space` プロパティを `nowrap !important` に設定する必要があります。 ```js const text = new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')?.cssText; assert(text.includes('white-space: nowrap !important;')); ``` -Your `span[class~="sr-only"]` selector should have the `padding` property set to `0 !important`. +`span[class~="sr-only"]` セレクターの `padding` プロパティを `0 !important` に設定する必要があります。 ```js const text = new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')?.cssText; assert(text.includes('padding: 0px !important;')); ``` -Your `span[class~="sr-only"]` selector should have the `margin` property set to `-1px !important`. +`span[class~="sr-only"]` セレクターの `margin` プロパティを `-1px !important` に設定する必要があります。 ```js const text = new __helpers.CSSHelp(document).getStyle('span[class~="sr-only"]')?.cssText; diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62017fa5bbef406580ceb44f.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62017fa5bbef406580ceb44f.md index 323e0c581c7..ed17ae5c82a 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62017fa5bbef406580ceb44f.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62017fa5bbef406580ceb44f.md @@ -7,23 +7,23 @@ dashedName: step-47 # --description-- -Now that you have added the `!important` keyword, you can remove the `:not(.sr-only)` from your `span` selector. +`!important` キーワードを追加したので、`span` セレクターから `:not(.sr-only)` を削除できます。 # --hints-- -You should not have a `span:not(.sr-only)` selector. +`span:not(.sr-only)` セレクターがないようにしてください。 ```js assert(!(new __helpers.CSSHelp(document).getStyle('span:not(.sr-only)'))); ``` -You should have a `span` selector. +`span` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('span')); ``` -You should not change the `font-weight`. +`font-weight` を変更しないでください。 ```js assert(new __helpers.CSSHelp(document).getStyle('span')?.getPropertyValue('font-weight') === 'normal'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62018243f046a368fab8ffb6.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62018243f046a368fab8ffb6.md index 473b8afe36b..4556a19d53a 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62018243f046a368fab8ffb6.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62018243f046a368fab8ffb6.md @@ -7,23 +7,23 @@ dashedName: step-48 # --description-- -Create a `table` selector to target your tables. Set the `border-collapse` property to `collapse`, which will allow cell borders to collapse into a single border, instead of a border around each cell. Also set the `border` property to `0` to hide the borders themselves. +テーブルを選択するため、`table` セレクターを作成してください。 `border-collapse` プロパティを `collapse` に設定して、各セルを個別に囲む境界線が 1 本の境界線になるようにしてください。 また、`border` プロパティを `0` に設定し、境界線自体を非表示にしてください。 # --hints-- -You should have a `table` selector. +`table` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('table')); ``` -Your `table` selector should have a `border-collapse` property set to `collapse`. +`table` セレクターの `border-collapse` プロパティを `collapse` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('table')?.getPropertyValue('border-collapse') === 'collapse'); ``` -Your `table` selector should have a `border` property set to `0`. +`table` セレクターの `border` プロパティを `0` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('table')?.getPropertyValue('border-width') === '0px'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201830cb0c74b69f1b41635.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201830cb0c74b69f1b41635.md index d503cca97e3..b0433359e80 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201830cb0c74b69f1b41635.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201830cb0c74b69f1b41635.md @@ -7,23 +7,23 @@ dashedName: step-49 # --description-- -Ensure your table fills its container with a `width` property set to `100%`, then position it relatively and give it a top margin of `3rem`. +`width` プロパティを `100%` に設定して、テーブルがコンテナーの幅全体に広がるようにしましょう。次に、要素の配置 (position) を相対位置指定にし、上部のマージンを `3rem` に設定してください。 # --hints-- -Your `table` selector should have a `width` property set to `100%`. +`table` セレクターの `width` プロパティを `100%` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('table')?.getPropertyValue('width') === '100%'); ``` -Your `table` selector should have a `position` property set to `relative`. +`table` セレクターの `position` プロパティを `relative` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('table')?.getPropertyValue('position') === 'relative'); ``` -Your `table` selector should have a `margin-top` property set to `3rem`. +`table` セレクターの `margin-top` プロパティを `3rem` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('table')?.getPropertyValue('margin-top') === '3rem'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620186f4b6b8356d2def576b.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620186f4b6b8356d2def576b.md index 6257c765a05..3ae90581e56 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620186f4b6b8356d2def576b.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620186f4b6b8356d2def576b.md @@ -7,29 +7,29 @@ dashedName: step-50 # --description-- -Next you need to style your `caption` elements to look more like headers. Create a `table caption` selector. Set the text to have a color of `#356eaf`, a size of `1.3em`, and a normal weight. +次に、`caption` 要素がよりヘッダーらしく見えるようにスタイリングします。 `table caption` セレクターを作成してください。 テキストの文字色を `#356eaf` に、文字サイズを `1.3em` に、文字の太さを通常にしてください。 # --hints-- -You should have a `table caption` selector. +`table caption` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('table caption')); ``` -Your `table caption` selector should have a `color` property set to `#356eaf`. +`table caption` セレクターの `color` プロパティを `#356eaf` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('table caption')?.getPropertyValue('color') === 'rgb(53, 110, 175)'); ``` -Your `table caption` selector should have a `font-size` property set to `1.3em`. +`table caption` セレクターの `font-size` プロパティを `1.3em` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('table caption')?.getPropertyValue('font-size') === '1.3em'); ``` -Your `table caption` selector should have a `font-weight` property set to `normal`. +`table caption` セレクターの `font-weight` プロパティを `normal` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('table caption')?.getPropertyValue('font-weight') === 'normal'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62018ba1aa263770c953be66.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62018ba1aa263770c953be66.md index c138c3e272d..6ca33cc5b63 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62018ba1aa263770c953be66.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62018ba1aa263770c953be66.md @@ -7,23 +7,23 @@ dashedName: step-51 # --description-- -Now give the captions an absolute position, and shift them `-2.25rem` from the top and `0.5rem` from the left. +では次に、キャプションを絶対位置指定に設定し、上端から `-2.25rem`、左端から `0.5rem` の位置に配置してください。 # --hints-- -Your `table caption` selector should have the `position` property set to `absolute`. +`table caption` セレクターの `position` プロパティを `absolute` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('table caption')?.getPropertyValue('position') === 'absolute'); ``` -Your `table caption` selector should have the `top` property set to `-2.25rem`. +`table caption` セレクターの `top` プロパティを `-2.25rem` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('table caption')?.getPropertyValue('top') === '-2.25rem'); ``` -Your `table caption` selector should have the `left` property set to `0.5rem`. +`table caption` セレクターの `left` プロパティを `0.5rem` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('table caption')?.getPropertyValue('left') === '0.5rem'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62018c3e94434a71af1d5eaa.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62018c3e94434a71af1d5eaa.md index 7ecf46ac1d3..def10b65504 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62018c3e94434a71af1d5eaa.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62018c3e94434a71af1d5eaa.md @@ -7,7 +7,7 @@ dashedName: step-52 # --description-- -Create a selector to target your `td` elements within your table body. Give them a width to fill the viewport, with a minimum and maximum of `4rem`. This approach ensures that the width is fixed, whereas setting `width` specifically would allow the elements to shrink to the container (because we are using flexbox). +テーブルのボディ内にある `td` 要素を選択するセレクターを作成してください。 その幅がビューポートの幅全体に広がるよう設定し、最小の幅も最大の幅も `4rem` に設定してください。 `width` を特定の値に設定しても (フレックスボックスを使っているために) コンテナーの幅に応じて要素が縮小してしまうのに対し、このアプローチであれば、幅が確実に固定されます。 # --hints-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62018ec29b3ae674f40bef31.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62018ec29b3ae674f40bef31.md index 0f39c1b2ba6..609db6b4666 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62018ec29b3ae674f40bef31.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62018ec29b3ae674f40bef31.md @@ -7,17 +7,17 @@ dashedName: step-53 # --description-- -Now target the `th` elements within your table body, and give them a width of the entire container, less `12rem`. +次に、テーブルのボディ内にある `th` 要素を選択し、幅をコンテナーの全幅から `12rem` 引いた値に設定してください。 # --hints-- -You should have a `tbody th` selector. +`tbody th` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('tbody th')); ``` -Your `tbody th` selector should have a `width` property set to `calc(100% - 12rem)`. +`tbody th` セレクターの `width` プロパティを `calc(100% - 12rem)` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('tbody th')?.getPropertyValue('width') === 'calc(100% - 12rem)'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62019093fe30e278e797d2f6.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62019093fe30e278e797d2f6.md index c62ae625a70..02a9efcaf81 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62019093fe30e278e797d2f6.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/62019093fe30e278e797d2f6.md @@ -7,23 +7,23 @@ dashedName: step-54 # --description-- -The `[attribute="value"]` selector targets any element that has an attribute with a specific value. Create a `tr[class="total"]` selector to target specifically your `tr` elements with the `total` class. Give it a bottom border of `4px double #0a0a23` and make the font bold. +`[attribute="value"]` セレクターは、特定の属性に、特定の値を持つすべての要素を選択します。 `total` クラスを持つ `tr` 要素を選択するため、`tr[class="total"]` セレクターを作成してください。 下端の境界線を `4px double #0a0a23` に設定し、フォントを太字にしてください。 # --hints-- -You should have a `tr[class="total"]` selector. +`tr[class="total"]` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr[class="total"]')); ``` -Your `tr[class="total"]` selector should have a `border-bottom` property set to `4px double #0a0a23`. +`tr[class="total"]` セレクターの `border-bottom` プロパティを `4px double #0a0a23` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr[class="total"]')?.getPropertyValue('border-bottom') === '4px double rgb(10, 10, 35)'); ``` -Your `tr[class="total"]` selector should have a `font-weight` property set to `bold`. +`tr[class="total"]` セレクターの `font-weight` プロパティを `bold` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr[class="total"]')?.getPropertyValue('font-weight') === 'bold'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620191707bc65579ddd3ce15.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620191707bc65579ddd3ce15.md index 82bbb5e5ca4..f3a7a575322 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620191707bc65579ddd3ce15.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620191707bc65579ddd3ce15.md @@ -7,7 +7,7 @@ dashedName: step-55 # --description-- -Using the same selector syntax, target the `th` elements within your table rows where the `class` is `total`. Align the text to the left, and give them a padding of `0.5rem 0 0.25rem 0.5rem`. +同じセレクター構文を用いて、`class` が `total` であるテーブル行内の、`th` 要素を選択してください。 その要素のテキストを左寄せにして、パディングを `0.5rem 0 0.25rem 0.5rem` に設定してください。 # --hints-- diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620192a767533a7ad19d96d7.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620192a767533a7ad19d96d7.md index 65c5de136ae..ad5b751e33c 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620192a767533a7ad19d96d7.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620192a767533a7ad19d96d7.md @@ -7,25 +7,25 @@ dashedName: step-56 # --description-- -The key difference between `tr[class="total"]` and `tr.total` is that the first will select `tr` elements where the *only* class is `total`. The second will select `tr` elements where the class *includes* total. +`tr[class="total"]` と `tr.total` の主な違いとして、前者はクラスが `total` *のみ*である `tr` 要素を選択します。 対して後者は、クラスに total を*含む* `tr` 要素を選択します。 -In your case, `tr.total` will work. You can use this selector to target all `td` elements within your `.total` rows. Align the text to the right, and give them a padding of `0 0.25rem`. +このプロジェクトの例では、`tr.total` も使用できます。 このセレクターを用いて `.total` の行内にあるすべての `td` 要素を選択してください。 テキストを右寄せにして、パディングを `0 0.25rem` に設定してください。 # --hints-- -You should have a `tr.total td` selector. +`tr.total td` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.total td')); ``` -Your `tr.total td` selector should have a `text-align` property set to `right`. +`tr.total td` セレクターの `text-align` プロパティを `right` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.total td')?.getPropertyValue('text-align') === 'right'); ``` -Your `tr.total td` selector should have a `padding` property set to `0 0.25rem`. +`tr.total td` セレクターの `padding` プロパティを `0 0.25rem` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.total td')?.getPropertyValue('padding') === '0px 0.25rem'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201995d9ab88e80f1989dce.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201995d9ab88e80f1989dce.md index 8ae8ccdd878..92774a8de94 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201995d9ab88e80f1989dce.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201995d9ab88e80f1989dce.md @@ -7,17 +7,17 @@ dashedName: step-57 # --description-- -The `:nth-of-type()` pseudo-selector is used to target specific elements based on their order among siblings of the same type. Use this pseudo-selector to target the third `td` element within your `total` table rows. Give it a right padding of `0.5rem`. +`:nth-of-type()` 疑似セレクターを使用すると、同じ型の兄弟要素の中での順序に基づいて、特定の要素を選択できます。 この疑似セレクターを使用して、`total` のテーブル行内で 3 番目の `td` 要素を選択してください。 その右側のパディングを `0.5rem` に設定してください。 # --hints-- -You should have a `tr.total td:nth-of-type(3)` selector. +`tr.total td:nth-of-type(3)` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.total td:nth-of-type(3)')); ``` -Your `tr.total td:nth-of-type(3)` selector should have a `padding-right` property set to `0.5rem`. +`tr.total td:nth-of-type(3)` セレクターの `padding-right` プロパティを `0.5rem` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.total td:nth-of-type(3)')?.getPropertyValue('padding-right') === '0.5rem'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620199c7a7a32c81d4db3410.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620199c7a7a32c81d4db3410.md index 8588b508a17..f3a2bd27680 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620199c7a7a32c81d4db3410.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/620199c7a7a32c81d4db3410.md @@ -7,17 +7,17 @@ dashedName: step-58 # --description-- -Give your `tr.total` elements a hover effect that changes the background to `#99c9ff`. +`tr.total` 要素に、背景色が `#99c9ff` に変わるホバーエフェクトを追加してください。 # --hints-- -You should have a `tr.total:hover` selector. +`tr.total:hover` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.total:hover')); ``` -Your `tr.total:hover` selector should have the `background-color` property set to `#99c9ff`. +`tr.total:hover` セレクターの `background-color` プロパティを `#99c9ff` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.total:hover')?.getPropertyValue('background-color') === 'rgb(153, 201, 255)'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a1a7af32c287bd6b8183.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a1a7af32c287bd6b8183.md index 792f745023c..27fcb754900 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a1a7af32c287bd6b8183.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a1a7af32c287bd6b8183.md @@ -7,18 +7,18 @@ dashedName: step-59 # --description-- -Select your `td` elements with the `class` value of `current`, and make the font italic. +`class` の値が `current` の `td` 要素を選択し、フォントをイタリック体にしてください。 # --hints-- -You should have a `td.current` selector. +`td.current` セレクターが必要です。 ```js const def = (s) => new __helpers.CSSHelp(document).getStyle(s); assert(def('td.current') || def('td[class="current"]')); ``` -Your `td.current` selector should have the `font-style` property set to `italic`. +`td.current` セレクターの `font-style` プロパティを `italic` に設定する必要があります。 ```js const font = (s) => new __helpers.CSSHelp(document).getStyle(s)?.getPropertyValue('font-style'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a1cc668a34888f5b2f52.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a1cc668a34888f5b2f52.md index 1a10fb6b8be..93594da070a 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a1cc668a34888f5b2f52.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a1cc668a34888f5b2f52.md @@ -7,18 +7,18 @@ dashedName: step-60 # --description-- -Select the `tr` elements with the `class` set to `data`. Give them a background image of `linear-gradient(to bottom, #dfdfe2 1.845rem, white 1.845rem)`. +`class` が `data` に設定されている `tr` 要素を選択してください。 その背景画像として `linear-gradient(to bottom, #dfdfe2 1.845rem, white 1.845rem)` を設定してください。 # --hints-- -You should have a `tr.data` selector. +`tr.data` セレクターが必要です。 ```js const def = (s) => new __helpers.CSSHelp(document).getStyle(s); assert(def('tr.data') || def('tr[class="data"]')); ``` -Your `tr.data` selector should have the `background-image` property set to `linear-gradient(to bottom, #dfdfe2 1.845rem, white 1.845rem)`. +`tr.data` セレクターの `background-image` プロパティを `linear-gradient(to bottom, #dfdfe2 1.845rem, white 1.845rem)` に設定する必要があります。 ```js const bg = (s) => new __helpers.CSSHelp(document).getStyle(s)?.getPropertyValue('background-image'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a20d742f5c89736c8cfb.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a20d742f5c89736c8cfb.md index fe70986f30d..6604c8bf360 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a20d742f5c89736c8cfb.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a20d742f5c89736c8cfb.md @@ -7,29 +7,29 @@ dashedName: step-61 # --description-- -Select the `th` elements within your `tr.data` elements. Align the text to the left, and give them a top padding of `0.3rem` and a left padding of `0.5rem`. +`tr.data` の要素内にある `th` 要素を選択してください。 テキストを左寄せにして、上部のパディングを `0.3rem` に、左側のパディングを `0.5rem` に設定してください。 # --hints-- -You should have a `tr.data th` selector. +`tr.data th` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.data th')); ``` -Your `tr.data th` selector should have a `text-align` property set to `left`. +`tr.data th` セレクターの `text-align` プロパティを `left` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.data th')?.getPropertyValue('text-align') === 'left'); ``` -Your `tr.data th` selector should have a `padding-top` property set to `0.3rem`. +`tr.data th` セレクターの `padding-top` プロパティを `0.3rem` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.data th')?.getPropertyValue('padding-top') === '0.3rem'); ``` -Your `tr.data th` selector should have a `padding-left` property set to `0.5rem`. +`tr.data th` セレクターの `padding-left` プロパティを `0.5rem` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.data th')?.getPropertyValue('padding-left') === '0.5rem'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a42e39bf3b95b6a33bf3.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a42e39bf3b95b6a33bf3.md index 86928bf5efb..cb0dfa8000a 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a42e39bf3b95b6a33bf3.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a42e39bf3b95b6a33bf3.md @@ -7,41 +7,41 @@ dashedName: step-62 # --description-- -Create a `tr.data th .description` selector to target the elements with the `class` set to `description` that are within your `th` elements in your `.data` table rows. Give them a block display, make the text italic with a normal weight, and position them with a `padding` set to `1rem 0 0.75rem` and a right margin of `-13.5rem`. +`tr.data th .description` セレクターを作成して、`.data` に該当するテーブル行の中にある `th` 要素の、その更に中にある、`class` が `description` に設定されている要素を選択してください。 この要素を、ブロック要素として表示するように設定し、テキストは通常の太さのイタリック体にしてください。そして、`padding` の設定が `1rem 0 0.75rem` 、右側のマージンが `-13.5rem` の位置に配置してください。 # --hints-- -You should have a `tr.data th .description` selector. +`tr.data th .description` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.data th .description')); ``` -Your `tr.data th .description` selector should have a `display` property set to `block`. +`tr.data th .description` セレクターの `display` プロパティを `block` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.data th .description')?.getPropertyValue('display') === 'block'); ``` -Your `tr.data th .description` selector should have a `font-style` property set to `italic`. +`tr.data th .description` セレクターの `font-style` プロパティを `italic` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.data th .description')?.getPropertyValue('font-style') === 'italic'); ``` -Your `tr.data th .description` selector should have a `font-weight` property set to `normal`. +`tr.data th .description` セレクターの `font-weight` プロパティを `normal` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.data th .description')?.getPropertyValue('font-weight') === 'normal'); ``` -Your `tr.data th .description` selector should have a `padding` property set to `1rem 0 0.75rem`. +`tr.data th .description` セレクターの `padding` プロパティを `1rem 0 0.75rem` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.data th .description')?.getPropertyValue('padding') === '1rem 0px 0.75rem'); ``` -Your `tr.data th .description` selector should have a `margin-right` property set to `-13.5rem`. +`tr.data th .description` セレクターの `margin-right` プロパティを `-13.5rem` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.data th .description')?.getPropertyValue('margin-right') === '-13.5rem'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a4adcc6414968b391592.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a4adcc6414968b391592.md index 9300a7b2c1b..b4ce60ecedb 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a4adcc6414968b391592.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a4adcc6414968b391592.md @@ -7,11 +7,11 @@ dashedName: step-63 # --description-- -Your `span` elements now all have more specific styling, which means you can remove your `span` rule. +各 `span` 要素に特有のスタイルを設定したので、`span` ルールを削除しましょう。 # --hints-- -You should not have a `span` selector. +`span` セレクターが無いようにしてください。 ```js assert(!(new __helpers.CSSHelp(document).getStyle('span'))); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a5258af7b398b030bfaf.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a5258af7b398b030bfaf.md index 521068a68b7..c8682f38ccf 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a5258af7b398b030bfaf.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a5258af7b398b030bfaf.md @@ -7,29 +7,29 @@ dashedName: step-64 # --description-- -Your dollar amounts are currently misaligned. Create a selector to target the `td` elements within your `tr.data` elements. Vertically align the text to the top, horizontally align the text to the right, and set the padding to `0.3rem 0.25rem 0`. +ドルの金額表示がずれていますね。 `tr.data` 要素内にある `td` 要素を選択するセレクターを作成してください。 そしてテキストを垂直方向の上側、水平方向の右側に揃え、パディングを `0.3rem 0.25rem 0` に設定してください。 # --hints-- -You should have a `tr.data td` selector. +`tr.data td` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.data td')); ``` -Your `tr.data td` selector should have a `vertical-align` property set to `top`. +`tr.data td` セレクターの `vertical-align` プロパティを `top` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.data td')?.getPropertyValue('vertical-align') === 'top'); ``` -Your `tr.data td` selector should have a `text-align` property set to `right`. +`tr.data td` セレクターの `text-align` プロパティを `right` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.data td')?.getPropertyValue('text-align') === 'right'); ``` -Your `tr.data td` selector should have a `padding` property set to `0.3rem 0.25rem 0`. +`tr.data td` セレクターの `padding` プロパティを `0.3rem 0.25rem 0` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.data td')?.getPropertyValue('padding') === '0.3rem 0.25rem 0px'); diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a59be346d399c21d10b1.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a59be346d399c21d10b1.md index a040d4dc4ac..dcea2380d4e 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a59be346d399c21d10b1.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/6201a59be346d399c21d10b1.md @@ -7,19 +7,19 @@ dashedName: step-65 # --description-- -Create another selector for the `td` elements within your `tr.data` element, but specifically select the last one. Give this a right padding of `0.5rem`. +もう 1 つセレクターを作成しますが、今度は `tr.data` 要素内にある `td` 要素の、最後の 1 つだけを選択してください。 その右側のパディングを `0.5rem` に設定してください。 -With this, your balance sheet is complete! +これで、バランスシートの完成です! # --hints-- -You should have a `tr.data td:last-of-type` selector. +`tr.data td:last-of-type` セレクターが必要です。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.data td:last-of-type')); ``` -Your `tr.data td:last-of-type` selector should have a `padding-right` property set to `0.5rem`. +`tr.data td:last-of-type` セレクターの `padding-right` プロパティを `0.5rem` に設定する必要があります。 ```js assert(new __helpers.CSSHelp(document).getStyle('tr.data td:last-of-type')?.getPropertyValue('padding-right') === '0.5rem'); diff --git a/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md b/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md index 4bfd307fff4..cbee908d3f4 100644 --- a/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md +++ b/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md @@ -20,10 +20,12 @@ Escreva o seu próprio `Array.prototype.myMap()` e faça com que ele se comporte # --hints-- -`new_s` deve ser `[46, 130, 196, 10]`. +`[23, 65, 98, 5, 13].myMap(item => item * 2)` deve ser igual a `[46, 130, 196, 10, 26]`. ```js -assert(JSON.stringify(new_s) === JSON.stringify([46, 130, 196, 10])); +const _test_s = [46, 130, 196, 10, 13]; +const _callback = item => item * 2; +assert(JSON.stringify(_test_s.map(_callback)) === JSON.stringify(_test_s.myMap(_callback))); ``` Você não deve usar o método `map`. @@ -37,9 +39,6 @@ assert(!code.match(/\.?[\s\S]*?map/g)); ## --seed-contents-- ```js -// The global variable -const s = [23, 65, 98, 5]; - Array.prototype.myMap = function(callback) { const newArray = []; // Only change code below this line @@ -47,17 +46,11 @@ Array.prototype.myMap = function(callback) { // Only change code above this line return newArray; }; - -const new_s = s.myMap(function(item) { - return item * 2; -}); ``` # --solutions-- ```js -const s = [23, 65, 98, 5]; - Array.prototype.myMap = function(callback) { const newArray = []; for (const elem of this) { @@ -66,7 +59,7 @@ Array.prototype.myMap = function(callback) { return newArray; }; -const new_s = s.myMap(function(item) { - return item * 2; -}); +// Test case +const s = [23, 65, 98, 5]; +const doubled_s = s.myMap(item => item * 2); ``` diff --git a/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md b/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md index 96fa45b4f6e..a56a4594222 100644 --- a/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md +++ b/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md @@ -16,10 +16,12 @@ Escreva o seu próprio `Array.prototype.myFilter()` e faça com que ele se compo # --hints-- -`new_s` deve ser `[23, 65, 5]`. +`[23, 65, 98, 5, 13].myFilter(item => item % 2)` deve ser igual a `[23, 65, 5, 13]`. ```js -assert(JSON.stringify(new_s) === JSON.stringify([23, 65, 5])); +const _test_s = [23, 65, 98, 5, 13]; +const _callback = item => item % 2; +assert(JSON.stringify(_test_s.filter(_callback)) === JSON.stringify(_test_s.myFilter(_callback))); ``` Você não deve usar o método `filter`. @@ -33,26 +35,18 @@ assert(!code.match(/\.?[\s\S]*?filter/g)); ## --seed-contents-- ```js -// The global variable -const s = [23, 65, 98, 5]; - Array.prototype.myFilter = function(callback) { - // Only change code below this line const newArray = []; + // Only change code below this line + // Only change code above this line return newArray; }; - -const new_s = s.myFilter(function(item) { - return item % 2 === 1; -}); ``` # --solutions-- ```js -const s = [23, 65, 98, 5]; - Array.prototype.myFilter = function(callback) { const newArray = []; for (let i = 0; i < this.length; i++) { @@ -61,7 +55,7 @@ Array.prototype.myFilter = function(callback) { return newArray; }; -const new_s = s.myFilter(function(item) { - return item % 2 === 1; -}); +// Test case +const s = [23, 65, 98, 5]; +const odd_s = s.myFilter(item => item % 2 === 1); ``` diff --git a/curriculum/challenges/portuguese/05-back-end-development-and-apis/basic-node-and-express/get-query-parameter-input-from-the-client.md b/curriculum/challenges/portuguese/05-back-end-development-and-apis/basic-node-and-express/get-query-parameter-input-from-the-client.md index 39b62c744ff..e7b0edac2f1 100644 --- a/curriculum/challenges/portuguese/05-back-end-development-and-apis/basic-node-and-express/get-query-parameter-input-from-the-client.md +++ b/curriculum/challenges/portuguese/05-back-end-development-and-apis/basic-node-and-express/get-query-parameter-input-from-the-client.md @@ -20,7 +20,7 @@ Faça uma API de endpoint (URL), montada em `GET /name`. Responda com um documen # --hints-- -Test 1 : Your API endpoint should respond with `{ "name": "Mick Jagger" }` when the `/name` endpoint is called with `?first=Mick&last=Jagger` +Teste 1: seu endpoint de API deve responder com `{ "name": "Mick Jagger" }` quando o endpoint `/name` for chamado com `?first=Mick&last=Jagger` ```js (getUserInput) => @@ -38,7 +38,7 @@ Test 1 : Your API endpoint should respond with `{ "name": "Mick Jagger" }` when ); ``` -Test 2 : Your API endpoint should respond with `{ "name": "Keith Richards" }` when the `/name` endpoint is called with `?first=Keith&last=Richards` +Teste 2: seu endpoint de API deve responder com `{ "name": "Keith Richards" }` quando o endpoint `/name` for chamado com `?first=Keith&last=Richards` ```js (getUserInput) => diff --git a/curriculum/challenges/portuguese/06-quality-assurance/quality-assurance-projects/personal-library.md b/curriculum/challenges/portuguese/06-quality-assurance/quality-assurance-projects/personal-library.md index 981f7327e7c..ac01121526b 100644 --- a/curriculum/challenges/portuguese/06-quality-assurance/quality-assurance-projects/personal-library.md +++ b/curriculum/challenges/portuguese/06-quality-assurance/quality-assurance-projects/personal-library.md @@ -170,7 +170,7 @@ async (getUserInput) => { }; ``` -Você pode enviar uma solicitação de DELETE para `/api/books` para excluir todos os livros do banco de dados. A resposta retornada será a string `'complete delete successful`' se for bem-sucedida. +Você pode enviar uma solicitação de DELETE para `/api/books` para excluir todos os livros do banco de dados. A resposta retornada será a string `complete delete successful` se for bem-sucedida. ```js async (getUserInput) => { diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md index b0beef3cbcc..32e91626f9a 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md @@ -19,7 +19,7 @@ Você deve definir uma nova regra `@keyframes`. assert.notEmpty(new __helpers.CSSHelp(document).getCSSRules('keyframes')); ``` -Você deve dar à regra `@keyframes` um `name` de `--fcc-expected--`, mas foi encontrado `--fcc-actual--`. +Você deve dar à regra `@keyframes` um nome de `--fcc-expected--`, mas foi encontrado `--fcc-actual--`. ```js assert.equal(new __helpers.CSSHelp(document).getCSSRules('keyframes')?.[0]?.name, 'wave'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md index 17b4546f1b8..865813d969d 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md @@ -77,6 +77,7 @@ assert(collection.indexOf('H1') < collection.indexOf('H2')); --fcc-editable-region--

    CatPhotoApp

    + --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md index 7f869447276..eb6cf3a4762 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md @@ -53,6 +53,7 @@ assert(collection.indexOf('H2') < collection.indexOf('P'));

    CatPhotoApp

    --fcc-editable-region--

    Cat Photos

    + --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md index d29e7765e84..89b831d07fb 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md @@ -63,6 +63,7 @@ assert(

    Cat Photos

    --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md index d9a0db66d56..8b25bf7db19 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md @@ -25,7 +25,7 @@ O elemento `main` deve ter uma tag de fechamento. As tags de fechamento têm um assert(code.match(/<\/main\>/)); ``` -A tag de abertura do elemento `main` deve estar abaixo do elemento `body`. Eles estão na ordem errada. +A tag de abertura do elemento `main` deve estar abaixo da tag de abertura do elemento `body`. Eles estão na ordem errada. ```js const main = document.querySelector('main'); @@ -60,10 +60,12 @@ assert( --fcc-editable-region-- +

    CatPhotoApp

    Cat Photos

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md index 5eeb9f61e5c..7e8511d1fad 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md @@ -53,6 +53,7 @@ assert(collection.indexOf('P') < collection.indexOf('IMG')); --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md index bc8d71f9692..89104c4bb8f 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md @@ -70,6 +70,7 @@ assert( --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- A cute orange cat lying on its back. diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md index c44aedf16ce..50692d24f7a 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md @@ -66,6 +66,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md index e054973b11a..8b2d51153a0 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md @@ -75,6 +75,7 @@ assert( --fcc-editable-region--

    Cat Lists

    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md index 61766b05e6a..71b69343111 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md @@ -49,6 +49,7 @@ assert(secondSectionLastElemNode.nodeName === 'UL'); --fcc-editable-region--

    Cat Lists

    Things cats love:

    + --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md index eff86b89bf7..817653034bb 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md @@ -69,6 +69,7 @@ assert(

    Things cats love:

    --fcc-editable-region--
      +
    --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md index 70bb7608b64..7861ef934a0 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md @@ -85,6 +85,7 @@ assert(!/\laser pointers
  • lasagna
  • + --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md index cce2788fcf6..fcc8440fbcd 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md @@ -65,7 +65,9 @@ assert(
  • lasagna
  • --fcc-editable-region-- + A slice of lasagna on a plate. + --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md index a416e963dc2..dd65ba04b6b 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md @@ -88,6 +88,7 @@ assert( --fcc-editable-region--
    A slice of lasagna on a plate. +
    --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md index cdc4aa12905..25f1874584e 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md @@ -72,6 +72,7 @@ assert( A slice of lasagna on a plate.
    Cats love lasagna.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md index a11d442a8ce..76471744ed7 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md @@ -84,6 +84,7 @@ assert.deepStrictEqual( --fcc-editable-region--

    Top 3 things cats hate:

    + --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md index b2f622b02eb..5493306a04a 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md @@ -63,6 +63,7 @@ assert($('main > section')[1].lastElementChild.nodeName === 'FIGURE');
  • thunder
  • other cats
  • + --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md index 8fb103ff0f5..b7d66e09fea 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md @@ -85,7 +85,9 @@ assert(
    Five cats looking around a field. --fcc-editable-region-- +
    Cats hate other cats.
    + --fcc-editable-region--
    diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md index d3941b11069..21f32a5e19b 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md @@ -96,6 +96,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md index de31bf67a04..1cf8edaa3df 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md @@ -79,6 +79,7 @@ assert($('form')[0].innerHTML.trim().length === 0);
    --fcc-editable-region--

    Cat Form

    + --fcc-editable-region--
    diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md index ec5a0990060..a845229ab9a 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md @@ -99,6 +99,7 @@ assert(

    Cat Form

    --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md index 603599f9667..d2f9956b125 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md @@ -83,6 +83,7 @@ assert(collection.indexOf('INPUT') < collection.indexOf('BUTTON'));
    --fcc-editable-region-- + --fcc-editable-region--
    diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md index 651d57fba26..9367bc3f966 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md @@ -88,8 +88,10 @@ assert(

    Cat Form

    --fcc-editable-region-- + + --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md index db990e8529d..77f017cfd79 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md @@ -117,6 +117,7 @@ assert(
    --fcc-editable-region-- What's your cat's personality? + --fcc-editable-region--
    diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md index b9323b5ca88..5065ca25368 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md @@ -95,8 +95,9 @@ assert(document.querySelector('main').nextElementSibling.nodeName === 'FOOTER'); --fcc-editable-region-- + - --fcc-editable-region-- + ``` diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md index e0a54f20bec..50bbd5a89fe 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md @@ -96,6 +96,7 @@ assert(extraSpacesRemoved.match(/No Copyright - freeCodeCamp\.org$/i)); --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md index 9d5bf32ae45..1b8d3a4bce3 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md @@ -9,7 +9,7 @@ dashedName: step-65 Observe que tudo o que você adicionou à página até agora está dentro do elemento `body`. Todos os elementos de conteúdo da página que devem ser renderizados na página ficam dentro do elemento `body`. No entanto, outras informações importantes vão dentro do elemento `head`. -Adicione um elemento `head` logo acima do elemento `body`. +Adicione um elemento `head` acima do elemento `body`. # --hints-- @@ -43,9 +43,11 @@ assert(noSpaces.match(/\<\/head\>\/)); ## --seed-contents-- ```html - --fcc-editable-region-- + + +--fcc-editable-region--

    CatPhotoApp

    @@ -102,7 +104,6 @@ assert(noSpaces.match(/\<\/head\>\/));

    ---fcc-editable-region-- ``` diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md index c8666356faa..831f81acf92 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md @@ -48,6 +48,7 @@ assert(document.title && document.title.toLowerCase() === 'catphotoapp'); --fcc-editable-region-- + --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md index 36f44f9d1c2..eca2b9222ff 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md @@ -32,11 +32,12 @@ assert(noSpaces.match(/^\<\!DOCTYPEhtml\>\ +--fcc-editable-region-- CatPhotoApp ---fcc-editable-region--

    CatPhotoApp

    diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md index 87224278b7c..5b1ee76513e 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md @@ -89,6 +89,7 @@ assert(!/\ --fcc-editable-region--
    +
    --fcc-editable-region--
    diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md index da66b47e991..7501ee9646b 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md @@ -7,7 +7,7 @@ dashedName: step-30 # --description-- -Para melhorar a acessibilidade da imagem que você acabou de adicionar, adicione um atributo `alt` com o texto: +Para melhorar a acessibilidade da imagem que você adicionou, insira um atributo `alt` com o texto: `Five cats looking around a field.` diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md index d5d48a7caa0..e8111afd2ff 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md @@ -110,11 +110,12 @@ assert(
  • thunder
  • other cats
  • +--fcc-editable-region--
    ---fcc-editable-region-- Five cats looking around a field. ---fcc-editable-region-- +
    +--fcc-editable-region--
    diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md index 36da50abe50..d44f0f7dac4 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md @@ -124,6 +124,7 @@ assert(code.match(/<\/label>\s*\s*]+>\s*Outdoor/i)); --fcc-editable-region-- + --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md index 304fd7188c5..9412699b551 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md @@ -57,6 +57,7 @@ assert.isFalse(includesH1); --fcc-editable-region-- +

    CatPhotoApp

    Cat Photos

    @@ -64,6 +65,7 @@ assert.isFalse(includesH1);

    Click here to view more cat photos.

    A cute orange cat lying on its back.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md index a86df2419c2..432f532f431 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md @@ -73,6 +73,7 @@ assert(foundElems.length === 2);

    Click here to view more cat photos.

    A cute orange cat lying on its back. + --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md index c67e7597610..3342b0eb858 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md @@ -90,6 +90,7 @@ assert($('main > section')[2].children.length === 0);
    Cats hate other cats.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md index 386589bf3ec..ee43e254a24 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md @@ -90,6 +90,7 @@ assert(extraSpacesRemoved.match(/Is your cat an indoor or outdoor cat\??$/i)); --fcc-editable-region--
    +
    diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md index f4eb9178469..acfa9393596 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md @@ -116,9 +116,10 @@ assert(fieldsetChildren[0].length > fieldsetChildren[1].length); + +--fcc-editable-region-- ---fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md index 05d6e1ca3be..96295154c21 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md @@ -101,6 +101,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md index c2705efbd8b..9c13d842710 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md @@ -13,7 +13,7 @@ Você pode definir o comportamento do navegador adicionando elementos `meta` de ``` -Diga ao navegador para colocar o markdown em diversos idiomas criando um elemento `meta` como filho do elemento `head`. Defina o atributo `charset` como `UTF-8`. +Diga ao navegador para colocar a marcação (markup) em diversos idiomas criando um elemento `meta` como filho do elemento `head`. Defina o atributo `charset` como `UTF-8`. # --hints-- @@ -45,6 +45,7 @@ assert.notMatch(code, /<\/meta\s*>?/i); --fcc-editable-region-- + CatPhotoApp --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/01-responsive-web-design/responsive-web-design-projects/build-a-survey-form.md b/curriculum/challenges/ukrainian/01-responsive-web-design/responsive-web-design-projects/build-a-survey-form.md index b8cd0366945..feddafe3b14 100644 --- a/curriculum/challenges/ukrainian/01-responsive-web-design/responsive-web-design-projects/build-a-survey-form.md +++ b/curriculum/challenges/ukrainian/01-responsive-web-design/responsive-web-design-projects/build-a-survey-form.md @@ -19,7 +19,7 @@ dashedName: build-a-survey-form 1. В елементі форми вам **потрібно** ввести свою електронну пошту в полі `input`, яке має `id` зі значенням `email` 1. Якщо ви введете неправильно сформовану електронну адресу, то побачите помилку перевірки HTML5 1. В формі ви можете ввести число в поле `input`, яке має `id` зі значенням `number` -1. The number input should not accept non-numbers, either by preventing you from typing them or by showing an HTML5 validation error (depending on your browser). +1. Ввід для чисел повинен приймати лише числа, або забороняючи вводити їх, або показуючи помилку перевірки HTML5 (залежно від вашого браузера). 1. Якщо ви введете число поза межами діапазону чисел, що визначено атрибутами `min` та `max`, то побачите помилку перевірки HTML5 1. Для імені, електронної пошти та полів введення чисел можна побачити відповідні елементи `label` в формі, що описують мету кожного поля відповідними ідентифікаторами: `id="name-label"`, `id="email-label"` та `id="number-label"` 1. Для імені, електронної пошти та полів введення чисел можна побачити текст заповнювача з описом або інструкцією до кожного поля @@ -119,7 +119,7 @@ const el = document.getElementById('email') assert(!!el && el.required) ``` -Your `#email` should be a descendant of `#survey-form`. +Ваш `#email` повинен бути нащадком `#survey-form`. ```js const el = document.querySelector('#survey-form #email') diff --git a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md index 06eaa6bb12d..04482c42bbc 100644 --- a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md +++ b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md @@ -20,10 +20,12 @@ dashedName: implement-map-on-a-prototype # --hints-- -`new_s` повинне дорівнювати `[46, 130, 196, 10]`. +`[23, 65, 98, 5, 13].myMap(item => item * 2)` should equal `[46, 130, 196, 10, 26]`. ```js -assert(JSON.stringify(new_s) === JSON.stringify([46, 130, 196, 10])); +const _test_s = [46, 130, 196, 10, 13]; +const _callback = item => item * 2; +assert(JSON.stringify(_test_s.map(_callback)) === JSON.stringify(_test_s.myMap(_callback))); ``` Не використовуйте метод `map` у вашому коді. @@ -37,9 +39,6 @@ assert(!code.match(/\.?[\s\S]*?map/g)); ## --seed-contents-- ```js -// The global variable -const s = [23, 65, 98, 5]; - Array.prototype.myMap = function(callback) { const newArray = []; // Only change code below this line @@ -47,17 +46,11 @@ Array.prototype.myMap = function(callback) { // Only change code above this line return newArray; }; - -const new_s = s.myMap(function(item) { - return item * 2; -}); ``` # --solutions-- ```js -const s = [23, 65, 98, 5]; - Array.prototype.myMap = function(callback) { const newArray = []; for (const elem of this) { @@ -66,7 +59,7 @@ Array.prototype.myMap = function(callback) { return newArray; }; -const new_s = s.myMap(function(item) { - return item * 2; -}); +// Test case +const s = [23, 65, 98, 5]; +const doubled_s = s.myMap(item => item * 2); ``` diff --git a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md index 7b1a859d1f8..e8c232cfa75 100644 --- a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md +++ b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md @@ -16,10 +16,12 @@ dashedName: implement-the-filter-method-on-a-prototype # --hints-- -`new_s` повинне дорівнювати `[23, 65, 5]`. +`[23, 65, 98, 5, 13].myFilter(item => item % 2)` should equal `[23, 65, 5, 13]`. ```js -assert(JSON.stringify(new_s) === JSON.stringify([23, 65, 5])); +const _test_s = [23, 65, 98, 5, 13]; +const _callback = item => item % 2; +assert(JSON.stringify(_test_s.filter(_callback)) === JSON.stringify(_test_s.myFilter(_callback))); ``` Не використовуйте метод `filter` для вашого коду. @@ -33,26 +35,18 @@ assert(!code.match(/\.?[\s\S]*?filter/g)); ## --seed-contents-- ```js -// The global variable -const s = [23, 65, 98, 5]; - Array.prototype.myFilter = function(callback) { - // Only change code below this line const newArray = []; + // Only change code below this line + // Only change code above this line return newArray; }; - -const new_s = s.myFilter(function(item) { - return item % 2 === 1; -}); ``` # --solutions-- ```js -const s = [23, 65, 98, 5]; - Array.prototype.myFilter = function(callback) { const newArray = []; for (let i = 0; i < this.length; i++) { @@ -61,7 +55,7 @@ Array.prototype.myFilter = function(callback) { return newArray; }; -const new_s = s.myFilter(function(item) { - return item % 2 === 1; -}); +// Test case +const s = [23, 65, 98, 5]; +const odd_s = s.myFilter(item => item % 2 === 1); ``` diff --git a/curriculum/challenges/ukrainian/03-front-end-development-libraries/react-and-redux/connect-redux-to-the-messages-app.md b/curriculum/challenges/ukrainian/03-front-end-development-libraries/react-and-redux/connect-redux-to-the-messages-app.md index d979f9e5ae4..1cabe35137a 100644 --- a/curriculum/challenges/ukrainian/03-front-end-development-libraries/react-and-redux/connect-redux-to-the-messages-app.md +++ b/curriculum/challenges/ukrainian/03-front-end-development-libraries/react-and-redux/connect-redux-to-the-messages-app.md @@ -14,7 +14,7 @@ dashedName: connect-redux-to-the-messages-app # --instructions-- -Редактор коду вже містить весь написаний вами код у цій секції. Єдина зміна полягає у тому, що компонент React перейменовується на `Presentational`. Створіть новий компонент, який знаходиться у константі під назвою `Container`, який використовує `connect`, щоб під'єднати компонент `Presentational` до Redux. Потім, у `AppWrapper`, відобразіть React Redux компонент `Provider`. Передайте `Provider` Redux `store` у якості пропсу і відобразіть `Container` як дочірній компонент. Once everything is set up, you will see the messages app rendered to the page again. +Редактор коду вже містить весь написаний вами код у цій секції. Єдина зміна полягає у тому, що компонент React перейменовується на `Presentational`. Створіть новий компонент, який знаходиться у константі під назвою `Container`, який використовує `connect`, щоб під'єднати компонент `Presentational` до Redux. Потім, у `AppWrapper`, відобразіть React Redux компонент `Provider`. Передайте `Provider` Redux `store` у якості пропсу і відобразіть `Container` як дочірній компонент. Коли все буде налаштоване, ви побачите додаток повідомлень виведеним на сторінку знову. # --hints-- diff --git a/curriculum/challenges/ukrainian/03-front-end-development-libraries/react/learn-about-self-closing-jsx-tags.md b/curriculum/challenges/ukrainian/03-front-end-development-libraries/react/learn-about-self-closing-jsx-tags.md index 61fc70aa967..c080a2a9d98 100644 --- a/curriculum/challenges/ukrainian/03-front-end-development-libraries/react/learn-about-self-closing-jsx-tags.md +++ b/curriculum/challenges/ukrainian/03-front-end-development-libraries/react/learn-about-self-closing-jsx-tags.md @@ -12,7 +12,7 @@ dashedName: learn-about-self-closing-jsx-tags Іншою важливою відмінністю JSX від HTML є уявлення про теги, які самі закриваються. -У HTML, майже всі теги мають як тег, який містить тиги які відкривають, та закривають теги:`
    ` тег, що закриває, завжди має скісну риску перед назвою тегу, який ви закриваєте. Проте, в HTML є особливі випадки, так звані " теги що самі закриваються", або теги, які не вимагають відкриття та закриття тегів, перш ніж інший тег може початися. +У HTML майже всі елементи мають початковий та кінцевий тег: `
    `; кінцевий тег завжди має скісну риску перед назвою тегу, який ви закриваєте. Проте, в HTML є особливі випадки, так звані " теги що самі закриваються", або теги, які не вимагають відкриття та закриття тегів, перш ніж інший тег може початися. Наприклад, тег розриву рядка можна записати у вигляді`
    ` або як `
    `, але ніколи не слід писати як `

    `, оскільки він не містить змісту. diff --git a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-projects/personal-library.md b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-projects/personal-library.md index 3f00dd575a0..d49828bd259 100644 --- a/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-projects/personal-library.md +++ b/curriculum/challenges/ukrainian/06-quality-assurance/quality-assurance-projects/personal-library.md @@ -170,7 +170,7 @@ async (getUserInput) => { }; ``` -Ви можете надіслати запит DELETE до `/api/books`, щоб видалити усі книги з інформаційної бази. Отримана відповідь - рядок `'complete delete successful`, якщо видалено успішно. +Ви можете надіслати запит DELETE до `/api/books`, щоб видалити усі книги з інформаційної бази. The returned response will be the string `complete delete successful` if successful. ```js async (getUserInput) => { diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/build-a-survey-form-project/build-a-survey-form.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/build-a-survey-form-project/build-a-survey-form.md index f7e030ea985..3f81fdbfcdc 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/build-a-survey-form-project/build-a-survey-form.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/build-a-survey-form-project/build-a-survey-form.md @@ -19,7 +19,7 @@ dashedName: build-a-survey-form 1. В елементі форми вам **потрібно** ввести свою електронну пошту в полі `input`, яке має `id` зі значенням `email` 1. Якщо ви введете неправильно сформовану електронну адресу, то побачите помилку перевірки HTML5 1. В формі ви можете ввести число в поле `input`, яке має `id` зі значенням `number` -1. The number input should not accept non-numbers, either by preventing you from typing them or by showing an HTML5 validation error (depending on your browser). +1. Ввід для чисел повинен приймати лише числа, або забороняючи вводити їх, або показуючи помилку перевірки HTML5 (залежно від вашого браузера). 1. Якщо ви введете число поза межами діапазону чисел, що визначено атрибутами `min` та `max`, то побачите помилку перевірки HTML5 1. Для імені, електронної пошти та полів введення чисел можна побачити відповідні елементи `label` в формі, що описують мету кожного поля відповідними ідентифікаторами: `id="name-label"`, `id="email-label"` та `id="number-label"` 1. Для імені, електронної пошти та полів введення чисел можна побачити текст заповнювача з описом або інструкцією до кожного поля diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145e6eeaa66c605eb087fe9.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145e6eeaa66c605eb087fe9.md index d3944c3221b..fed13e94519 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145e6eeaa66c605eb087fe9.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145e6eeaa66c605eb087fe9.md @@ -7,29 +7,29 @@ dashedName: step-30 # --description-- -Add an `id` to all of your radio `input`s so you can link your labels to them. Give the first one an `id` of `q1-a1`. Give the rest of them `id`s of `q1-a2`, `q2-a1`, and `q2-a2`, respectively. +Додайте `id` до всіх своїх радіо `input`, щоб ви могли зв’язати з ними свої мітки. Першому надайте `id` зі значенням `q1-a1`. Решті надайте `id` зі значенням `q1-a2`, `q2-a1` та `q2-a2` відповідно. # --hints-- -You should give the first `input` element an `id` of `q1-a1`. +Першому елементу `input` потрібно надати `id` зі значенням `q1-a1`. ```js assert.equal(document.querySelectorAll('ul.answers-list > li > label > input')?.[0]?.id, "q1-a1"); ``` -You should give the second `input` element an `id` of `q1-a2`. +Другому елементу `input` потрібно надати `id` зі значенням `q1-a2`. ```js assert.equal(document.querySelectorAll('ul.answers-list > li > label > input')?.[1]?.id, "q1-a2"); ``` -You should give the third `input` element an `id` of `q2-a1`. +Третьому елементу `input` потрібно надати `id` зі значенням `q2-a1`. ```js assert.equal(document.querySelectorAll('ul.answers-list > li > label > input')?.[2]?.id, "q2-a1"); ``` -You should give the fourth `input` element an `id` of `q2-a2`. +Четвертому елементу `input` потрібно надати `id` зі значенням `q2-a2`. ```js assert.equal(document.querySelectorAll('ul.answers-list > li > label > input')?.[3]?.id, "q2-a2"); diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6351e7a8684bf5377c4ee7f7.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6351e7a8684bf5377c4ee7f7.md index 64c97ecead6..33863ca69f8 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6351e7a8684bf5377c4ee7f7.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6351e7a8684bf5377c4ee7f7.md @@ -7,58 +7,58 @@ dashedName: step-31 # --description-- -Although not required for `label` elements with a nested `input`, it is still best-practice to explicitly link a `label` with its corresponding `input` element. +Хоча для елементів `label` з вкладеним `input` це необов'язково, краще прямо пов'язувати `label` з відповідним елементом `input`. -Now, add a `for` attribute to each of your four `label`s that links the `label` to its corresponding radio `input`. +Тепер додайте атрибут `for` до кожного зі своїх чотирьох `label`, який пов’язує `label` з відповідним радіо `input`. # --hints-- -You should give the first `label` a `for` attribute. +Ви повинні надати першому `label` атрибут `for`. ```js assert.notEmpty(document.querySelectorAll('ul.answers-list > li > label')?.[0]?.htmlFor); ``` -You should give the first `label` a `for` attribute matching the `id` of its `input` element. +Ви повинні надати першому `label` атрибут `for`, що відповідає `id` його елемента `input`. ```js const htmlFor = document.querySelectorAll('ul.answers-list > li > label')?.[0]?.htmlFor; assert.equal(htmlFor, document.querySelectorAll('ul.answers-list > li > label > input')?.[0]?.id); ``` -You should give the second `label` a `for` attribute. +Ви повинні надати другому `label` атрибут `for`. ```js assert.notEmpty(document.querySelectorAll('ul.answers-list > li > label')?.[1]?.htmlFor); ``` -You should give the second `label` a `for` attribute matching the `id` of its `input` element. +Ви повинні надати другому `label` атрибут `for`, що відповідає `id` його елемента `input`. ```js const htmlFor = document.querySelectorAll('ul.answers-list > li > label')?.[1]?.htmlFor; assert.equal(htmlFor, document.querySelectorAll('ul.answers-list > li > label > input')?.[1]?.id); ``` -You should give the third `label` a `for` attribute. +Ви повинні надати третьому `label` атрибут `for`. ```js assert.notEmpty(document.querySelectorAll('ul.answers-list > li > label')?.[2]?.htmlFor); ``` -You should give the third `label` a `for` attribute matching the `id` of its `input` element. +Ви повинні надати третьому `label` атрибут `for`, що відповідає `id` його елемента `input`. ```js const htmlFor = document.querySelectorAll('ul.answers-list > li > label')?.[2]?.htmlFor; assert.equal(htmlFor, document.querySelectorAll('ul.answers-list > li > label > input')?.[2]?.id); ``` -You should give the fourth `label` a `for` attribute. +Ви повинні надати четвертому `label` атрибут `for`. ```js assert.notEmpty(document.querySelectorAll('ul.answers-list > li > label')?.[3]?.htmlFor); ``` -You should give the fourth `label` a `for` attribute matching the `id` of its `input` element. +Ви повинні надати четвертому `label` атрибут `for`, що відповідає `id` його елемента `input`. ```js const htmlFor = document.querySelectorAll('ul.answers-list > li > label')?.[3]?.htmlFor; diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/616d4a84b756d9c4b8255093.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/616d4a84b756d9c4b8255093.md index 570763f005b..e13a90e4aa0 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/616d4a84b756d9c4b8255093.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/616d4a84b756d9c4b8255093.md @@ -19,7 +19,7 @@ dashedName: step-11 Створіть нове CSS-правило, націлене на клас `marker`, та встановіть значення його властивості `background-color` на `red`. -**Note:** You will not see any changes after adding the CSS. +**Примітка:** після додавання CSS ви не побачите жодних змін. # --hints-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/616d50b93ba424d6282c99cf.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/616d50b93ba424d6282c99cf.md index 2e8e0767e14..70a3a458f05 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/616d50b93ba424d6282c99cf.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/616d50b93ba424d6282c99cf.md @@ -9,7 +9,7 @@ dashedName: step-12 Фоновий колір було застосовано, але оскільки маркер-елемент `div` порожній, то немає ніякої висоти за замовчуванням. -In your `.marker` CSS rule, set the `height` property to `25px` and the `width` property to `200px` +У CSS-правилі `.marker` встановіть властивість `height` на `25px` та властивість `width` на `200px` # --hints-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/61968e9243a4090cc805531c.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/61968e9243a4090cc805531c.md index 671f8a2d452..3b6bec93538 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/61968e9243a4090cc805531c.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/61968e9243a4090cc805531c.md @@ -7,11 +7,11 @@ dashedName: step-5 # --description-- -Remove both the horizontal and vertical scrollbars, using only one property. +Видаліть як горизонтальну, так і вертикальну смуги прокрутки, використовуючи лише одну властивість. # --hints-- -You should give `body` an `overflow` of `--fcc-expected--`. But found `--fcc-actual--`. +Ви повинні надати `body` властивість `overflow` зі значенням `--fcc-expected--`. Але знайдено `--fcc-actual--`. ```js assert.equal(new __helpers.CSSHelp(document).getStyle('body')?.overflow, 'hidden'); diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md index d0ffe94e831..478f09a8a1c 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d30350883802921bfcccc.md @@ -19,7 +19,7 @@ dashedName: step-95 assert.notEmpty(new __helpers.CSSHelp(document).getCSSRules('keyframes')); ``` -Ви повинні надати правилу `@keyframes` властивість `name` зі значенням `--fcc-expected--`, але знайдено `--fcc-actual--`. +Ви повинні надати правилу `@keyframes` назву `--fcc-expected--`, але знайдено `--fcc-actual--`. ```js assert.equal(new __helpers.CSSHelp(document).getCSSRules('keyframes')?.[0]?.name, 'wave'); diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e98dc.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e98dc.md index b32fb4fa3fa..6d4793797fa 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e98dc.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e98dc.md @@ -7,7 +7,7 @@ dashedName: step-20 # --description-- -Зараз будівлі стоять одна на одній. Align the buildings by turning the `background-buildings` element into a flexbox parent. Use the `align-items` and `justify-content` properties to evenly space the buildings across the bottom of the element. +Зараз будівлі стоять одна на одній. Вирівняйте будівлі, перетворивши елемент `background-buildings` на батьківський елемент flexbox. Використайте властивості `align-items` та `justify-content`, щоб рівномірно розмістити будівлі в нижній частині елемента. # --hints-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e98de.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e98de.md index 2a5806c9b96..8a14fc1db06 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e98de.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e98de.md @@ -7,7 +7,7 @@ dashedName: step-22 # --description-- -Create a new variable below your `--building-color1` variable. Name your new variable `--building-color2` and give it a value of `#66cc99`. Then set it as the `background-color` of `.bb2`. +Створіть нову змінну під своєю змінною `--building-color1`. Створіть нову змінну `--building-color2` та надайте їй значення `#66cc99`. Потім встановіть її як `background-color` для `.bb2`. # --hints-- @@ -17,7 +17,7 @@ Create a new variable below your `--building-color1` variable. Name your new var assert.exists(new __helpers.CSSHelp(document).isPropertyUsed('--building-color2')); ``` -You should give `--building-color2` a value of `#66cc99` within the `.bb1` class. +Ви повинні надати `--building-color2` значення `#66cc99` в межах класу `.bb1`. ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.bb1')?.getPropertyValue('--building-color2').trim(), '#66cc99'); diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e990f.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e990f.md index 4bbb22e74c1..feda0e1d813 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e990f.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e990f.md @@ -8,29 +8,29 @@ dashedName: step-71 # --description-- -Вікна розташовані одне на одному в лівій частині секції, позаду фіолетової будівлі. Add a new class below `.building-wrap` called `window-wrap`. Make `.window-wrap` a flexbox container, and use the `align-items` and `justify-content` properties to center its child elements vertically and evenly space them in their parent, respectively. +Вікна розташовані одне на одному в лівій частині секції, позаду фіолетової будівлі. Додайте новий клас з назвою `window-wrap` під `.building-wrap`. Зробіть `.window-wrap` контейнером flexbox та використайте властивості `align-items` і `justify-content`, щоб відцентрувати дочірні елементи вертикально та рівномірно розташуйте їх у батьківському, відповідно. # --hints-- -You should create a `.window-wrap` selector. +Ви повинні створити селектор `.window-wrap`. ```js assert.exists(new __helpers.CSSHelp(document).getStyle(".window-wrap")); ``` -You should give `.window-wrap` a `display` of `flex`. +Ви повинні надати `.window-wrap` властивість `display` зі значенням `flex`. ```js assert.equal(new __helpers.CSSHelp(document).getStyle(".window-wrap")?.display, "flex"); ``` -You should give `.window-wrap` an `align-items` of `center`. +Ви повинні надати `.window-wrap` властивість `align-items` зі значенням `center`. ```js assert.equal(new __helpers.CSSHelp(document).getStyle(".window-wrap")?.alignItems, "center"); ``` -You should give `.window-wrap` a `justify-content` of `space-evenly`. +Ви повинні надати `.window-wrap` властивість `justify-content` зі значенням `space-evenly`. ```js assert.equal(new __helpers.CSSHelp(document).getStyle(".window-wrap")?.justifyContent, "space-evenly"); diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e992f.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e992f.md index e082612d829..47fef068f10 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e992f.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e992f.md @@ -7,7 +7,7 @@ dashedName: step-102 # --description-- -The windows are stacked on top of each other on the rightmost purple building. Turn the building into a flexbox parent, and use the `flex-wrap` property to put the windows side by side, and push them down to a new row when they don't fit. +Вікна розташовані одне на одному в крайній правій фіолетовій будівлі. Перетворіть будівлю на батьківській flexbox та скористайтеся властивістю `flex-wrap`, щоб розташувати вікна поруч і перемістити їх у новий рядок, якщо вони не поміщаються. # --hints-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc174fcf86c76b9248c6eb2.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc174fcf86c76b9248c6eb2.md index 68cadf084ed..9aa0d3aa57f 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc174fcf86c76b9248c6eb2.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc174fcf86c76b9248c6eb2.md @@ -47,7 +47,7 @@ assert(document.querySelectorAll('h1').length === 1); assert(document.querySelector('h1').innerText.toLowerCase() === 'catphotoapp'); ``` -You appear to be using a browser extension that is modifying the page. Be sure to turn off all browser extensions. +Здається, ви використовуєте розширення браузера, яке змінює сторінку. Переконайтеся, що вимкнули усі розширення браузера. ```js assert.isAtMost(document.querySelectorAll('script').length, 2); diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md index c0bc33f1e81..8044824b964 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc1798ff86c76b9248c6eb3.md @@ -77,6 +77,7 @@ assert(collection.indexOf('H1') < collection.indexOf('H2')); --fcc-editable-region--

    CatPhotoApp

    + --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md index a13a2cf503f..86b05243943 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17d3bf86c76b9248c6eb4.md @@ -53,6 +53,7 @@ assert(collection.indexOf('H2') < collection.indexOf('P'));

    CatPhotoApp

    --fcc-editable-region--

    Cat Photos

    + --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md index 5f7011c1138..4a652ca0d70 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc17dc8f86c76b9248c6eb5.md @@ -63,6 +63,7 @@ assert(

    Cat Photos

    --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md index 968d7ebd7a6..ba86aa928b2 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md @@ -25,7 +25,7 @@ assert(document.querySelector('main')); assert(code.match(/<\/main\>/)); ``` -Початковий теґ вашого елемента `main` повинен бути під елементом `body`. Вони знаходяться в неправильному порядку. +Початковий теґ вашого елемента `main` повинен бути під початковим теґом елемента `body`. Вони знаходяться в неправильному порядку. ```js const main = document.querySelector('main'); @@ -60,10 +60,12 @@ assert( --fcc-editable-region-- +

    CatPhotoApp

    Cat Photos

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md index 05beab58fdb..6d7fc2b0ea9 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23f9bf86c76b9248c6eba.md @@ -53,6 +53,7 @@ assert(collection.indexOf('P') < collection.indexOf('IMG')); --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md index 4daa2b156d3..dc4e158938e 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24614f86c76b9248c6ebd.md @@ -70,6 +70,7 @@ assert( --fcc-editable-region--

    Click here to view more cat photos.

    + --fcc-editable-region-- A cute orange cat lying on its back. diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md index c39ae79cf75..f486c8bb38a 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa3589eacea3f48c6300ae.md @@ -66,6 +66,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md index 84ba3b5daf0..6a89c89ab2f 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa371beacea3f48c6300af.md @@ -75,6 +75,7 @@ assert( --fcc-editable-region--

    Cat Lists

    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md index 86e2277aca4..c8ccdd3267f 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfa37b9eacea3f48c6300b0.md @@ -49,6 +49,7 @@ assert(secondSectionLastElemNode.nodeName === 'UL'); --fcc-editable-region--

    Cat Lists

    Things cats love:

    + --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md index 01c2f3221b0..59c96fda63f 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb5ecbeacea3f48c6300b1.md @@ -69,6 +69,7 @@ assert(

    Things cats love:

    --fcc-editable-region--
      +
    --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md index ad5a1bbb7d0..012b7eaddec 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md @@ -85,6 +85,7 @@ assert(!/\laser pointers
  • lasagna
  • + --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md index 4b8c4905459..12da5e4ad44 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb655eeacea3f48c6300b3.md @@ -65,7 +65,9 @@ assert(
  • lasagna
  • --fcc-editable-region-- + A slice of lasagna on a plate. + --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md index a53de520807..0d40ff80b5e 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6a35eacea3f48c6300b4.md @@ -88,6 +88,7 @@ assert( --fcc-editable-region--
    A slice of lasagna on a plate. +
    --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md index 26a10d5de10..adf1451720a 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d1.md @@ -72,6 +72,7 @@ assert( A slice of lasagna on a plate.
    Cats love lasagna.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md index 8ddcd614ba9..cb38eabb3d7 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md @@ -84,6 +84,7 @@ assert.deepStrictEqual( --fcc-editable-region--

    Top 3 things cats hate:

    + --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md index 38569ba0616..1fc852b885f 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d3.md @@ -63,6 +63,7 @@ assert($('main > section')[1].lastElementChild.nodeName === 'FIGURE');
  • thunder
  • other cats
  • + --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md index 872095b6dae..828e14cbcc7 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d4.md @@ -85,7 +85,9 @@ assert(
    Five cats looking around a field. --fcc-editable-region-- +
    Cats hate other cats.
    + --fcc-editable-region--
    diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md index 693c8afa2a0..e374b778799 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md @@ -96,6 +96,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md index d662a460e54..c90a93f6d43 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d6.md @@ -79,6 +79,7 @@ assert($('form')[0].innerHTML.trim().length === 0);
    --fcc-editable-region--

    Cat Form

    + --fcc-editable-region--
    diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md index 23309a2dfe8..16c0cf08677 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md @@ -99,6 +99,7 @@ assert(

    Cat Form

    --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md index 96376a87471..a14ce6b5653 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md @@ -83,6 +83,7 @@ assert(collection.indexOf('INPUT') < collection.indexOf('BUTTON'));
    --fcc-editable-region-- + --fcc-editable-region--
    diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md index 6511f431815..13493cedb09 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e1.md @@ -88,8 +88,10 @@ assert(

    Cat Form

    --fcc-editable-region-- + + --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md index ec8a27a74bc..5bf2c17d2fa 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e2.md @@ -117,6 +117,7 @@ assert(
    --fcc-editable-region-- What's your cat's personality? + --fcc-editable-region--
    diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md index 12f4ecfd114..4c1fc3c2852 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e7.md @@ -95,8 +95,9 @@ assert(document.querySelector('main').nextElementSibling.nodeName === 'FOOTER'); --fcc-editable-region-- + - --fcc-editable-region-- + ``` diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md index 86a49f71d1b..e551b670bbc 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804e8.md @@ -96,6 +96,7 @@ assert(extraSpacesRemoved.match(/No Copyright - freeCodeCamp\.org$/i)); --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md index c0c5b54beec..2e91b91c45b 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ea.md @@ -9,7 +9,7 @@ dashedName: step-65 Зверніть увагу, що все, що ви додали до сторінки, знаходиться всередині елемента `body`. Всі елементи вмісту сторінки, які мають відтворюватися на сторінці, йдуть в елемент `body`. Однак інша важлива інформація йде всередину елемента `head`. -Додайте елемент `head` прямо над елементом `body`. +Додайте елемент `head` над елементом `body`. # --hints-- @@ -43,9 +43,11 @@ assert(noSpaces.match(/\<\/head\>\/)); ## --seed-contents-- ```html - --fcc-editable-region-- + + +--fcc-editable-region--

    CatPhotoApp

    @@ -102,7 +104,6 @@ assert(noSpaces.match(/\<\/head\>\/));

    ---fcc-editable-region-- ``` diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md index eec0b05c959..2a2793d0844 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804eb.md @@ -48,6 +48,7 @@ assert(document.title && document.title.toLowerCase() === 'catphotoapp'); --fcc-editable-region-- + --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md index 2af3d2518d4..93fa8de6e93 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804ee.md @@ -32,11 +32,12 @@ assert(noSpaces.match(/^\<\!DOCTYPEhtml\>\ +--fcc-editable-region-- CatPhotoApp ---fcc-editable-region--

    CatPhotoApp

    diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md index e9df31d4959..5239cacf7f4 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efada803cbd2bbdab94e332.md @@ -89,6 +89,7 @@ assert(!/\ --fcc-editable-region--
    +
    --fcc-editable-region--
    diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md index e908d319fd7..e7fe3ae6ba0 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae0543cbd2bbdab94e333.md @@ -7,7 +7,7 @@ dashedName: step-30 # --description-- -Щоб покращити доступність зображення, яке ви щойно додали, додайте атрибут `alt` із текстом: +Щоб покращити доступність доданого зображення, додайте атрибут `alt` із текстом: `Five cats looking around a field.` diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md index f49fab319c5..df3557d0d9d 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5efae16e3cbd2bbdab94e334.md @@ -110,11 +110,12 @@ assert(
  • thunder
  • other cats
  • +--fcc-editable-region--
    ---fcc-editable-region-- Five cats looking around a field. ---fcc-editable-region-- +
    +--fcc-editable-region--
    diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md index 2655da27b4d..0db1300c3a1 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md @@ -124,6 +124,7 @@ assert(code.match(/<\/label>\s*\s*]+>\s*Outdoor/i)); --fcc-editable-region-- + --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md index bab7a32b7a4..df6d4553fb0 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07be6ef7412fbad0c5626b.md @@ -57,6 +57,7 @@ assert.isFalse(includesH1); --fcc-editable-region-- +

    CatPhotoApp

    Cat Photos

    @@ -64,6 +65,7 @@ assert.isFalse(includesH1);

    Click here to view more cat photos.

    A cute orange cat lying on its back.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md index fbe0616eec6..02ed7b50e10 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07c98cdb9413cbd4b16750.md @@ -73,6 +73,7 @@ assert(foundElems.length === 2);

    Click here to view more cat photos.

    A cute orange cat lying on its back. + --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md index ddf799c731d..44c31862b02 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f07fb1579dc934717801375.md @@ -90,6 +90,7 @@ assert($('main > section')[2].children.length === 0);
    Cats hate other cats.
    + --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md index ce3ed9e4d71..4e58a18878f 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d48e7b435f13ab6550051.md @@ -90,6 +90,7 @@ assert(extraSpacesRemoved.match(/Is your cat an indoor or outdoor cat\??$/i)); --fcc-editable-region--
    +
    diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md index 8de5e6ace0c..76c2db28ed5 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4ab1b435f13ab6550052.md @@ -116,9 +116,10 @@ assert(fieldsetChildren[0].length > fieldsetChildren[1].length); + +--fcc-editable-region-- ---fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md index bfa3702eee4..0b4685b8d39 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f0d4d04b435f13ab6550053.md @@ -101,6 +101,7 @@ assert( --fcc-editable-region--
    +
    --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md index 58e8e3f5f97..9bd15c157b0 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/62bb4009e3458a128ff57d5d.md @@ -7,17 +7,17 @@ dashedName: step-69 # --description-- -You can set browser behavior by adding self-closing `meta` elements in the `head`. Here's an example: +Ви можете налаштувати поведінку браузера, додавши самозакривні елементи `meta` у `head`. Ось приклад: ```html ``` -Tell the browser to parse the markdown into multiple languages by creating a `meta` element as a child of the `head` element. Встановіть його атрибут `charset` на `UTF-8`. +Tell the browser to parse the markup into multiple languages by creating a `meta` element as a child of the `head` element. Встановіть його атрибут `charset` на `UTF-8`. # --hints-- -You should create a self-closing `meta` element within the `head` element. +Ви повинні створити самозакривний елемент `meta` в межах елемента `head`. ```js assert.exists(document.querySelector('head > meta')); @@ -29,7 +29,7 @@ assert.exists(document.querySelector('head > meta')); assert.equal(document.querySelector('head > meta')?.getAttribute('charset')?.toLowerCase(), 'utf-8'); ``` -Your `meta` element should be a self-closing tag, you don't need to add ``. +Ваш елемент `meta` повинен бути самозакривним теґом, вам не потрібно додавати ``. ```js assert.notMatch(code, /<\/meta\s*>?/i); @@ -45,6 +45,7 @@ assert.notMatch(code, /<\/meta\s*>?/i); --fcc-editable-region-- + CatPhotoApp --fcc-editable-region-- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5cb8875ab6a0610f05071.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5cb8875ab6a0610f05071.md index c12cf023290..a18baa5109d 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5cb8875ab6a0610f05071.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5cb8875ab6a0610f05071.md @@ -1,6 +1,6 @@ --- id: 60f5cb8875ab6a0610f05071 -title: Step 13 +title: Крок 13 challengeType: 0 dashedName: step-13 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5d2776c854e069560fbe6.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5d2776c854e069560fbe6.md index b2a3fc27c0d..b3d24a6a54b 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5d2776c854e069560fbe6.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5d2776c854e069560fbe6.md @@ -1,6 +1,6 @@ --- id: 60f5d2776c854e069560fbe6 -title: Step 14 +title: Крок 14 challengeType: 0 dashedName: step-14 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5dc35c07ac1078f140916.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5dc35c07ac1078f140916.md index 8229ad0c739..2eaed8a2132 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5dc35c07ac1078f140916.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5dc35c07ac1078f140916.md @@ -1,6 +1,6 @@ --- id: 60f5dc35c07ac1078f140916 -title: Step 15 +title: Крок 15 challengeType: 0 dashedName: step-15 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f803d5241e6a0433a523a1.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f803d5241e6a0433a523a1.md index 1bc5f4f08f4..f434e11bdcc 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f803d5241e6a0433a523a1.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f803d5241e6a0433a523a1.md @@ -1,6 +1,6 @@ --- id: 60f803d5241e6a0433a523a1 -title: Step 16 +title: Крок 16 challengeType: 0 dashedName: step-16 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f805f813eaf2049bc2ceea.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f805f813eaf2049bc2ceea.md index d6c0e958867..efe73dc54a1 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f805f813eaf2049bc2ceea.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f805f813eaf2049bc2ceea.md @@ -1,6 +1,6 @@ --- id: 60f805f813eaf2049bc2ceea -title: Step 17 +title: Крок 17 challengeType: 0 dashedName: step-17 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f80e0081e0f2052ae5b505.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f80e0081e0f2052ae5b505.md index d2ad8d5b760..fb9ce69a737 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f80e0081e0f2052ae5b505.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f80e0081e0f2052ae5b505.md @@ -1,6 +1,6 @@ --- id: 60f80e0081e0f2052ae5b505 -title: Step 19 +title: Крок 19 challengeType: 0 dashedName: step-19 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f81167d0d4910809f88945.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f81167d0d4910809f88945.md index 6c681c19ff9..5160c26470b 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f81167d0d4910809f88945.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f81167d0d4910809f88945.md @@ -1,6 +1,6 @@ --- id: 60f81167d0d4910809f88945 -title: Step 20 +title: Крок 20 challengeType: 0 dashedName: step-20 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f81616cff80508badf9ad5.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f81616cff80508badf9ad5.md index cd1ab7cebd4..369f113e625 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f81616cff80508badf9ad5.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f81616cff80508badf9ad5.md @@ -1,6 +1,6 @@ --- id: 60f81616cff80508badf9ad5 -title: Step 21 +title: Крок 21 challengeType: 0 dashedName: step-21 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f83e7bfc09900959f41e20.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f83e7bfc09900959f41e20.md index 2436f5730bc..11076638c38 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f83e7bfc09900959f41e20.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f83e7bfc09900959f41e20.md @@ -1,6 +1,6 @@ --- id: 60f83e7bfc09900959f41e20 -title: Step 22 +title: Крок 22 challengeType: 0 dashedName: step-22 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f84ec41116b209c280ba91.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f84ec41116b209c280ba91.md index 503e2148917..e7ce2b7a9a7 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f84ec41116b209c280ba91.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f84ec41116b209c280ba91.md @@ -1,6 +1,6 @@ --- id: 60f84ec41116b209c280ba91 -title: Step 23 +title: Крок 23 challengeType: 0 dashedName: step-23 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f852f645b5310a8264f555.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f852f645b5310a8264f555.md index 7021f3a502e..9c24fb50e96 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f852f645b5310a8264f555.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f852f645b5310a8264f555.md @@ -1,6 +1,6 @@ --- id: 60f852f645b5310a8264f555 -title: Step 24 +title: Крок 24 challengeType: 0 dashedName: step-24 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f85a62fb30c80bcea0cedb.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f85a62fb30c80bcea0cedb.md index 805b06cc6f2..f693515c08c 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f85a62fb30c80bcea0cedb.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f85a62fb30c80bcea0cedb.md @@ -1,6 +1,6 @@ --- id: 60f85a62fb30c80bcea0cedb -title: Step 25 +title: Крок 25 challengeType: 0 dashedName: step-25 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f8604682407e0d017bbf7f.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f8604682407e0d017bbf7f.md index bc580085430..54cf89f2f95 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f8604682407e0d017bbf7f.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f8604682407e0d017bbf7f.md @@ -1,6 +1,6 @@ --- id: 60f8604682407e0d017bbf7f -title: Step 26 +title: Крок 26 challengeType: 0 dashedName: step-26 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f8618d191b940d62038513.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f8618d191b940d62038513.md index b35d1506813..62cbe4b6857 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f8618d191b940d62038513.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f8618d191b940d62038513.md @@ -1,6 +1,6 @@ --- id: 60f8618d191b940d62038513 -title: Step 27 +title: Крок 27 challengeType: 0 dashedName: step-27 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab4a123ce4b04526b082b.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab4a123ce4b04526b082b.md index 96ab9fe085d..17af053b0ea 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab4a123ce4b04526b082b.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab4a123ce4b04526b082b.md @@ -1,6 +1,6 @@ --- id: 60fab4a123ce4b04526b082b -title: Step 28 +title: Крок 28 challengeType: 0 dashedName: step-28 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab8367d35de04e5cb7929.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab8367d35de04e5cb7929.md index 70636ef2eb3..9bc9e711406 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab8367d35de04e5cb7929.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab8367d35de04e5cb7929.md @@ -1,6 +1,6 @@ --- id: 60fab8367d35de04e5cb7929 -title: Step 30 +title: Крок 30 challengeType: 0 dashedName: step-30 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab9f17fa294054b74228c.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab9f17fa294054b74228c.md index 9366d21d428..804e6a2f270 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab9f17fa294054b74228c.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab9f17fa294054b74228c.md @@ -1,6 +1,6 @@ --- id: 60fab9f17fa294054b74228c -title: Step 31 +title: Крок 31 challengeType: 0 dashedName: step-31 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fabf0dd4959805dbae09e6.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fabf0dd4959805dbae09e6.md index 506fcfbf3d5..0ceedb4ea98 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fabf0dd4959805dbae09e6.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fabf0dd4959805dbae09e6.md @@ -1,6 +1,6 @@ --- id: 60fabf0dd4959805dbae09e6 -title: Step 32 +title: Крок 32 challengeType: 0 dashedName: step-32 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac4095512d3066053d73c.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac4095512d3066053d73c.md index 987b47b2b70..a29b10d6465 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac4095512d3066053d73c.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac4095512d3066053d73c.md @@ -1,6 +1,6 @@ --- id: 60fac4095512d3066053d73c -title: Step 33 +title: Крок 33 challengeType: 0 dashedName: step-33 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac56271087806def55b33.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac56271087806def55b33.md index 032ad2f68cf..9b0c76982f7 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac56271087806def55b33.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac56271087806def55b33.md @@ -1,6 +1,6 @@ --- id: 60fac56271087806def55b33 -title: Step 34 +title: Крок 34 challengeType: 0 dashedName: step-34 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac8d7fdfaee0796934f20.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac8d7fdfaee0796934f20.md index 694ba95c613..31ea10a5f9a 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac8d7fdfaee0796934f20.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac8d7fdfaee0796934f20.md @@ -1,6 +1,6 @@ --- id: 60fac8d7fdfaee0796934f20 -title: Step 35 +title: Крок 35 challengeType: 0 dashedName: step-35 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60faca286cb48b07f6482970.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60faca286cb48b07f6482970.md index 8a1e2fef351..6dd3a5e30b5 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60faca286cb48b07f6482970.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60faca286cb48b07f6482970.md @@ -1,6 +1,6 @@ --- id: 60faca286cb48b07f6482970 -title: Step 36 +title: Крок 36 challengeType: 0 dashedName: step-36 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60facde2d0dc61085b41063f.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60facde2d0dc61085b41063f.md index bd0868c5104..b7057e67ffb 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60facde2d0dc61085b41063f.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60facde2d0dc61085b41063f.md @@ -1,6 +1,6 @@ --- id: 60facde2d0dc61085b41063f -title: Step 37 +title: Крок 37 challengeType: 0 dashedName: step-37 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60facf914c7b9b08d7510c2c.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60facf914c7b9b08d7510c2c.md index 87fd4130608..5d0587e16c9 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60facf914c7b9b08d7510c2c.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60facf914c7b9b08d7510c2c.md @@ -1,6 +1,6 @@ --- id: 60facf914c7b9b08d7510c2c -title: Step 39 +title: Крок 39 challengeType: 0 dashedName: step-39 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad0a812d9890938524f50.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad0a812d9890938524f50.md index f2fff23fc71..bd0d5032ec0 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad0a812d9890938524f50.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad0a812d9890938524f50.md @@ -1,6 +1,6 @@ --- id: 60fad0a812d9890938524f50 -title: Step 40 +title: Крок 40 challengeType: 0 dashedName: step-40 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad1cafcde010995e15306.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad1cafcde010995e15306.md index 02fed5c1b66..9f394bc172b 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad1cafcde010995e15306.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad1cafcde010995e15306.md @@ -1,6 +1,6 @@ --- id: 60fad1cafcde010995e15306 -title: Step 41 +title: Крок 41 challengeType: 0 dashedName: step-41 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad6dfcc0d930a59becf12.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad6dfcc0d930a59becf12.md index 9a8c8443d86..00a3db5c565 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad6dfcc0d930a59becf12.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad6dfcc0d930a59becf12.md @@ -1,6 +1,6 @@ --- id: 60fad6dfcc0d930a59becf12 -title: Step 42 +title: Крок 42 challengeType: 0 dashedName: step-42 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad8e6148f310bba7890b1.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad8e6148f310bba7890b1.md index 806c2fda019..786f7b57749 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad8e6148f310bba7890b1.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad8e6148f310bba7890b1.md @@ -1,6 +1,6 @@ --- id: 60fad8e6148f310bba7890b1 -title: Step 43 +title: Крок 43 challengeType: 0 dashedName: step-43 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad99e09f9d30c1657e790.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad99e09f9d30c1657e790.md index 0d59faf1b5c..ccb6fc01063 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad99e09f9d30c1657e790.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad99e09f9d30c1657e790.md @@ -1,6 +1,6 @@ --- id: 60fad99e09f9d30c1657e790 -title: Step 44 +title: Крок 44 challengeType: 0 dashedName: step-44 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fadb18058e950c73925279.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fadb18058e950c73925279.md index f0bd8a99d16..d389cade142 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fadb18058e950c73925279.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fadb18058e950c73925279.md @@ -1,6 +1,6 @@ --- id: 60fadb18058e950c73925279 -title: Step 45 +title: Крок 45 challengeType: 0 dashedName: step-45 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fadce90f85c50d0bb0dd4f.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fadce90f85c50d0bb0dd4f.md index f52bc023253..ad40bafb5c9 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fadce90f85c50d0bb0dd4f.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fadce90f85c50d0bb0dd4f.md @@ -1,6 +1,6 @@ --- id: 60fadce90f85c50d0bb0dd4f -title: Step 46 +title: Крок 46 challengeType: 0 dashedName: step-46 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fadd972e6ffe0d6858fa2d.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fadd972e6ffe0d6858fa2d.md index 04c0a4ea62e..ad5576b02d5 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fadd972e6ffe0d6858fa2d.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fadd972e6ffe0d6858fa2d.md @@ -1,6 +1,6 @@ --- id: 60fadd972e6ffe0d6858fa2d -title: Step 48 +title: Крок 48 challengeType: 0 dashedName: step-48 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fadfa2b540b70dcfa8b771.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fadfa2b540b70dcfa8b771.md index 3c122f237c3..ff93ca373bd 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fadfa2b540b70dcfa8b771.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fadfa2b540b70dcfa8b771.md @@ -1,6 +1,6 @@ --- id: 60fadfa2b540b70dcfa8b771 -title: Step 49 +title: Крок 49 challengeType: 0 dashedName: step-49 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fc219d333e37046f474a6e.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fc219d333e37046f474a6e.md index 5962dee143c..a39bf03835f 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fc219d333e37046f474a6e.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fc219d333e37046f474a6e.md @@ -1,6 +1,6 @@ --- id: 60fc219d333e37046f474a6e -title: Step 50 +title: Крок 50 challengeType: 0 dashedName: step-50 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fc22d1e64d1b04cdd4e602.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fc22d1e64d1b04cdd4e602.md index 204356b5b14..96c03eccfce 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fc22d1e64d1b04cdd4e602.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fc22d1e64d1b04cdd4e602.md @@ -1,6 +1,6 @@ --- id: 60fc22d1e64d1b04cdd4e602 -title: Step 51 +title: Крок 51 challengeType: 0 dashedName: step-51 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fc236dc04532052926fdac.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fc236dc04532052926fdac.md index 061074f340d..572980f0a46 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fc236dc04532052926fdac.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fc236dc04532052926fdac.md @@ -1,6 +1,6 @@ --- id: 60fc236dc04532052926fdac -title: Step 52 +title: Крок 52 challengeType: 0 dashedName: step-52 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe1bc30415f042faea936.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe1bc30415f042faea936.md index b1b83031e23..a183560c13e 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe1bc30415f042faea936.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe1bc30415f042faea936.md @@ -1,6 +1,6 @@ --- id: 60ffe1bc30415f042faea936 -title: Step 53 +title: Крок 53 challengeType: 0 dashedName: step-53 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe3936796ac04959285a9.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe3936796ac04959285a9.md index a7d9a820ede..cc11fa2c855 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe3936796ac04959285a9.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe3936796ac04959285a9.md @@ -1,6 +1,6 @@ --- id: 60ffe3936796ac04959285a9 -title: Step 54 +title: Крок 54 challengeType: 0 dashedName: step-54 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe4f4ec18cd04dc470c56.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe4f4ec18cd04dc470c56.md index 5feaea01717..45229f37634 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe4f4ec18cd04dc470c56.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe4f4ec18cd04dc470c56.md @@ -1,6 +1,6 @@ --- id: 60ffe4f4ec18cd04dc470c56 -title: Step 55 +title: Крок 55 challengeType: 0 dashedName: step-55 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe69ee377c6055e192a46.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe69ee377c6055e192a46.md index 2b5d3682407..21e45740299 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe69ee377c6055e192a46.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe69ee377c6055e192a46.md @@ -1,6 +1,6 @@ --- id: 60ffe69ee377c6055e192a46 -title: Step 56 +title: Крок 56 challengeType: 0 dashedName: step-56 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe7d8aae62c05bcc9e7eb.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe7d8aae62c05bcc9e7eb.md index 45e8148cfc1..cbe7e4d0b2d 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe7d8aae62c05bcc9e7eb.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe7d8aae62c05bcc9e7eb.md @@ -1,6 +1,6 @@ --- id: 60ffe7d8aae62c05bcc9e7eb -title: Step 57 +title: Крок 57 challengeType: 0 dashedName: step-57 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe8a5ceb0e90618db06d9.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe8a5ceb0e90618db06d9.md index 5ec0b5e1d13..01e2b7ff4b9 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe8a5ceb0e90618db06d9.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe8a5ceb0e90618db06d9.md @@ -1,6 +1,6 @@ --- id: 60ffe8a5ceb0e90618db06d9 -title: Step 58 +title: Крок 58 challengeType: 0 dashedName: step-58 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe947a868ec068f7850f6.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe947a868ec068f7850f6.md index 9e35ae10f2a..551eda84dc7 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe947a868ec068f7850f6.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe947a868ec068f7850f6.md @@ -1,6 +1,6 @@ --- id: 60ffe947a868ec068f7850f6 -title: Step 59 +title: Крок 59 challengeType: 0 dashedName: step-59 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe9cb47809106eda2f2c9.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe9cb47809106eda2f2c9.md index 534077af384..363fd41e6ce 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe9cb47809106eda2f2c9.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffe9cb47809106eda2f2c9.md @@ -1,6 +1,6 @@ --- id: 60ffe9cb47809106eda2f2c9 -title: Step 60 +title: Крок 60 challengeType: 0 dashedName: step-60 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffec2825da1007509ddd06.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffec2825da1007509ddd06.md index 63c236b59c0..fa8f93df18b 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffec2825da1007509ddd06.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffec2825da1007509ddd06.md @@ -1,6 +1,6 @@ --- id: 60ffec2825da1007509ddd06 -title: Step 61 +title: Крок 61 challengeType: 0 dashedName: step-61 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffecefac971607ae73c60f.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffecefac971607ae73c60f.md index ff9369b6fff..e7ca5e4099e 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffecefac971607ae73c60f.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffecefac971607ae73c60f.md @@ -1,6 +1,6 @@ --- id: 60ffecefac971607ae73c60f -title: Step 62 +title: Крок 62 challengeType: 0 dashedName: step-62 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffefd6479a3d084fb77cbc.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffefd6479a3d084fb77cbc.md index 3973dbfd3b8..5ee173058e1 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffefd6479a3d084fb77cbc.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60ffefd6479a3d084fb77cbc.md @@ -1,6 +1,6 @@ --- id: 60ffefd6479a3d084fb77cbc -title: Step 63 +title: Крок 63 challengeType: 0 dashedName: step-63 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62b30924c5e4ef0daba23b5e.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62b30924c5e4ef0daba23b5e.md index 30715aa50e2..932d41f813d 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62b30924c5e4ef0daba23b5e.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62b30924c5e4ef0daba23b5e.md @@ -1,6 +1,6 @@ --- id: 62b30924c5e4ef0daba23b5e -title: Step 47 +title: Крок 47 challengeType: 0 dashedName: step-47 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62ff8b9dab5ac88e4d3d43a3.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62ff8b9dab5ac88e4d3d43a3.md index 3c4b7ff2ecc..cc08ab06c3f 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62ff8b9dab5ac88e4d3d43a3.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62ff8b9dab5ac88e4d3d43a3.md @@ -1,6 +1,6 @@ --- id: 62ff8b9dab5ac88e4d3d43a3 -title: Step 18 +title: Крок 18 challengeType: 0 dashedName: step-18 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62ff8e998d3e7eae14d6ae3b.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62ff8e998d3e7eae14d6ae3b.md index 18ef6c13dcc..00d0ebff7b7 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62ff8e998d3e7eae14d6ae3b.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62ff8e998d3e7eae14d6ae3b.md @@ -1,6 +1,6 @@ --- id: 62ff8e998d3e7eae14d6ae3b -title: Step 29 +title: Крок 29 challengeType: 0 dashedName: step-29 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62ff919a7b5612c0670923a5.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62ff919a7b5612c0670923a5.md index 210a23883d3..769012e9fe3 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62ff919a7b5612c0670923a5.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/62ff919a7b5612c0670923a5.md @@ -1,6 +1,6 @@ --- id: 62ff919a7b5612c0670923a5 -title: Step 38 +title: Крок 38 challengeType: 0 dashedName: step-38 --- diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/63541ef4f96cd82e8e6c788a.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/63541ef4f96cd82e8e6c788a.md index 973feafdabb..eef24f8fdc4 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/63541ef4f96cd82e8e6c788a.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/63541ef4f96cd82e8e6c788a.md @@ -1,31 +1,31 @@ --- id: 63541ef4f96cd82e8e6c788a -title: Step 12 +title: Крок 12 challengeType: 0 dashedName: step-12 --- # --description-- -The `method` attribute specifies how to send form-data to the URL specified in the `action` attribute. The form-data can be sent via a `GET` request as URL parameters (with `method="get"`) or via a `POST` request as data in the request body (with `method="post"`). +Атрибут `method` визначає, як надсилати дані форми на URL-адресу, вказану в атрибуті `action`. Дані форми можна надіслати через запит `GET` як параметри URL-адреси (із `method="get"`) або через запит `POST` як дані у тілі запиту (із `method="post"`). -Set the `method` attribute to send your form data via a `POST` request. +Встановіть атрибут `method` для надсилання даних форми через запит `POST`. # --hints-- -You shouldn't add a new `form` element. +Ви не повинні додавати новий елемент `form`. ```js assert.equal(document.querySelectorAll('form').length, 1 ) ``` -Your `form` element should have a `method` attribute. +Елемент `form` повинен мати атрибут `method`. ```js assert.exists(document.querySelector('form')?.getAttribute('method')); ``` -Your `method` attribute should be set to `post`. +Ваш атрибут `method` повинен мати значення `post`. ```js assert.equal(document.querySelector('form')?.getAttribute('method'), 'post'); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ade9b2f5b30ef0b606c2.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ade9b2f5b30ef0b606c2.md index 930967f2764..c998ecec7ac 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ade9b2f5b30ef0b606c2.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ade9b2f5b30ef0b606c2.md @@ -23,7 +23,7 @@ assert.isDefined(locations[0]["text"]); assert.isString(locations[0]["text"]); ``` -Your `text` property should have the value `You are in the town square. You see a sign that says \"Store\".` +Ваша властивість `text` повинна мати значення `You are in the town square. You see a sign that says \"Store\".` ```js assert.equal(locations[0]["text"], "You are in the town square. You see a sign that says \"Store\"."); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b0b5053f16111b0b6b5f.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b0b5053f16111b0b6b5f.md index 521de1250ad..dad79fe3e10 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b0b5053f16111b0b6b5f.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b0b5053f16111b0b6b5f.md @@ -47,7 +47,7 @@ assert.match(update.toString(), /button2\.onclick\s*=\s*goCave/); assert.match(update.toString(), /button3\.onclick\s*=\s*fightDragon/); ``` -Your `update` function should set `text.innerText` to `You are in the town square. You see a sign that says "Store".`. +Ваша функція `update` повинна встановити `text.innerText` на `You are in the town square. You see a sign that says "Store".`. ```js assert.match(update.toString(), /text\.innerText\s*=\s*"You are in the town square. You see a sign that says \\"Store\\"\."/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md index 088be998a42..4ddb2bd4064 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md @@ -9,11 +9,11 @@ dashedName: step-62 Масив `locations` містить дві локації: площа (town square) та магазин (store). Наразі ви передаєте цілий масив до оновлених функцій. Передайте лише перший елемент масиву `locations`, додавши `[0]` в кінці змінної. Наприклад: `myFunction(arg[0]);`. -Це називається нотацією в дужках. Значення в масиві доступні за індексом. Індекси є числовими значеннями та починаються з 0 – це називається індексуванням від нуля. Першим елементом у масиві `arg` був би `arg[0]`. +Це називається дужковою нотацією. Значення в масиві доступні за індексом. Індекси є числовими значеннями та починаються з 0 – це називається індексуванням від нуля. Першим елементом у масиві `arg` був би `arg[0]`. # --hints-- -Використайте нотацію в дужках для `locations`. +Використайте дужкову нотацію з `locations`. ```js assert.match(code, /locations\[/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b711ab7a12161c7d9b67.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b711ab7a12161c7d9b67.md index d12f10047d1..1919130e9e9 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b711ab7a12161c7d9b67.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b711ab7a12161c7d9b67.md @@ -7,11 +7,11 @@ dashedName: step-63 # --description-- -Тепер ваша функція `update` повинна використовувати аргумент, який ви передали. Всередині функції `update` змініть присвоєння `button1.innerText` на `location["button text"]`. Нотація в дужках використана для того, щоб передати властивість `button text` об'єкта `location` до функції. +Тепер ваша функція `update` повинна використовувати аргумент, який ви передали. Всередині функції `update` змініть присвоєння `button1.innerText` на `location["button text"]`. Дужкова нотація використана для того, щоб передати властивість `button text` об'єкта `location` до функції. # --hints-- -Ваша функція `update` повинна використовувати нотацію в дужках, щоб властивість `button text` об'єкта `location` була передана до функції. +Ваша функція `update` повинна використовувати дужкову нотацію, щоб властивість `button text` об'єкта `location` була передана до функції. ```js assert.match(update.toString(), /location[('|")button text\1]/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c151b23bf21bc7c4fcba.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c151b23bf21bc7c4fcba.md index 38870113b01..0a3514c079f 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c151b23bf21bc7c4fcba.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c151b23bf21bc7c4fcba.md @@ -7,7 +7,7 @@ dashedName: step-67 # --description-- -Зрештою оновіть присвоєння `text.innerText`, щоб воно дорівнювало `text` об'єкту локації. Але замість нотації в дужках використайте крапкову нотацію. Ось приклад отримання доступу до властивості `name` об'єкта під назвою `obj`: `obj.name`. +Зрештою оновіть присвоєння `text.innerText`, щоб воно дорівнювало `text` об'єкту локації. Але замість дужкової нотації використайте крапкову нотацію. Ось приклад отримання доступу до властивості `name` об'єкта під назвою `obj`: `obj.name`. # --hints-- diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c31ec0ec78216a1c36a0.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c31ec0ec78216a1c36a0.md index b18e555cd56..97919c007cb 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c31ec0ec78216a1c36a0.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c31ec0ec78216a1c36a0.md @@ -13,7 +13,7 @@ dashedName: step-71 # --hints-- -Ви повинні використати нотацію в дужках, щоб отримати доступ до третього елемента в масиві `locations`. +Ви повинні використати дужкову нотацію, щоб отримати доступ до третього елемента в масиві `locations`. ```js assert.match(code, /locations\[2\]/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c41ecaf1bd24536129b8.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c41ecaf1bd24536129b8.md index 604a426c3c6..81c742f6898 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c41ecaf1bd24536129b8.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c41ecaf1bd24536129b8.md @@ -7,25 +7,25 @@ dashedName: step-74 # --description-- -There is a shorthand way to add or subtract from a variable called compound assignment. For example, changing `num = num + 5` to compound assignment would look like `num += 5`. +Існує швидкий спосіб виконати додавання чи віднімання над змінною під назвою складене присвоювання. Наприклад, якщо змінити `num = num + 5` на складене присвоювання, вигляд буде такий: `num += 5`. -Update both lines inside your `buyHealth` function to use compound assignment. +Оновіть обидва рядки функції `buyHealth`, щоб вони використовували складене присвоювання. # --hints-- -You should change `gold` to use compound assignment. +Ви повинні змінити `gold` на використання складеного присвоювання. ```js assert.notMatch(code, /gold\s*=\s*gold\s*-\s*10/); ``` -You should change `health` to use compound assignment. +Ви повинні змінити `health` на використання складеного присвоювання. ```js assert.notMatch(code, /health\s*=\s*health\s*\+\s*10/); ``` -Your `buyHealth` function should still update the values. +Ваша функція `buyHealth` досі повинна оновлювати значення. ```js gold = 10; diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c56247609626fa4a8d6e.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c56247609626fa4a8d6e.md index f5045c16418..1afb0c7a018 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c56247609626fa4a8d6e.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c56247609626fa4a8d6e.md @@ -7,9 +7,9 @@ dashedName: step-77 # --description-- -The `condition` string is just a placeholder. Change the `if` statement condition to check if `gold` is greater than or equal to `10`. +Рядок `condition` – це лише заповнювач. Змініть умову інструкції `if`, щоб перевіряти, чи `gold` більше чи дорівнює `10`. -Here is an `if` statement that checks if `num` is greater than or equal to `5`: +Ось інструкція `if` яка перевіряє, чи `num` більше чи дорівнює `5`: ```js if (num >= 5) { @@ -19,13 +19,13 @@ if (num >= 5) { # --hints-- -Your `if` statement should check if `gold` is greater than or equal to `10`. +Ваша інструкція `if` повинна перевіряти, чи `gold` більше чи дорівнює `10`. ```js assert.match(buyHealth.toString(), /if\s*\(gold\s*>=\s*10\)/); ``` -Your `buyHealth` function should update `health` and `gold` if `gold` is greater than or equal to `10`. +Ваша функція `buyHealth` повинна оновлювати `health` та `gold`, якщо `gold` більше чи дорівнює `10`. ```js gold = 10; @@ -39,7 +39,7 @@ const goldElement = document.getElementById('goldText'); assert.equal(goldElement.innerText, '0'); ``` -Your `buyHealth` function should not update `health` and `gold` if `gold` is less than `10`. +Ваша функція `buyHealth` не повинна оновлювати `health` та `gold`, якщо `gold` менше ніж `10`. ```js gold = 5; diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c5db7888af27af23f0dd.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c5db7888af27af23f0dd.md index 4bf09dcab95..56de8a1a982 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c5db7888af27af23f0dd.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c5db7888af27af23f0dd.md @@ -7,7 +7,7 @@ dashedName: step-78 # --description-- -Now when a player tries to buy health it will only work if they have enough money. If they do not, nothing will happen. Add an `else` statement where you can put code to run if a player does not have enough money. +Тепер гравець може купити здоров'я лише тоді, коли має достатньо грошей. В іншому випадку нічого не станеться. Додайте інструкцію `else`, де ви можете розмістити код для запуску, якщо гравець не має достатньо грошей. Ось приклад пустої інструкції `else`: diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c65b75664c28a8e59c16.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c65b75664c28a8e59c16.md index 91e1027cd64..b314bffd77d 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c65b75664c28a8e59c16.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c65b75664c28a8e59c16.md @@ -7,17 +7,17 @@ dashedName: step-79 # --description-- -Inside the `else` statement, set `text.innerText` to equal `You do not have enough gold to buy health.`. +В інструкції `else` встановіть `text.innerText` на `You do not have enough gold to buy health.`. # --hints-- -Your `buyHealth` function should set `text.innerText` to equal `You do not have enough gold to buy health.`. +Ваша функція `buyHealth` повинна встановити `text.innerText` на `You do not have enough gold to buy health.`. ```js assert.match(buyHealth.toString(), /text\.innerText\s*=\s*('|")You do not have enough gold to buy health\.\1/); ``` -Your `buyHealth` function should update `text.innerText` when `gold` is less than `10`. +Ваша функція `buyHealth` повинна оновлювати `text.innerText`, коли `gold` менше ніж `10`. ```js gold = 5; diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c6815f5f1a29735efe1b.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c6815f5f1a29735efe1b.md index df862acdb02..ec7174d3e80 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c6815f5f1a29735efe1b.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c6815f5f1a29735efe1b.md @@ -7,7 +7,7 @@ dashedName: step-80 # --description-- -Use `const` to create a `weapons` variable above your `locations` array. Assign it an empty array. +Використайте `const`, щоб створити змінну `weapons` над своїм масивом `locations`. Призначте до неї порожній масив. # --hints-- @@ -17,7 +17,7 @@ Use `const` to create a `weapons` variable above your `locations` array. Assign assert.match(code, /const weapons/i); ``` -Your `weapons` variable should be an array. +Ваша змінна `weapons` повинна бути масивом. ```js assert.isArray(weapons); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c7322e42962ad53ad204.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c7322e42962ad53ad204.md index d61231a70d3..14d6d64cc80 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c7322e42962ad53ad204.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c7322e42962ad53ad204.md @@ -7,7 +7,7 @@ dashedName: step-81 # --description-- -Just like your `locations` array, your `weapons` array will hold objects. Add four objects to the `weapons` array, each with two properties: `name` and `power`. The first should have the `name` set to `stick` and the `power` set to `5`. The second should be `dagger` and `30`. The third, `claw hammer` and `50`. The fourth, `sword` and `100`. +Так само як і масив `locations`, ваш масив `weapons` зберігатиме об'єкти. Додайте чотири об'єкти до масиву `weapons`, кожен з двома властивостями: `name` та `power`. Перший повинен мати `name` зі значенням `stick` та `power` зі значенням `5`. Другий повинен бути `dagger` та `30`. Третій: `claw hammer` та `50`. Четвертий: `sword` та `100`. # --hints-- @@ -26,28 +26,28 @@ assert.isObject(weapons[2]); assert.isObject(weapons[3]); ``` -Your first `weapons` object should have the `name` set to `stick` and the `power` set to `5`. +Ваш перший об’єкт `weapons` повинен мати `name` зі значенням `stick` та `power` зі значенням `5`. ```js assert.equal(weapons[0].name, 'stick'); assert.equal(weapons[0].power, 5); ``` -Your second `weapons` object should have the `name` set to `dagger` and the `power` set to `30`. +Ваш другий об’єкт `weapons` повинен мати `name` зі значенням `dagger` та `power` зі значенням `30`. ```js assert.equal(weapons[1].name, 'dagger'); assert.equal(weapons[1].power, 30); ``` -Your third `weapons` object should have the `name` set to `claw hammer` and the `power` set to `50`. +Ваш третій об’єкт `weapons` повинен мати `name` зі значенням `claw hammer` та `power` зі значенням `50`. ```js assert.equal(weapons[2].name, 'claw hammer'); assert.equal(weapons[2].power, 50); ``` -Your fourth `weapons` object should have the `name` set to `sword` and the `power` set to `100`. +Ваш четвертий об’єкт `weapons` повинен мати `name` зі значенням `sword` та `power` зі значенням `100`. ```js assert.equal(weapons[3].name, 'sword'); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c7a59e72c02bb1c717d2.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c7a59e72c02bb1c717d2.md index e429a203bac..72acf06a819 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c7a59e72c02bb1c717d2.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c7a59e72c02bb1c717d2.md @@ -7,7 +7,7 @@ dashedName: step-82 # --description-- -Inside your `buyWeapon` function, add an `if` statement to check if `gold` is greater than or equal to `30`. +Всередині функції `buyWeapon` додайте інструкцію `if`, щоб перевіряти, чи `gold` більше чи дорівнює `30`. # --hints-- @@ -17,7 +17,7 @@ Inside your `buyWeapon` function, add an `if` statement to check if `gold` is gr assert.include(buyWeapon.toString(), 'if'); ``` -Your `if` statement should check if `gold` is greater than or equal to `30`. +Ваша інструкція `if` повинна перевіряти, чи значення `gold` більше чи дорівнює `30`. ```js assert.match(buyWeapon.toString(), /if\s*\(gold\s*>=\s*30\)/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c89e4272512d44fc1c66.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c89e4272512d44fc1c66.md index 5cd53a9929b..7bb7d3a9eb9 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c89e4272512d44fc1c66.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c89e4272512d44fc1c66.md @@ -7,17 +7,17 @@ dashedName: step-83 # --description-- -Similar to your `buyHealth` function, set `gold` equal to 30 less than its current value. Make sure this is inside your `if` statement. +Подібно до функції `buyHealth`, встановіть `gold` на 30 менше, ніж поточне значення. Переконайтеся, що це всередині інструкції `if`. # --hints-- -You should use compound assignment to subtract `30` from `gold`. +Ви повинні використати складене присвоювання, щоб відняти `30` від `gold`. ```js assert.match(buyWeapon.toString(), /gold\s*-=\s*30/); ``` -Your `buyWeapon` function should reduce `gold` by `30`. +Ваша функція `buyWeapon` повинна зменшити `gold` на `30`. ```js gold = 30; diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c8cee8e5cf2e001789b4.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c8cee8e5cf2e001789b4.md index ac895dc9494..f2939e06ac4 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c8cee8e5cf2e001789b4.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8c8cee8e5cf2e001789b4.md @@ -7,19 +7,19 @@ dashedName: step-84 # --description-- -The value of the `currentWeapon` variable corresponds to an index in the `weapons` array. The player starts with a `stick`, since `currentWeapon` starts at `0` and `weapons[0]` is the `stick` weapon. +Значення змінної `currentWeapon` відповідає індексу в масиві `weapons`. Гравець починає із `stick`, оскільки `currentWeapon` розпочинається із `0` та `weapons[0]` є зброєю `stick`. -In the `buyWeapon` function, add one to `currentWeapon` - the user is buying the next weapon in the `weapons` array. +У функції `buyWeapon` додайте один до `currentWeapon`: користувач купляє наступну зброю у масиві `weapons`. # --hints-- -You should use compound assignment to add one to `currentWeapon`. +Ви повинні використати складене присвоювання, щоб додати один до `currentWeapon`. ```js assert.match(buyWeapon.toString(), /currentWeapon\s*\+=\s*1/); ``` -Your `buyWeapon` function should increase `currentWeapon` by `1`. +Ваша функція `buyWeapon` повинна збільшити `currentWeapon` на `1`. ```js gold = 30; diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ca22d29fe62f3952bdf5.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ca22d29fe62f3952bdf5.md index 95905bcd1af..c8817996268 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ca22d29fe62f3952bdf5.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ca22d29fe62f3952bdf5.md @@ -19,7 +19,7 @@ You should use the increment operator to increase `currentWeapon` by `1`. assert.match(buyWeapon.toString(), /currentWeapon\s*\+\s*\+/); ``` -You should not use compound assignment to increase `currentWeapon` by `1`. +Ви не повинні використовувати складене присвоювання, щоб збільшити `currentWeapon` на `1`. ```js assert.notMatch(buyWeapon.toString(), /currentWeapon\s*\+=\s*1/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8cb19bd7f8a304e5427a1.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8cb19bd7f8a304e5427a1.md index e4c08043490..a7ee8ab5841 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8cb19bd7f8a304e5427a1.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8cb19bd7f8a304e5427a1.md @@ -7,7 +7,7 @@ dashedName: step-86 # --description-- -Now update the `goldText` element to display the new value of `gold`, and update the `text` element to display `You now have a new weapon.`. +Тепер оновіть елемент `goldText`, щоб він показував нове значення `gold`, та оновіть елемент `text`, щоб він показував `You now have a new weapon.`. # --hints-- diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8cbd1e3595431d5a2b3f1.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8cbd1e3595431d5a2b3f1.md index 89cb6024574..be8122a4848 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8cbd1e3595431d5a2b3f1.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8cbd1e3595431d5a2b3f1.md @@ -7,11 +7,11 @@ dashedName: step-87 # --description-- -You should tell the player what weapon they bought. In between the two lines you just wrote, use `let` to initialize a new variable called `newWeapon`. Set this to equal `weapons`. +Ви повинні казати гравцю, яку зброю він купив. Мід щойно написаними рядками використайте `let`, щоб ініціалізувати нову змінну під назвою `newWeapon`. Встановіть значення рівним `weapons`. # --hints-- -Your `buyWeapon` function should have a variable named `newWeapon`. +Ваша функція `buyWeapon` повинна мати змінну під назвою `newWeapon`. ```js assert.match(buyWeapon.toString(), /newWeapon/); @@ -23,13 +23,13 @@ assert.match(buyWeapon.toString(), /newWeapon/); assert.match(code, /let\s+newWeapon/); ``` -`newWeapon` should be initialised to have the value of `weapons`. Don't forget your semi-colon. +`newWeapon` повинна бути ініціалізованою, щоб мати значення `weapons`. Не забудьте про крапку з комою. ```js assert.match(buyWeapon.toString(), /newWeapon\s*=\s*weapons;/); ``` -`newWeapon` should be declared before you modify `text`. +`newWeapon` повинна бути оголошеною перед тим, як змінити `text`. ```js const contents = buyWeapon.toString().split(/\s+/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8cce1b0c32c33017cf2e9.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8cce1b0c32c33017cf2e9.md index 842371df761..0c76ab7dee7 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8cce1b0c32c33017cf2e9.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8cce1b0c32c33017cf2e9.md @@ -7,11 +7,11 @@ dashedName: step-88 # --description-- -For your `newWeapon` variable, use bracket notation to use the `currentWeapon` variable to access an object within the `weapons` array. +Використайте дужкову нотацію для своєї змінної `newWeapon`, щоб використати змінну `currentWeapon` для доступу до об’єкта в масиві `weapons`. -When you use a variable in bracket notation, you are accessing the property or index by the *value* of that variable. +Коли ви використовуєте змінну в дужковій нотації, ви отримуєте доступ до властивості або індексу за *значенням* цієї змінної. -For example, this code uses the `index` variable to access a value of `array`. +Наприклад, цей код використовує змінну `index`, щоб отримати доступ до значення `array`. ```js let value = array[index]; diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ce1dfc990134162b3bd9.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ce1dfc990134162b3bd9.md index d14f858fcb7..a0cdbf5f9cd 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ce1dfc990134162b3bd9.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ce1dfc990134162b3bd9.md @@ -7,7 +7,7 @@ dashedName: step-89 # --description-- -`weapons[currentWeapon]` is an object. Use dot notation to get the `name` property of that object. +`weapons[currentWeapon]` є об’єктом. Використовуйте крапкову нотацію, щоб отримати властивість `name` цього об’єкта. # --hints-- diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8cf22272d6d35af80d4ac.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8cf22272d6d35af80d4ac.md index cf81c4b89a1..59862c6a5fe 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8cf22272d6d35af80d4ac.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8cf22272d6d35af80d4ac.md @@ -7,7 +7,7 @@ dashedName: step-91 # --description-- -Back at the beginning of this project, you created the `inventory` array. Add the `newWeapon` to the end of the `inventory` array using the `push()` method. +Ще на початку проєкту ви створили масив `inventory`. Додайте `newWeapon` в кінець масиву `inventory`, використовуючи метод `push()`. Ось приклад: @@ -17,23 +17,23 @@ const next = "second"; arr.push(next); ``` -`arr` would now have the value `["first", "second"]`. +`arr` зараз матиме значення `["first", "second"]`. # --hints-- -You should use the `push` method on `inventory`. +Ви повинні використати метод `push` для `inventory`. ```js assert.match(buyWeapon.toString(), /inventory\.push/) ``` -You should `push` the value of `newWeapon` to the `inventory` array. +Ви повинні `push` (додати) значення `newWeapon` до масиву `inventory`. ```js assert.match(buyWeapon.toString(), /inventory\.push\s*\(\s*newWeapon\s*\)/) ``` -Your `buyWeapon` function should add the value of `newWeapon` to the `inventory` array. +Ваша функція `buyWeapon` повинна додати значення `newWeapon` до масиву `inventory`. ```js inventory = []; diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d0337d7c67377a4a76c6.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d0337d7c67377a4a76c6.md index f00bb65a78d..18634d4b9ba 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d0337d7c67377a4a76c6.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d0337d7c67377a4a76c6.md @@ -7,24 +7,24 @@ dashedName: step-92 # --description-- -Up until now, any time `text.innerText` was updated the old text was erased. This time, use the `+=` operator to add text to the end of `text.innerText`. Add the string `In your inventory you have:` - include the spaces at the beginning and the end. +До цього моменту старий текст видалявся, коли `text.innerText` оновлювався. Цього разу скористайтеся оператором `+=`, щоб додати текст у кінець `text.innerText`. Додайте рядок `In your inventory you have:`, додайте пробіли на початку та в кінці. # --hints-- -You should add a new line with `text.innerText`. +Ви повинні додати новий рядок із `text.innerText`. ```js const matches = buyWeapon.toString().match(/text\.innerText/g); assert.lengthOf(matches, 2); ``` -You should use the `+=` operator to add to `text.innerText`. +Ви повинні використати оператор `+=`, щоб додати до `text.innerText`. ```js assert.match(buyWeapon.toString(), /text\.innerText\s*\+=\s*/) ``` -You should add the string `In your inventory you have:` to the end of `text.innerText`. Mind the spaces! +Ви повинні додати рядок `In your inventory you have:` в кінець `text.innerText`. Пам’ятайте про пробіли! ```js assert.match(buyWeapon.toString(), /text\.innerText\s*\+=\s*('|")\sIn your inventory you have:\s\1/) diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d0fdf2dad83a92883a80.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d0fdf2dad83a92883a80.md index 39804d76c55..157febadcc2 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d0fdf2dad83a92883a80.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d0fdf2dad83a92883a80.md @@ -7,11 +7,11 @@ dashedName: step-95 # --description-- -Once a player has the best weapon, they cannot buy another one. Wrap all of the code in your `buyWeapon` function inside another `if` statement. The condition should check if `currentWeapon` is less than `3` - the index of the last weapon. +Як тільки гравець має найкращу зброю, він не може купити ще одну. Загорніть весь свій код у функції `buyWeapon` всередині іншої інструкції `if`. Умова повинна перевіряти, чи `currentWeapon` менше за `3` – індекс останньої зброї. # --hints-- -You should have a new `if` statement that checks if `currentWeapon` is less than `3`. +Ви повинні мати нову інструкцію `if`, яка перевіряє, чи `currentWeapon` менше за `3`. ```js assert.match(buyWeapon.toString(), /currentWeapon\s*\<\s*3/) diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d143f2a58e3b6d6e9c33.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d143f2a58e3b6d6e9c33.md index d8c46170aa1..0e4ba712e3b 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d143f2a58e3b6d6e9c33.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d143f2a58e3b6d6e9c33.md @@ -7,7 +7,7 @@ dashedName: step-96 # --description-- -Arrays have a `length` property that returns the number of items in the array. You may want to add new values to the `weapons` array in the future. Change your `if` condition to check if `currentWeapon` is less than the length of the `weapons` array. An example of checking the length of an array `myArray` would look like `myArray.length`. +Arrays have a `length` property that returns the number of items in the array. You may want to add new values to the `weapons` array in the future. Змініть свою умову `if`, щоб перевіряти, чи `currentWeapon` менше за довжину масиву `weapons`. An example of checking the length of an array `myArray` would look like `myArray.length`. # --hints-- @@ -17,7 +17,7 @@ Arrays have a `length` property that returns the number of items in the array. Y assert.match(buyWeapon.toString(), /weapons\.length/); ``` -Your `if` statement should check if `currentWeapon` is less than `weapons.length`. +Ваша інструкція `if` повинна перевіряти, чи `currentWeapon` менше за `weapons.length`. ```js assert.match(buyWeapon.toString(), /currentWeapon\s*<\s*weapons\.length/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d1c72e8bb13c2074d93c.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d1c72e8bb13c2074d93c.md index 0a527f25ecb..aac72680086 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d1c72e8bb13c2074d93c.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d1c72e8bb13c2074d93c.md @@ -7,7 +7,7 @@ dashedName: step-97 # --description-- -You now have an error to fix. The `currentWeapon` variable is the index of the `weapons` array, but array indexing starts at zero. The index of the last element in an array is one less than the length of the array. Change the `if` condition to check `weapons.length - 1`, instead of `weapons.length`. +Тепер у вас є помилка, яку потрібно виправити. The `currentWeapon` variable is the index of the `weapons` array, but array indexing starts at zero. The index of the last element in an array is one less than the length of the array. Змініть умову `if` на перевірку `weapons.length - 1` замість `weapons.length`. # --hints-- @@ -17,7 +17,7 @@ You should update the condition to subtract `1` from `weapons.length`. assert.match(buyWeapon.toString(), /weapons\.length\s*-\s*1/); ``` -Your condition should check if `currentWeapon` is less than `weapons.length - 1`. +Ваша умова повинна перевіряти, чи `currentWeapon` менше за `weapons.length - 1`. ```js assert.match(buyWeapon.toString(), /currentWeapon\s*<\s*weapons\.length\s*-\s*1/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d2146a3e853d0a6e28ca.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d2146a3e853d0a6e28ca.md index ff96c69e289..ef9967b4c9e 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d2146a3e853d0a6e28ca.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d2146a3e853d0a6e28ca.md @@ -7,7 +7,7 @@ dashedName: step-98 # --description-- -Додайте інструкцію `else` до своєї зовнішньої інструкції `if`. Inside this new `else` statement, set `text.innerText` to `You already have the most powerful weapon!`. +Додайте інструкцію `else` до своєї зовнішньої інструкції `if`. Всередині цієї нової інструкції `else` встановіть `text.innerText` на `You already have the most powerful weapon!`. # --hints-- @@ -24,7 +24,7 @@ assert.equal(matches.length, 2); assert.match(buyWeapon.toString(), /('|")You already have the most powerful weapon!\1/); ``` -You should modify your `text.innerText` to `You already have the most powerful weapon!` within your outer `else` statement. +Ви повинні змінити свій `text.innerText` на `You already have the most powerful weapon!` у своїй зовнішній інструкції `else`. ```js currentWeapon = 5; diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d24c97461b3ddb9397c8.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d24c97461b3ddb9397c8.md index 73760eb149f..56122c9a066 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d24c97461b3ddb9397c8.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d24c97461b3ddb9397c8.md @@ -7,7 +7,7 @@ dashedName: step-99 # --description-- -Once a player has the most powerful weapon, you can give them the ability to sell their old weapons. In the outer `else` statement, set `button2.innerText` to `Sell weapon for 15 gold`. Also set `button2.onclick` to the function name `sellWeapon`. +Як тільки гравець отримає найпотужнішу зброю, ви можете дати йому можливість продати стару. У зовнішній інструкції `else` встановіть `button2.innerText` на `Sell weapon for 15 gold`. Також встановіть `button2.onclick` на назву функції `sellWeapon`. # --hints-- diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d2e2a073be3edb46116f.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d2e2a073be3edb46116f.md index e93a2728030..825144465b4 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d2e2a073be3edb46116f.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d2e2a073be3edb46116f.md @@ -7,7 +7,7 @@ dashedName: step-100 # --description-- -Create an empty `sellWeapon` function. +Створіть порожню функцію `sellWeapon`. # --hints-- diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d31ebbc10e3fe1b28e03.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d31ebbc10e3fe1b28e03.md index 70df11ebc6a..1735adfc17c 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d31ebbc10e3fe1b28e03.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d31ebbc10e3fe1b28e03.md @@ -7,7 +7,7 @@ dashedName: step-101 # --description-- -Players should not be able to sell their only weapon. Inside the `sellWeapon` function, add an `if` statement with a condition that checks if the length of the `inventory` array is greater than `1`. +Гравці не повинні мати можливості продати свою єдину зброю. Всередині функції `sellWeapon` додайте інструкцію `if` з умовою, яка перевіряє, чи довжина масиву `inventory` більша за `1`. # --hints-- @@ -17,7 +17,7 @@ Players should not be able to sell their only weapon. Inside the `sellWeapon` fu assert.match(sellWeapon.toString(), /if/); ``` -Your `if` statement should check if `inventory.length` is greater than `1`. +Ваша інструкція `if` повинна перевіряти, чи `inventory.length` більше за `1`. ```js assert.match(sellWeapon.toString(), /if\s*\(inventory\.length\s*>\s*1\)/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d35660db4040ba292193.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d35660db4040ba292193.md index 443c43c9dcb..522fa53c3c6 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d35660db4040ba292193.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d35660db4040ba292193.md @@ -7,17 +7,17 @@ dashedName: step-102 # --description-- -Inside the `if` statement, set `gold` equal to `15` more than its current value. Also update `goldText.innerText` to the new value. +Всередині інструкції `if` встановіть `gold` на `15` більше, ніж поточне значення. Також оновіть `goldText.innerText` до нового значення. # --hints-- -You should use compound assignment to increase `gold` by `15`. +Ви повинні використати складене присвоювання, щоб збільшити `gold` на `15`. ```js assert.match(sellWeapon.toString(), /gold\s*\+=\s*15/); ``` -You should set `goldText.innerText` to `gold`. +Ви повинні встановити `goldText.innerText` на `gold`. ```js assert.match(sellWeapon.toString(), /goldText\.innerText\s*=\s*gold/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d382cd075f4169223e14.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d382cd075f4169223e14.md index 093e309a2a3..2511b4c1907 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d382cd075f4169223e14.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d382cd075f4169223e14.md @@ -7,9 +7,9 @@ dashedName: step-103 # --description-- -Use the `let` keyword to create a variable named `currentWeapon`. Поки що не присвоюйте значення. +Використайте ключове слово `let`, щоб створити змінну під назвою `currentWeapon`. Поки що не присвоюйте значення. -Notice that you already have a `currentWeapon` variable elsewhere in your code. Since you are using the `let` keyword instead of `var`, the new `currentWeapon` is scoped only to this `if` statement. At the close of the `if` statement, the old `currentWeapon` will be used again. +Зверніть увагу, що ви вже маєте змінну `currentWeapon` десь у своєму коді. Оскільки ви використовуєте ключове слово `let` замість `var`, нова `currentWeapon` видима лише для цієї інструкції `if`. Після завершення інструкції `if` знову буде використано стару `currentWeapon`. # --hints-- diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d539dc11cb42b5dd7ec8.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d539dc11cb42b5dd7ec8.md index cf21872886f..e453a3f70ca 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d539dc11cb42b5dd7ec8.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d539dc11cb42b5dd7ec8.md @@ -7,23 +7,23 @@ dashedName: step-104 # --description-- -The `shift()` method on an array removes the first element in the array and returns it. Use this method to take the first element from the `inventory` array and assign it to your `currentWeapon` variable. +Метод `shift()` на масиві видаляє перший елемент у масиві та повертає його. Використайте цей метод, щоб взяти перший елемент із масиву `inventory` та призначте його своїй змінній `currentWeapon`. # --hints-- -Your `sellWeapon` function should use the `shift()` method. +Ваша функція `sellWeapon` повинна використовувати метод `shift()`. ```js assert.match(sellWeapon.toString(), /shift\(\)/); ``` -You should use the `shift()` method on the `inventory` array. +Ви повинні використати метод `shift()` для масиву `inventory`. ```js assert.match(sellWeapon.toString(), /inventory\.shift\(\)/); ``` -You should assign the value of `inventory.shift()` to your `currentWeapon` variable. +Ви повинні присвоїти значення `inventory.shift()` своїй змінній `currentWeapon`. ```js assert.match(sellWeapon.toString(), /currentWeapon\s*=\s*inventory\.shift\(\)/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d6c7001ebc45350e3d16.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d6c7001ebc45350e3d16.md index a087ec1f55b..fa0e65049cf 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d6c7001ebc45350e3d16.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d6c7001ebc45350e3d16.md @@ -18,7 +18,7 @@ const matches = sellWeapon.toString().match(/text\.innerText/g); assert.equal(matches.length, 2); ``` -You should use compound assignment on `text.innerText`. +Ви повинні використати складене присвоювання на `text.innerText`. ```js const matches = sellWeapon.toString().match(/text\.innerText\s*\+=/g); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d7b8ab568b4649998954.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d7b8ab568b4649998954.md index 9a3b80743e6..1e37a141ecf 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d7b8ab568b4649998954.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d7b8ab568b4649998954.md @@ -7,7 +7,7 @@ dashedName: step-107 # --description-- -Use an `else` statement to run when the `inventory` length is not more than one. Set the `text.innerText` to say `Don't sell your only weapon!`. +Використайте інструкцію `else` для запуску, коли довжина `inventory` не більша одиниці. Встановіть `text.innerText` на `Don't sell your only weapon!`. # --hints-- @@ -23,7 +23,7 @@ assert.match(sellWeapon.toString(), /else/); assert.match(sellWeapon.toString(), /text\.innerText\s*=\s*('|")Don't sell your only weapon!\1/); ``` -Your new `text.innerText` line should be in your `else` statement. +Ваш новий рядок `text.innerText` повинен бути у вашій інструкції `else`. ```js inventory = ["Naomi"]; diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d81f539f004776dd9b1e.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d81f539f004776dd9b1e.md index 5c0a59b1fca..729830bb855 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d81f539f004776dd9b1e.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8d81f539f004776dd9b1e.md @@ -7,9 +7,9 @@ dashedName: step-108 # --description-- -Now you can start the code to fight monsters. To keep your code organized, your `fightDragon` function has been moved for you to be near the other `fight` functions. +Тепер ви можете розпочати код для боротьби з монстрами. Щоб код був організованим, ваша функція `fightDragon` була переміщена, щоб бути ближче до інших функцій `fight`. -Below your `weapons` array, define a `monsters` variable and assign it an array. Set that array to have three objects, each with a `name`, `level`, and `health` properties. The first object's values should be `slime`, `2`, and `15`, in order. The second should be `fanged beast`, `8`, and `60`. The third should be `dragon`, `20`, and `300`. +Під своїм масивом `weapons` визначте змінну `monsters` та призначте їй масив. Масив повинен мати три об'єкти, кожен із властивостями `name`, `level` та `health`. Значеннями першого об'єкту повинні бути `slime`, `2` та `15`, за порядком. Значення другого: `fanged beast`, `8` та `60`. Значення третього: `dragon`, `20` та `300`. # --hints-- @@ -19,13 +19,13 @@ Below your `weapons` array, define a `monsters` variable and assign it an array. assert.match(code, /const\s*monsters/); ``` -Your `monsters` variable should be an array. +Ваша змінна `monsters` повинна бути масивом. ```js assert.isArray(monsters); ``` -Your `monsters` variable should have 3 values. +Ваша змінна `monsters` повинна мати 3 значення. ```js assert.lengthOf(monsters, 3); @@ -37,61 +37,61 @@ assert.lengthOf(monsters, 3); assert(monsters.every(val => typeof val === "object")); ``` -The first value in your `monsters` array should be an object with a `name` property set to `slime`. +Перше значення у вашому масиві `monsters` повинне бути об'єктом з властивістю `name` зі значенням `slime`. ```js assert.equal(monsters[0].name, "slime"); ``` -The first value in your `monsters` array should be an object with a `level` property set to `2`. +Перше значення у вашому масиві `monsters` повинне бути об'єктом з властивістю `level` зі значенням `2`. ```js assert.equal(monsters[0].level, 2); ``` -The first value in your `monsters` array should be an object with a `health` property set to `15`. +Перше значення у вашому масиві `monsters` повинне бути об'єктом з властивістю `health` зі значенням `15`. ```js assert.equal(monsters[0].health, 15); ``` -The second value in your `monsters` array should be an object with a `name` property set to `fanged beast`. +Друге значення у вашому масиві `monsters` повинне бути об'єктом з властивістю `name` зі значенням `fanged beast`. ```js assert.equal(monsters[1].name, "fanged beast"); ``` -The second value in your `monsters` array should be an object with a `level` property set to `8`. +Друге значення у вашому масиві `monsters` повинне бути об'єктом з властивістю `level` зі значенням `8`. ```js assert.equal(monsters[1].level, 8); ``` -The second value in your `monsters` array should be an object with a `health` property set to `60`. +Друге значення у вашому масиві `monsters` повинне бути об'єктом з властивістю `health` зі значенням `60`. ```js assert.equal(monsters[1].health, 60); ``` -The third value in your `monsters` array should be an object with a `name` property set to `dragon`. +Третє значення у вашому масиві `monsters` повинне бути об'єктом з властивістю `name` зі значенням `dragon`. ```js assert.equal(monsters[2].name, "dragon"); ``` -The third value in your `monsters` array should be an object with a `level` property set to `20`. +Третє значення у вашому масиві `monsters` повинне бути об'єктом з властивістю `level` зі значенням `20`. ```js assert.equal(monsters[2].level, 20); ``` -The third value in your `monsters` array should be an object with a `health` property set to `300`. +Третє значення у вашому масиві `monsters` повинне бути об'єктом з властивістю `health` зі значенням `300`. ```js assert.equal(monsters[2].health, 300); ``` -You should not add any extra properties to your objects. +Не додавайте додаткові властивості до своїх об'єктів. ```js assert.deepEqual(monsters, [ diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8dd468debb449b4454086.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8dd468debb449b4454086.md index f90bc4355bf..18c6997fe3a 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8dd468debb449b4454086.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8dd468debb449b4454086.md @@ -7,7 +7,7 @@ dashedName: step-109 # --description-- -Fighting each type of monster will use similar logic. Create an empty function called `goFight` to manage this logic. +Боротьба з кожним типом монстра матиме однакову логіку. Створіть порожню функцію під назвою `goFight`, щоб керувати цією логікою. # --hints-- diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8dd9cdb16324b04cfd958.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8dd9cdb16324b04cfd958.md index cf746772d06..ee16d1903d1 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8dd9cdb16324b04cfd958.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8dd9cdb16324b04cfd958.md @@ -7,9 +7,9 @@ dashedName: step-110 # --description-- -In your `fightSlime` function, set `fighting` equal to `0` - the index of `slime` in the `monsters` array. Remember that you already declared `fighting` earlier in your code, so you do not need `let` or `const` here. +У своїй функції `fightSlime` встановіть для `fighting` значення `0` – індекс `slime` в масиві `monsters`. Пам’ятайте, що раніше ви вже оголосили `fighting` у своєму коді, тому тут вам не потрібні `let` чи `const`. -On the next line, call the `goFight` function. +У наступному рядку викличте функцію `goFight`. # --hints-- diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8dfcf7fb1044d2f478fd1.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8dfcf7fb1044d2f478fd1.md index f8ef6d5b0e0..06e332d0e61 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8dfcf7fb1044d2f478fd1.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8dfcf7fb1044d2f478fd1.md @@ -7,23 +7,23 @@ dashedName: step-111 # --description-- -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. +Дотримуючись того самого шаблону, використайте цей код у функціях `fightBeast` та `fightDragon`. Пам’ятайте, що `beast` знаходиться під індексом `1`, а `dragon` – під індексом `2`. Також видаліть виклик `console.log` зі своєї функції `fightDragon`. # --hints-- -You should set `fighting` to `1` in your `fightBeast` function. +Ви повинні встановити `fighting` на `1` у своїй функції `fightBeast`. ```js assert.match(fightBeast.toString(), /fighting\s*=\s*1;/); ``` -You should set `fighting` to `2` in your `fightDragon` function. +Ви повинні встановити `fighting` на `2` у своїй функції `fightDragon`. ```js assert.match(fightDragon.toString(), /fighting\s*=\s*2;/); ``` -You should remove the `console.log` from your `fightDragon` function. +Ви повинні видалити `console.log` зі своєї функції `fightDragon`. ```js assert.notMatch(fightDragon.toString(), /console\.log/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e0d1d0110b4ec421489f.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e0d1d0110b4ec421489f.md index c4318a8be23..0617e9b4393 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e0d1d0110b4ec421489f.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e0d1d0110b4ec421489f.md @@ -7,7 +7,7 @@ dashedName: step-112 # --description-- -At the end of your code, create two empty functions named `attack` and `dodge`. +У кінці свого коду створіть дві порожні функції під назвою `attack` та `dodge`. # --hints-- diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e1dc897df55108bcb5e8.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e1dc897df55108bcb5e8.md index e4272e7fead..698a8be12ef 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e1dc897df55108bcb5e8.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e1dc897df55108bcb5e8.md @@ -7,17 +7,17 @@ dashedName: step-114 # --description-- -In the `goFight` function, call your `update` function with the fourth object in `locations` as an argument. +У функції `goFight` викличте свою функцію `update` з четвертим об’єктом у `locations` як аргумент. # --hints-- -You should call `update` in your `goFight` function. +Ви повинні викликати `update` у своїй функції `goFight`. ```js assert.match(goFight.toString(), /update/); ``` -You should pass the fourth object in your `locations` array to your `update` call. +Ви повинні передати четвертий об’єкт у масиві `locations` до виклику `update`. ```js assert.match(goFight.toString(), /update\(locations\[3\]\)/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e21398ad61520edb724f.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e21398ad61520edb724f.md index b9de1e17a8d..6311a0c771e 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e21398ad61520edb724f.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e21398ad61520edb724f.md @@ -7,17 +7,17 @@ dashedName: step-115 # --description-- -Below your `update` call, set the `monsterHealth` to be the health of the current monster. You can get this value by accessing the `health` property of `monsters[fighting]`. +Під викликом `update` встановіть `monsterHealth` на здоров’я поточного монстра. Ви можете отримати це значення, звернувшись до властивості `health` об'єкта `monsters[fighting]`. # --hints-- -You should use bracket notation to access the `monsters` array at the `fighting` index. +Ви повинні використати дужкову нотацію, щоб отримати доступ до масиву `monsters` за індексом `fighting`. ```js assert.match(goFight.toString(), /monsters\[fighting\]/); ``` -You should assign the value of `monsters[fighting]` to the `monsterHealth` variable. +Ви повинні присвоїти значення `monsters[fighting]` змінній `monsterHealth`. ```js assert.match(goFight.toString(), /monsterHealth\s*=\s*monsters\[fighting\](\.health|\[('|")health\2\])/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e24c673b075317cc0b09.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e24c673b075317cc0b09.md index 9b6a1d3a7cd..25802abe447 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e24c673b075317cc0b09.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e24c673b075317cc0b09.md @@ -15,13 +15,13 @@ user.name.first = "Naomi"; # --hints-- -You should use dot notation to access the `style` property of `monsterStats`. +Ви повинні використати крапкову нотацію, щоб отримати доступ до властивості `style` для `monsterStats`. ```js assert.match(goFight.toString(), /monsterStats\.style/); ``` -You should use dot notation to access the `display` property of the `style` property. +Ви повинні використати крапкову нотацію, щоб отримати доступ до властивості `display` властивості `style`. ```js assert.match(goFight.toString(), /monsterStats\.style\.display/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e271f8e3d1541f9624ad.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e271f8e3d1541f9624ad.md index 97167016802..9f7a6308ddf 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e271f8e3d1541f9624ad.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e271f8e3d1541f9624ad.md @@ -11,7 +11,7 @@ Now set the `innerText` property of `monsterName` to be the `name` property of t # --hints-- -You should use dot notation to access the `innerText` property of `monsterName`. +Ви повинні використати крапкову нотацію, щоб отримати доступ до властивості `innerText` об'єкта `monsterName`. ```js assert.match(goFight.toString(), /monsterName\.innerText/); @@ -23,7 +23,7 @@ You should set the `innerText` property of `monsterName` to be the `name` value assert.match(goFight.toString(), /monsterName\.innerText\s*=\s*monsters\[fighting\]\.name/); ``` -You should use dot notation to access the `innerText` property of `monsterHealthText`. +Ви повинні використати крапкову нотацію, щоб отримати доступ до властивості `innerText` об'єкта `monsterHealthText`. ```js assert.match(goFight.toString(), /monsterHealthText\.innerText/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e35675c18c56354c08cf.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e35675c18c56354c08cf.md index 6f8489a998b..90046b7de72 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e35675c18c56354c08cf.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e35675c18c56354c08cf.md @@ -11,7 +11,7 @@ Now you can build the `attack` function. First, update the `text` message to say # --hints-- -You should use dot notation to access the `innerText` property of `text`. +Ви повинні використати крапкову нотацію, щоб отримати доступ до властивості `innerText` об'єкта `text`. ```js assert.match(attack.toString(), /text\.innerText/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e41e2f190c58404dd46e.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e41e2f190c58404dd46e.md index ba26addcbfb..a9f68fc2cdf 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e41e2f190c58404dd46e.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e41e2f190c58404dd46e.md @@ -11,20 +11,20 @@ On a new line, add the string `You attack it with your [weapon].` to the `text` # --hints-- -You should use dot notation to access the `innerText` property of `text` on a new line. +Ви повинні використати крапкову нотацію, щоб отримати доступ до властивості `innerText` об'єкта `text` в новому рядку. ```js const match = attack.toString().match(/text\.innerText/g); assert.lengthOf(match, 2); ``` -You should use compound assignment with `text.innerText`. +Ви повинні використати складене присвоювання із `text.innerText`. ```js assert.match(attack.toString(), /text\.innerText\s*\+=/); ``` -You should add the string `You attack it with your` to the `text.innerText` value. Remember that spacing matters. +You should add the string `You attack it with your` to the `text.innerText` value. Пам'ятайте, що інтервал має значення. ```js assert.match(attack.toString(), /text\.innerText\s*\+=\s*('|") You attack it with your \1/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e45cc600c3591cee671a.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e45cc600c3591cee671a.md index 9e73ed1ef7e..ddc7049361b 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e45cc600c3591cee671a.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e45cc600c3591cee671a.md @@ -7,17 +7,17 @@ dashedName: step-120 # --description-- -Next, set `health` to equal `health` minus the monster's level. Remember you can get this from the `monsters[fighting].level` property. +Потім встановіть `health` рівним `health` мінус рівень монстра. Пам’ятайте, що ви можете отримати це значення із властивості `monsters[fighting].level`. # --hints-- -You should use compound assignment with `health`. +Ви повинні використати складене присвоювання із `health`. ```js assert.match(attack.toString(), /health\s*-=/); ``` -You should subtract the monster's current level from `health`. +Ви повинні відняти поточний рівень монстра від `health`. ```js assert.match(attack.toString(), /health\s*-=\s*monsters\[fighting\]\.level/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e49f4df7af5ae2d7a616.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e49f4df7af5ae2d7a616.md index a34781abadf..00c9f54c0b2 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e49f4df7af5ae2d7a616.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e49f4df7af5ae2d7a616.md @@ -7,29 +7,29 @@ dashedName: step-121 # --description-- -Set `monsterHealth` to `monsterHealth` minus the power of the player's current weapon. Пам'ятайте, що ви маєте змінну `currentWeapon` та властивість `power`. +Встановіть `monsterHealth` на `monsterHealth` мінус потужність поточної зброї гравця. Пам'ятайте, що ви маєте змінну `currentWeapon` та властивість `power`. # --hints-- -You should use compound assignment to modify the `monsterHealth` variable. +Ви повинні використати складене присвоювання, щоб змінити змінну `monsterHealth`. ```js assert.match(attack.toString(), /monsterHealth\s*-=/); ``` -You should use bracket notation with `currentWeapon` to access `weapons`. +Ви повинні використати дужкову нотацію із `currentWeapon`, щоб отримати доступ до `weapons`. ```js assert.match(attack.toString(), /weapons\[currentWeapon\]/); ``` -You should use dot notation to access the `power` property of `weapons[currentWeapon]`. +Ви повинні використати крапкову нотацію, щоб отримати доступ до властивості `power` об'єкта `weapons[currentWeapon]`. ```js assert.match(attack.toString(), /weapons\[currentWeapon\]\.power/); ``` -You should subtract the `power` of the current weapon from `monsterHealth`. +Ви повинні відняти `power` поточної зброї від `monsterHealth`. ```js assert.match(attack.toString(), /monsterHealth\s*-=\s*weapons\[currentWeapon\]\.power/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e4dc6a60f85bf256a0cb.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e4dc6a60f85bf256a0cb.md index 49325efe364..ca826c5a998 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e4dc6a60f85bf256a0cb.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8e4dc6a60f85bf256a0cb.md @@ -27,19 +27,19 @@ You should add to the `weapons[currentWeapon].power` value. assert.match(attack.toString(), /monsterHealth\s*-=\s*weapons\[currentWeapon\]\.power\s*\+/); ``` -You should use `Math.floor()`. +Ви повинні використати `Math.floor()`. ```js assert.match(attack.toString(), /Math\.floor/); ``` -You should use `Math.random()`. +Ви повинні використати `Math.random()`. ```js assert.match(attack.toString(), /Math\.random/); ``` -You should multiply `Math.random()` by the value of `xp`. +Ви повинні помножити `Math.random()` на значення `xp`. ```js assert.match(attack.toString(), /Math\.random\(\)\s*\*\s*xp/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ed36d7a7915dfa444ba2.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ed36d7a7915dfa444ba2.md index 109d4c0e7ce..7c47c581528 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ed36d7a7915dfa444ba2.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ed36d7a7915dfa444ba2.md @@ -23,7 +23,7 @@ assert.match(attack.toString(), /healthText\.innerText/); assert.match(attack.toString(), /healthText\.innerText\s*=\s*health/); ``` -You should update `monsterHealthText.innerText`. +Ви повинні оновити `monsterHealthText.innerText`. ```js assert.match(attack.toString(), /monsterHealthText\.innerText/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8edd05e27cc668051686f.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8edd05e27cc668051686f.md index a58883f30bc..af6ab01e579 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8edd05e27cc668051686f.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8edd05e27cc668051686f.md @@ -7,7 +7,7 @@ dashedName: step-124 # --description-- -Add an `if` statement to check if `health` is less than or equal to `0`. If it is, call the `lose` function. +Додайте інструкцію `if`, щоб перевірити, чи `health` менше чи дорівнює `0`. Якщо так, викличте функцію `lose`. # --hints-- @@ -17,7 +17,7 @@ Add an `if` statement to check if `health` is less than or equal to `0`. If it i assert.match(attack.toString(), /if/); ``` -Your `if` statement should check if `health` is less than or equal to `0`. +Ваша інструкція `if` повинна перевіряти, чи `health` менше чи дорівнює `0`. ```js assert.match(attack.toString(), /if\s*\(health\s*<=\s*0\)/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ee154c8946678775c4a4.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ee154c8946678775c4a4.md index cee06a8fc8e..91defff789c 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ee154c8946678775c4a4.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ee154c8946678775c4a4.md @@ -7,7 +7,7 @@ dashedName: step-125 # --description-- -You can make an `else` statement conditional by using `else if`. At the end of your `if` statement, add an `else if` statement to check if `monsterHealth` is less than or equal to `0`. In your `else if`, call the `defeatMonster` function. +Ви можете зробити інструкцію `else` умовною, використавши `else if`. У кінці інструкції `if` додайте інструкцію `else if`, щоб перевірити, чи `monsterHealth` менше чи дорівнює `0`. У своїй `else if` викличте функцію `defeatMonster`. Ось приклад: @@ -27,13 +27,13 @@ if (num > 10) { assert.match(attack.toString(), /else if/); ``` -Your `else if` statement should check if `monsterHealth` is less than or equal to `0`. +Ваша інструкція `else if` повинна перевіряти, чи `monsterHealth` менше чи дорівнює `0`. ```js assert.match(attack.toString(), /else\s*if\s*\(\s*monsterHealth\s*<=\s*0\s*\)/); ``` -Your `else if` statement should call the `defeatMonster` function. +Ваша інструкція `else if` повинна викликати функцію `defeatMonster`. ```js assert.match(attack.toString(), /else\s*if\s*\(\s*monsterHealth\s*<=\s*0\s*\)\s*\{\s*defeatMonster/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ee71f018e968a056d369.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ee71f018e968a056d369.md index 8c6a163b9b0..26962a18323 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ee71f018e968a056d369.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ee71f018e968a056d369.md @@ -7,7 +7,7 @@ dashedName: step-126 # --description-- -At the end of your code, create the `defeatMonster` and `lose` functions. Leave them empty for now. +Наприкінці коду створіть функції `defeatMonster` та `lose`. Залиште їх поки що порожніми. # --hints-- diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8eec45f77bc69e8775294.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8eec45f77bc69e8775294.md index cc87fbe01c5..80753ac4af9 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8eec45f77bc69e8775294.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8eec45f77bc69e8775294.md @@ -7,11 +7,11 @@ dashedName: step-127 # --description-- -Inside the `dodge` function, set `text.innerText` equal to the string `You dodge the attack from the [monster]`. Replace `[monster]` with the name of the monster, using the `name` property. +Усередині функції `dodge` встановіть `text.innerText` рівним рядку `You dodge the attack from the [monster]`. Замініть `[monster]` назвою монстра, використовуючи властивість `name`. # --hints-- -You should assign the string `You dodge the attack from the` to the `text.innerText` property. Remember that spacing matters. +Ви повинні присвоїти рядок `You dodge the attack from the` до властивості `text.innerText`. Пам'ятайте, що інтервал має значення. ```js assert.match(dodge.toString(), /text\.innerText\s*=\s*('|")You dodge the attack from the \1/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8eefe2e68b66ac563816b.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8eefe2e68b66ac563816b.md index b6a6b915384..28644422d80 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8eefe2e68b66ac563816b.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8eefe2e68b66ac563816b.md @@ -13,7 +13,7 @@ Here is an example of setting `num` to `num` plus `5` * `8`: `num += 5 * 8`. Use # --hints-- -You should use compound assignment to modify `gold`. +Ви повинні використати складене присвоювання, щоб змінити `gold`. ```js assert.match(defeatMonster.toString(), /gold\s*\+=/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ef6a52292f6bdca4f6f8.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ef6a52292f6bdca4f6f8.md index 3e373fa85de..fc4a3ee300c 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ef6a52292f6bdca4f6f8.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ef6a52292f6bdca4f6f8.md @@ -7,17 +7,17 @@ dashedName: step-129 # --description-- -Set `xp` to `xp` plus the monster's level. +Встановіть `xp` на `xp` плюс рівень монстра. # --hints-- -You should use compound assignment to modify `xp`. +Ви повинні використати складене присвоювання, щоб змінити `xp`. ```js assert.match(defeatMonster.toString(), /xp\s*\+=/); ``` -You should add the monster's level to `xp`. +Ви повинні додати рівень монстра до `xp`. ```js assert.match(defeatMonster.toString(), /xp\s*\+=\s*monsters\[fighting\]\.level/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ef8f0c76a46cd221a68c.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ef8f0c76a46cd221a68c.md index 3d19907355b..cc7b99c064c 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ef8f0c76a46cd221a68c.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8ef8f0c76a46cd221a68c.md @@ -7,7 +7,7 @@ dashedName: step-130 # --description-- -Now update `goldText` and `xpText` to display the updated values. +Тепер оновіть `goldText` та `xpText`, щоб вони показували оновлені значення. # --hints-- diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8efb0e3ce826db8daf80f.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8efb0e3ce826db8daf80f.md index 29e0911ca1b..3b6728cb041 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8efb0e3ce826db8daf80f.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8efb0e3ce826db8daf80f.md @@ -7,7 +7,7 @@ dashedName: step-131 # --description-- -Finish the `defeatMonster` function by calling the `update` function with `locations[4]` as the argument. +Закінчіть функцію `defeatMonster`, викликавши функцію `update` з `locations[4]` як аргумент. # --hints-- @@ -17,7 +17,7 @@ Finish the `defeatMonster` function by calling the `update` function with `locat assert.match(defeatMonster.toString(), /update/); ``` -You should pass `locations[4]` as the argument. +Ви повинні передати `locations[4]` як аргумент. ```js assert.match(defeatMonster.toString(), /update\(locations\[4\]\)/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8eff21c0b0f6ebe5b8e38.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8eff21c0b0f6ebe5b8e38.md index cb028ee6686..3c3700138e8 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8eff21c0b0f6ebe5b8e38.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8eff21c0b0f6ebe5b8e38.md @@ -7,7 +7,7 @@ dashedName: step-132 # --description-- -Your `locations` array doesn't have a fifth element, so `locations[4]` doesn't work. Add a new object at the end of the `locations` array, following the same structure as the other objects. Set `name` to `kill monster`, set `button text` to an array with three `Go to town square` strings, set `button functions` to an array with three `goTown` variables, and set `text` to `The monster screams Arg! as it dies. You gain experience points and find gold.`. +Ваш масив `locations` не має п’ятого елемента, тому `locations[4]` не працює. Додайте новий об’єкт в кінець масиву `locations`, дотримуючись тієї самої структури, що й в інших об’єктів. Встановіть `name` на `kill monster`, встановіть `button text` на масив з трьома рядками `Go to town square`, встановіть `button functions` на масив з трьома змінними `goTown` та встановіть `text` на `The monster screams Arg! as it dies. You gain experience points and find gold.`. # --hints-- @@ -23,25 +23,25 @@ assert.lengthOf(locations, 5); assert.isObject(locations[4]); ``` -Your fifth `locations` value should have a `name` property with the value `kill monster`. +Ваше п’яте значення `locations` повинне мати властивість `name` зі значенням `kill monster`. ```js assert.equal(locations[4].name, 'kill monster'); ``` -Your fifth `locations` value should have a `button text` array with three `Go to town square` strings. +Ваше п'яте значення `locations` повинне мати масив `button text` із трьома рядками `Go to town square`. ```js assert.deepEqual(locations[4]["button text"], ['Go to town square', 'Go to town square', 'Go to town square']); ``` -Your fifth `locations` value should have a `button functions` array with three `goTown` variables. +Ваше п'яте значення `locations` повинне мати масив `button functions` із трьома змінними `goTown`. ```js assert.deepEqual(locations[4]["button functions"], [goTown, goTown, goTown]); ``` -Your fifth `locations` value should have a `text` property with the value `The monster screams Arg! as it dies. You gain experience points and find gold.`. +Ваше п’яте значення `locations` повинне мати властивість `text` зі значенням `The monster screams Arg! as it dies. You gain experience points and find gold.`. ```js assert.equal(locations[4].text, 'The monster screams Arg! as it dies. You gain experience points and find gold.'); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f06fb318666fef69f91e.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f06fb318666fef69f91e.md index b01dc351c97..2e8e4a91e61 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f06fb318666fef69f91e.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f06fb318666fef69f91e.md @@ -7,17 +7,17 @@ dashedName: step-133 # --description-- -The word `Arg!` should have quotes around it. Besides escaping quotes, there is another way you can include quotation marks inside a string. Change the double quotes around the string `The monster screams Arg! as it dies. You gain experience points and find gold.` to single quotes `'`, then add double quotes around `Arg!`. +Слово `Arg!` повинне бути в лапках. Крім екранування лапок існує інший спосіб, як можна включити лапки в рядок. Змініть подвійні лапки навколо рядка `The monster screams Arg! as it dies. You gain experience points and find gold.` на одинарні лапки `'`, потім додайте подвійні лапки навколо `Arg!`. # --hints-- -You should use single quotes around the string. +Ви повинні використати одинарні лапки навколо рядка. ```js assert.match(code, /'The monster screams "?Arg!"? as it dies. You gain experience points and find gold.'/); ``` -You should use double quotes around `Arg!`. +Ви повинні використати подвійні лапки навколо `Arg!`. ```js assert.equal(locations[4].text, 'The monster screams "Arg!" as it dies. You gain experience points and find gold.'); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f14fe6d1fc72454648c7.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f14fe6d1fc72454648c7.md index 1175b454392..2bf94d3c76c 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f14fe6d1fc72454648c7.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f14fe6d1fc72454648c7.md @@ -11,7 +11,7 @@ After a monster is defeated, the monster's stat box should no longer display. On # --hints-- -You should use `monsterStats.style.display` in the `update` function. +Ви повинні використати `monsterStats.style.display` у функції `update`. ```js assert.match(update.toString(), /monsterStats\.style\.display/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f1d5f5ddbf74c07f733b.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f1d5f5ddbf74c07f733b.md index f4953795ca9..2de72bcb04a 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f1d5f5ddbf74c07f733b.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f1d5f5ddbf74c07f733b.md @@ -7,7 +7,7 @@ dashedName: step-135 # --description-- -In the `lose` function, call the `update` function and pass in the sixth object of your `locations` array. Note that you haven't created this object just yet. +Викличте функцію `update` у функції `lose` та передайте шостий об’єкт свого масиву `locations`. Зверніть увагу, що ви ще не створили цей об'єкт. # --hints-- diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f20463b324759953edad.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f20463b324759953edad.md index f7a2d5b27b3..264632e72b9 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f20463b324759953edad.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f20463b324759953edad.md @@ -9,9 +9,9 @@ dashedName: step-136 В кінці коду створіть функцію `restart`. У цій функції встановіть `xp` на `0`, `health` на `100`, `gold` на `50`, `currentWeapon` на `0` та встановіть `inventory` на масив з рядком `stick`. -Also update the `innerText` properties of `goldText`, `healthText`, and `xpText` to their current values. +Також оновіть в `innerText` властивості `goldText`, `healthText` та `xpText` до їхніх поточних значень. -Finally, call the `goTown()` function. +Вкінці викличте функцію `goTown()`. # --hints-- @@ -45,7 +45,7 @@ assert.match(restart.toString(), /gold\s*=\s*50/); assert.match(restart.toString(), /currentWeapon\s*=\s*0/); ``` -Your `restart` function should set `inventory` to an array with the string `stick`. +Ваша функція `restart` повинна встановити `inventory` на масив з рядком `stick`. ```js assert.match(restart.toString(), /inventory\s*=\s*\[\s*('|")stick\1\s*\]/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f256b813a476cae51f49.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f256b813a476cae51f49.md index c85d990fb03..7f7c7d34fff 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f256b813a476cae51f49.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f256b813a476cae51f49.md @@ -7,9 +7,9 @@ dashedName: step-138 # --description-- -Back to your `attack` function - inside the `else if` block, create another `if` and `else` statement. If the player is fighting the dragon (`fighting` would be `2`), call the `winGame` function. Move the `defeatMonster()` call to the `else` block. +Повернемось до функції `attack`: всередині блоку `else if` створіть іншу інструкцію `if` та `else`. Якщо гравець бореться з драконом (`fighting` буде `2`), викличте функцію `winGame`. Перемістіть виклик `defeatMonster()` до блоку `else`. -Here is an example that checks if `num` is equal to `5`: +Ось приклад, який перевіряє, чи `num` дорівнює `5`: ```js if (num === 5) { @@ -28,14 +28,14 @@ const block = attack.toString().split("else if"); assert.include(block[1], "if"); ``` -Your new `if` statement should check if `fighting` is equal to `2`. +Ваша нова інструкція `if` повинна перевіряти, чи `fighting` дорівнює `2`. ```js const block = attack.toString().split("else if"); assert.match(block[1], /if\s*\(\s*fighting\s*===\s*2\s*\)/); ``` -You should call the `winGame` function in your `if` block. +Ви повинні викликати функцію `winGame` у своєму блоці `if`. ```js const block = attack.toString().split("else if"); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f2bc37675e77d5835235.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f2bc37675e77d5835235.md index c699393e9ee..2d0dda71889 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f2bc37675e77d5835235.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f2bc37675e77d5835235.md @@ -7,9 +7,9 @@ dashedName: step-139 # --description-- -JavaScript has a conditional operator called the ternary operator. This can be used as a one-line `if-else` expression. The syntax is: `condition ? true : false`. +У JavaScript є умовний оператор, який називається тернарним оператором. Його можна використати як однорядковий вираз `if-else`. Синтаксис такий: `condition ? true : false`. -Here is an example of an `if-else` expression changed to a ternary: +Ось приклад виразу `if-else`, зміненого на тернарний: ```js if (num > 5) { @@ -21,11 +21,11 @@ if (num > 5) { num > 5 ? bigger() : smaller(); ``` -Change your new `if-else` expression to a ternary. +Змініть свій новий вираз `if-else` на тернарний. # --hints-- -You should remove the `if` and `else` from your `else if` block. +Ви повинні вилучити `if` та `else` зі свого блоку `else if`. ```js const block = attack.toString().split("else if"); @@ -33,21 +33,21 @@ assert.notMatch(block[1], /if/); assert.notMatch(block[1], /else/); ``` -You should check if `fighting` is equal to `2`. +Ви повинні перевірити, чи `fighting` дорівнює `2`. ```js const block = attack.toString().split("else if"); assert.match(block[1], /fighting\s*===\s*2/); ``` -Using the ternary syntax, you should call `winGame` if `fighting` is equal to `2`. +Використовуючи тернарний синтаксис, ви повинні викликати `winGame`, якщо `fighting` дорівнює `2`. ```js const block = attack.toString().split("else if"); assert.match(block[1], /fighting\s*===\s*2\s*\?\s*winGame\(\)/); ``` -Using the ternary syntax, you should call `defeatMonster` if `fighting` is not equal to `2`. +Використовуючи тернарний синтаксис, ви повинні викликати `defeatMonster`, якщо `fighting` не дорівнює `2`. ```js const block = attack.toString().split("else if"); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f35bde1750791f58773f.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f35bde1750791f58773f.md index 82ae48037f4..d4796033c36 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f35bde1750791f58773f.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8f35bde1750791f58773f.md @@ -7,7 +7,7 @@ dashedName: step-140 # --description-- -After the `lose` function, create a function called `winGame`. Inside the `winGame` function, call the `update` function and pass in `locations[6]`. +Після функції `lose` створіть функцію під назвою `winGame`. Усередині функції `winGame` викличте функцію `update` та передайте `locations[6]`. # --hints-- @@ -17,7 +17,7 @@ After the `lose` function, create a function called `winGame`. Inside the `winGa assert.match(code, /function\s+winGame/); ``` -Your `winGame` function should call the `update` function and pass in `locations[6]`. +Ваша функція `winGame` повинна викликати функцію `update` та передавати `locations[6]`. ```js assert.match(winGame.toString(), /update\s*\(\s*locations\[6\]\s*\)/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a94114ce0b8918b487390f.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a94114ce0b8918b487390f.md index db6b92cfde8..ce2a09117e8 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a94114ce0b8918b487390f.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a94114ce0b8918b487390f.md @@ -7,7 +7,7 @@ dashedName: step-141 # --description-- -Додайте ще один об’єкт до масиву `locations`. Everything should be the same as the `lose` object, except the `name` should be `win` and the `text` should be `You defeat the dragon! YOU WIN THE GAME! 🎉`. +Додайте ще один об’єкт до масиву `locations`. Усе має бути таким самим, як і об’єкт `lose`, за винятком того, що `name` повинен бути `win`, а `text` повинен бути `You defeat the dragon! YOU WIN THE GAME! 🎉`. # --hints-- @@ -29,19 +29,19 @@ assert.isObject(locations[6]); assert.equal(locations[6].name, 'win'); ``` -Your seventh `locations` value should have a `button text` array with three `REPLAY?` strings. +Ваше сьоме значення `locations` повинне мати масив `button text` із трьома рядками `REPLAY?`. ```js assert.deepEqual(locations[6]["button text"], ['REPLAY?', 'REPLAY?', 'REPLAY?']); ``` -Your seventh `locations` value should have a `button functions` array with three `restart` variables. +Ваше сьоме значення `locations` повинне мати масив `button functions` із трьома змінними `restart`. ```js assert.deepEqual(locations[6]["button functions"], [restart, restart, restart]); ``` -Your seventh `locations` value should have a `text` property with the value `You defeat the dragon! YOU WIN THE GAME! 🎉`. +Ваше сьоме значення `locations` повинне мати властивість `text` зі значенням `You defeat the dragon! YOU WIN THE GAME! 🎉`. ```js assert.equal(locations[6].text, 'You defeat the dragon! YOU WIN THE GAME! 🎉'); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1d6736ba262cfa74344b.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1d6736ba262cfa74344b.md index 8c9be867da9..55fa82744cd 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1d6736ba262cfa74344b.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1d6736ba262cfa74344b.md @@ -7,7 +7,7 @@ dashedName: step-143 # --description-- -Below your `attack` function, create an empty function named `getMonsterAttackValue`. It should take `level` as a parameter. +Під функцією `attack` створіть порожню функцію під назвою `getMonsterAttackValue`. Вона повинна приймати `level` як параметр. # --hints-- @@ -17,7 +17,7 @@ Below your `attack` function, create an empty function named `getMonsterAttackVa assert.match(code, /function\s+getMonsterAttackValue/); ``` -Your `getMonsterAttackValue` should take `level` as a parameter. +Ваша `getMonsterAttackValue` повинна приймати `level` як параметр. ```js assert.match(code, /getMonsterAttackValue\(\s*level\s*\)/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1d9f535e102e4663e7a6.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1d9f535e102e4663e7a6.md index 3a4450e9fc2..297116f014d 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1d9f535e102e4663e7a6.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1d9f535e102e4663e7a6.md @@ -7,7 +7,7 @@ dashedName: step-144 # --description-- -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));`. +The attack of the monster will be based on the monster's `level` and the player's `xp`. Використайте `const` у функції `getMonsterAttackValue`, щоб створити змінну під назвою `hit`. Assign it the equation `(level * 5) - (Math.floor(Math.random() * xp));`. This will set the monster's attack to five times their `level` minus a random number between 0 and the player's `xp`. diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1e8ccd579330e097ce44.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1e8ccd579330e097ce44.md index 838c96a1af9..655108e4a4e 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1e8ccd579330e097ce44.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1e8ccd579330e097ce44.md @@ -7,19 +7,19 @@ dashedName: step-146 # --description-- -Functions run specific blocks of code when they are called, but they can also return a value. This value can be assigned to a variable and used elsewhere in your code. +Функції виконують певний блок коду під час виклику, але вони також можуть повернути значення. Це значення можна присвоїти змінній або використати будь-де інше у своєму коді. -Use the `return` keyword to return the value of `hit` at the end of the function. +Використайте ключове слово `return`, щоб повернути значення `hit` в кінці функції. # --hints-- -You should use the `return` keyword to return the value of `hit`. +Ви повинні використати ключове слово `return`, щоб повернути значення `hit`. ```js assert.match(getMonsterAttackValue, /return\s*hit/); ``` -Your function should return the expected value. +Ваша функція повинна повертати очікуване значення. ```js xp = 0; diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1eec891ed731db227a36.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1eec891ed731db227a36.md index 9562022f7b7..09d7164739b 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1eec891ed731db227a36.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1eec891ed731db227a36.md @@ -7,11 +7,11 @@ dashedName: step-147 # --description-- -If you play the game in its current state you might notice a bug. If your `xp` is high enough, the `getMonsterAttackValue` function will return a negative number, which will actually add to your total health when fighting a monster! +Якщо ви граєте в гру в її поточному стані, ви можете помітити помилку. Якщо ваш `xp` достатньо великий, функція `getMonsterAttackValue` поверне від’ємне число, яке насправді збільшить ваше загальне здоров’я під час бою з монстром! -In `getMonsterAttackValue`, change `return hit` to a ternary operator that returns `hit` if `hit` is greater than `0`, or returns `0` if it is not. +У `getMonsterAttackValue` змініть `return hit` на тернарний оператор, який повертає `hit`, якщо `hit` більше за `0` або повертає `0`, якщо ні. -Here is an example of returning a value based on `condition` with a ternary: +Ось приклад повернення значення на основі `condition` з тернарним: ```js return condition ? true : false; @@ -19,19 +19,19 @@ return condition ? true : false; # --hints-- -You should use a ternary to change the `return` value if `hit` is greater than `0`. +Ви повинні використати тернарний оператор, щоб змінити значення `return`, якщо `hit` більше за `0`. ```js assert.match(getMonsterAttackValue.toString(), /return\s+hit\s*>\s*0/); ``` -You should use a ternary to return `hit` if `hit` is greater than `0` +Ви повинні використати тернарний оператор, щоб повернути `hit`, якщо `hit` більше за `0` ```js assert.match(getMonsterAttackValue.toString(), /return\s+hit\s*>\s*0\s*\?\s*hit/); ``` -You should use a ternary to return `0` if `hit` is not greater than `0`. +Ви повинні використати тернарний оператор, щоб повернути `0`, якщо `hit` не більше за `0`. ```js assert.match(getMonsterAttackValue.toString(), /return\s+hit\s*>\s*0\s*\?\s*hit\s*:\s*0/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1fed3d4e873366ff3131.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1fed3d4e873366ff3131.md index ad7a2acf6b4..c4e32bfc074 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1fed3d4e873366ff3131.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa1fed3d4e873366ff3131.md @@ -7,11 +7,11 @@ dashedName: step-148 # --description-- -In your `attack` function, below the `health` variable create an `if` statement. Set the condition to call the `isMonsterHit` function. +Створіть інструкцію `if` під змінною `health` у своїй функції `attack`. Встановіть умову для виклику функції `isMonsterHit`. # --hints-- -You should add an `if` statement which calls `isMonsterHit` in the condition. +Ви повинні додати інструкцію `if`, яка викликає `isMonsterHit` в умові. ```js assert.match(attack.toString(), /if\s*\(\s*isMonsterHit\s*\(\s*\)/) diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa204c1e1d33348ff09944.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa204c1e1d33348ff09944.md index 5b1fe186370..27c501b1f9f 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa204c1e1d33348ff09944.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa204c1e1d33348ff09944.md @@ -7,11 +7,11 @@ dashedName: step-149 # --description-- -Move your `monsterHealth` assignment into your `if` block. +Перемістіть своє присвоювання `monsterHealth` у свій блок `if`. # --hints-- -You should move your `monsterHealth -= weapons[currentWeapon].power + Math.floor(Math.random() * xp) + 1` into your `if` block. +Ви повинні перемістити `monsterHealth -= weapons[currentWeapon].power + Math.floor(Math.random() * xp) + 1` у свій блок `if`. ```js assert.match(attack.toString(), /if\s*\(isMonsterHit\(\)\s*\)\s*\{\s*monsterHealth\s*-=\s*weapons\[currentWeapon\]\.power\s*\+\s*Math\.floor\(Math\.random\(\)\s*\*\s*xp\)\s*\+\s*1/) diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa20e9cf1be9358f5aceae.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa20e9cf1be9358f5aceae.md index ae8a6d45ab0..a6ca0b9a36d 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa20e9cf1be9358f5aceae.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa20e9cf1be9358f5aceae.md @@ -7,17 +7,17 @@ dashedName: step-150 # --description-- -Додайте інструкцію `else` до своєї інструкції `if`. In the `else` statement, use the `+=` operator to add the text `You miss.` to the end of `text.innerText`. +Додайте інструкцію `else` до своєї інструкції `if`. Використайте оператор `+=` в інструкції `else`, щоб додати текст `You miss.` в кінець `text.innerText`. # --hints-- -You should add an `else` block after your `if (isMonsterHit())` block. +Ви повинні додати блок `else` після свого блоку `if (isMonsterHit())`. ```js assert.match(attack.toString(), /if\s*\(isMonsterHit\(\)\s*\)\s*\{\s*monsterHealth\s*-=\s*weapons\[currentWeapon\]\.power\s*\+\s*Math\.floor\(Math\.random\(\)\s*\*\s*xp\)\s*\+\s*1;\s*\}\s*else/) ``` -You should add the text `You miss.` to the end of `text.innerText`. Remember to use compound assignment. +Додайте текст `You miss.` у кінець `text.innerText`. Не забудьте використати складене присвоювання. ```js assert.match(attack.toString(), /if\s*\(isMonsterHit\(\)\s*\)\s*\{\s*monsterHealth\s*-=\s*weapons\[currentWeapon\]\.power\s*\+\s*Math\.floor\(Math\.random\(\)\s*\*\s*xp\)\s*\+\s*1;\s*\}\s*else\s*\{\s*text\.innerText\s*\+=\s*('|")\sYou miss\.\1/) diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2136fc49b836dfedb959.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2136fc49b836dfedb959.md index 67149d2cfd1..c166d9e3666 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2136fc49b836dfedb959.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2136fc49b836dfedb959.md @@ -7,7 +7,7 @@ dashedName: step-151 # --description-- -Now create the `isMonsterHit` function. This will return a boolean value (true or false) to be used in your `if` statement. Return the result of the comparison `Math.random() > .2`. +Тепер створіть функцію `isMonsterHit`. Це поверне булеве значення (true або false) для використання в інструкції `if`. Поверніть результат порівняння `Math.random() > .2`. # --hints-- @@ -17,7 +17,7 @@ Now create the `isMonsterHit` function. This will return a boolean va assert.match(code, /function\s+isMonsterHit/); ``` -Your `isMonsterHit` function should return the result of the comparison `Math.random() > .2`. +Ваша функція `isMonsterHit` повинна повертати результат порівняння `Math.random() > .2`. ```js assert.match(isMonsterHit.toString(), /return\s*Math\.random\(\)\s*>\s*0?\.2/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa25fcb5837d43b4d9873d.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa25fcb5837d43b4d9873d.md index af4c526ffee..d5125224a0d 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa25fcb5837d43b4d9873d.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa25fcb5837d43b4d9873d.md @@ -7,7 +7,7 @@ dashedName: step-160 # --description-- -Додайте ще один об’єкт до свого масиву `locations`. Set `name` to `easter egg`, set `button text` to an array with the strings `2`, `8`, and `Go to town square?`, set `button functions` to an array with the variables `pickTwo`, `pickEight`, and `goTown`, and `text` to `You find a secret game. Pick a number above. Ten numbers will be randomly chosen between 0 and 10. If the number you choose matches one of the random numbers, you win!`. +Додайте ще один об’єкт до свого масиву `locations`. Встановіть `name` на `easter egg`, встановіть `button text` на масив з рядками `2`, `8` та `Go to town square?`, встановіть `button functions` на масив зі змінними `pickTwo`, `pickEight` та `goTown` і встановіть `text` на `You find a secret game. Pick a number above. Ten numbers will be randomly chosen between 0 and 10. If the number you choose matches one of the random numbers, you win!`. # --hints-- @@ -29,19 +29,19 @@ assert.isObject(locations[7]); assert.equal(locations[7].name, "easter egg"); ``` -Your eighth `locations` value should have a `button text` array with the strings `2`, `8`, and `Go to town square?`. +Ваше восьме значення `locations` повинне мати `button text` як масив з рядками `2`, `8` та `Go to town square?`. ```js assert.deepEqual(locations[7]["button text"], ["2", "8", "Go to town square?"]); ``` -Your eighth `locations` value should have a `button functions` an array with the variables `pickTwo`, `pickEight`, and `goTown`. +Ваше восьме значення `locations` повинне мати `button functions` як масив зі змінними `pickTwo`, `pickEight` та `goTown`. ```js assert.deepEqual(locations[7]["button functions"], [pickTwo, pickEight, goTown]); ``` -Your eighth `locations` value should have a `text` property with the value `You find a secret game. Pick a number above. Ten numbers will be randomly chosen between 0 and 10. If the number you choose matches one of the random numbers, you win!`. +Ваше восьме значення `locations` повинне мати властивість `text` зі значенням `You find a secret game. Pick a number above. Ten numbers will be randomly chosen between 0 and 10. If the number you choose matches one of the random numbers, you win!`. ```js assert.equal(locations[7].text, "You find a secret game. Pick a number above. Ten numbers will be randomly chosen between 0 and 10. If the number you choose matches one of the random numbers, you win!"); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa264d23cdaa45a20efada.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa264d23cdaa45a20efada.md index c5573ab6b9f..809660e5b28 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa264d23cdaa45a20efada.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa264d23cdaa45a20efada.md @@ -7,11 +7,11 @@ dashedName: step-162 # --description-- -After your `numbers` array, create a `while` loop. A while loop accepts a condition, and will run the code in the block until the condition is no longer true. +Після масиву `numbers` створіть цикл `while`. Цикл while приймає умову та виконує код до того моменту, як умова перестане бути істинною. -Your `while` loop should run while `numbers.length` is less than `10`. +Ваш цикл `while` повинен виконуватись, поки `numbers.length` менше за `10`. -Here is an example of a `while` loop that runs while `i` is less than five. +Ось приклад циклу `while`, який виконується, поки `i` менше ніж п'ять. ```js while (i < 5) { @@ -21,13 +21,13 @@ while (i < 5) { # --hints-- -Your `pick` function should have a `while` loop. +Ваша функція `pick` повинна мати цикл `while`. ```js assert.match(pick.toString(), /while\s*\(/); ``` -Your `while` loop should run while `numbers.length < 10`. +Ваш цикл `while` повинен виконуватись, поки `numbers.length < 10`. ```js assert.match(pick.toString(), /while\s*\(\s*numbers.length\s*<\s*10\s*\)/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa26cca3cd3d46c431e73b.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa26cca3cd3d46c431e73b.md index c2677db5a09..8887aca1cb4 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa26cca3cd3d46c431e73b.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa26cca3cd3d46c431e73b.md @@ -7,23 +7,23 @@ dashedName: step-163 # --description-- -Inside your `while` loop, push a random number between 0 and 10 to the end of the `numbers` array. You can create this random number with `Math.floor(Math.random() * 11)`. +Всередині циклу `while` додайте випадкове число від 0 до 10 в кінці масиву `numbers`. Випадкове число можна створити за допомогою `Math.floor(Math.random() * 11)`. # --hints-- -You should use the `push` method to add a random number to the end of the `numbers` array. +Ви повинні використати метод `push`, щоб додати випадкове число в кінець масиву `numbers`. ```js assert.match(pick.toString(), /numbers\.push\(/); ``` -You should use `Math.floor(Math.random() * 11)` to create the random number. +Ви повинні використати `Math.floor(Math.random() * 11)`, щоб створити випадкове число. ```js assert.match(pick.toString(), /Math\.floor\(Math\.random\(\)\s*\*\s*11\s*\)/); ``` -You should `push` the result of `Math.floor(Math.random() * 11)` to the end of the `numbers` array. +Ви повинні `push` (додати) результат `Math.floor(Math.random() * 11)` в кінець масиву `numbers`. ```js assert.match(pick.toString(), /numbers\.push\(\s*Math\.floor\(Math\.random\(\)\s*\*\s*11\s*\)\s*\)/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa27227399d647e1c37a3c.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa27227399d647e1c37a3c.md index 9f0749456c9..52fe41401ea 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa27227399d647e1c37a3c.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa27227399d647e1c37a3c.md @@ -7,11 +7,11 @@ dashedName: step-164 # --description-- -After the `while` loop, set `text.innerText` to equal `You picked [guess]. Here are the random numbers:`. Replace `guess` with the player's guess. +Встановіть `text.innerText` на `You picked [guess]. Here are the random numbers:` після циклу `while`. Замініть `guess` на здогадку гравця. # --hints-- -Ви повинні встановити `text.innerText` на рядок `You picked`. Remember that spacing matters. +Ви повинні встановити `text.innerText` на рядок `You picked`. Пам'ятайте, що інтервал має значення. ```js assert.match(pick.toString(), /text\.innerText\s*=\s*('|")You picked \1/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa287434dc284cea01157c.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa287434dc284cea01157c.md index 04e5018ea5b..88ddb4d6812 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa287434dc284cea01157c.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa287434dc284cea01157c.md @@ -9,7 +9,7 @@ dashedName: step-168 The second statement in a `for` loop, the condition statement, is evaluated at the beginning of every loop iteration. The loop will continue as long as the condition evaluates to be true. -We want the loop to run 10 times, so change `x < 5` to `i < 10`. +Цикл повинен виконуватись 10 раз, тому змініть `x < 5` на `i < 10`. # --hints-- diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28bbd6323e4dfb3ac43e.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28bbd6323e4dfb3ac43e.md index 1cf2c6f7538..f3d363e452f 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28bbd6323e4dfb3ac43e.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28bbd6323e4dfb3ac43e.md @@ -13,7 +13,7 @@ Since we changed the initialization statement to use `i` instead of `x`, change # --hints-- -You should change your final expression to `i++`. +Ви повинні змінити кінцевий вираз на `i++`. ```js assert.match(pick.toString(), /for\s*\(\s*(let|var)\s*i\s*=\s*0\s*;\s*i\s*<\s*10\s*;\s*i\+\+\s*\)/) diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28fb651bf14efa2dbb16.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28fb651bf14efa2dbb16.md index 0a9e310450e..b6531980f97 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28fb651bf14efa2dbb16.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa28fb651bf14efa2dbb16.md @@ -11,13 +11,13 @@ Now you can write the logic to run in the loop. Inside your `for` loop, use the # --hints-- -You should use compound assignment to add to the end of `text.innerText`. +Ви повинні використати складене присвоювання, щоб додати в кінець `text.innerText`. ```js assert.match(pick.toString(), /text\.innerText\s*\+=/); ``` -You should use bracket notation to access `numbers[i]`. +Ви повинні використати дужкову нотацію, щоб отримати доступ до `numbers[i]`. ```js assert.match(pick.toString(), /numbers\[i\]/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2999ec27ec516655eba6.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2999ec27ec516655eba6.md index d0558037a6d..02364eb9a5b 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2999ec27ec516655eba6.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2999ec27ec516655eba6.md @@ -7,23 +7,23 @@ dashedName: step-172 # --description-- -Inside the `if` expression, add the string `Right! You win 20 gold!` to the end of `text.innerText`. Also, add `20` to the value of `gold` and update the `goldText.innerText`. +Всередині виразу `if` додайте рядок `Right! You win 20 gold!` в кінці `text.innerText`. Також додайте `20` до значення `gold` та оновіть `goldText.innerText`. # --hints-- -You should use compound assignment to add the string `Right! You win 20 gold!` to the end of `text.innerText`. +Ви повинні використати складене присвоювання, щоб додати рядок `Right! You win 20 gold!` в кінці `text.innerText`. ```js assert.match(pick.toString(), /text\.innerText\s*\+=\s*('|")Right! You win 20 gold!\1/); ``` -You should use compound assignment to add `20` to the value of `gold`. +Ви повинні використати складене присвоювання, щоб додати `20` до значення `gold`. ```js assert.match(pick.toString(), /gold\s*\+=\s*20/); ``` -You should update the `goldText.innerText` to reflect the new value of `gold`. +Ви повинні оновити `goldText.innerText`, щоб відповідати новому значенню `gold`. ```js assert.match(pick.toString(), /goldText\.innerText\s*\=\s*gold/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa29d8f8f88152c91350ca.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa29d8f8f88152c91350ca.md index 1e279600dc1..5d1f7d5d85b 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa29d8f8f88152c91350ca.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa29d8f8f88152c91350ca.md @@ -7,29 +7,29 @@ dashedName: step-173 # --description-- -Now add an `else` expression. Inside, add `Wrong! You lose 10 health!` to the end of `text.innerText`. Subtract `10` from `health` and update `healthText.innerText`. +Тепер додайте вираз `else`. Всередині додайте `Wrong! You lose 10 health!` в кінці `text.innerText`. Відніміть `10` від `health` та оновіть `healthText.innerText`. # --hints-- -You should add an `else` block. +Ви повинні додати блок `else`. ```js assert.match(pick.toString(), /else\s*\{/); ``` -Your `else` block should use compound assignment to add `Wrong! You lose 10 health!` to the end of `text.innerText`. +Ваш блок `else` повинен використовувати складене присвоювання, щоб додати `Wrong! You lose 10 health!` в кінці `text.innerText`. ```js assert.match(pick.toString(), /text\.innerText\s*\+=\s*('|")Wrong! You lose 10 health!\1/); ``` -Your `else` block should use compound assignment to subtract `10` from `health`. +Ваш блок `else` повинен використовувати складене присвоювання, щоб відняти `10` від `health`. ```js assert.match(pick.toString(), /health\s*-=\s*10/); ``` -Your `else` block should update the `healthText.innerText` to reflect the new value of `health`. +Ваш блок `else` повинен оновити `healthText.innerText`, щоб відповідати новому значенню `health`. ```js assert.match(pick.toString(), /healthText\.innerText\s*=\s*health/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2aec2f09d454253aad6c.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2aec2f09d454253aad6c.md index 7b65ce68541..3601b9ddcf6 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2aec2f09d454253aad6c.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2aec2f09d454253aad6c.md @@ -7,7 +7,7 @@ dashedName: step-174 # --description-- -Since you subtracted health from the player, you need to check if the player's `health` is less than or equal to `0`. If it is, call the `lose` function. +Оскільки ви відняли здоров’я від гравця, вам потрібно перевірити, чи `health` менше чи дорівнює `0`. Якщо так, викличте функцію `lose`. # --hints-- @@ -18,7 +18,7 @@ const match = pick.toString().match(/if/g); assert.isAtLeast(match.length, 2); ``` -Your `if` statement should check if the player's `health` is less than or equal to `0`. +Ваша інструкція `if` повинна перевіряти, чи значення `health` менше чи дорівнює `0`. ```js assert.match(pick.toString(), /if\s*\(\s*health\s*<=\s*0\s*\)/); diff --git a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62ba17beef16c563069a65d8.md b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62ba17beef16c563069a65d8.md index 9531778803e..6af59441dca 100644 --- a/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62ba17beef16c563069a65d8.md +++ b/curriculum/challenges/ukrainian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62ba17beef16c563069a65d8.md @@ -41,7 +41,7 @@ Your sixth `locations` value should have a `button functions` array with three ` assert.deepEqual(locations[5]["button functions"], [restart, restart, restart]); ``` -Your sixth `locations` value should have a `text` property with the value `You die. ☠️`. +Ваше шосте значення `locations` повинне мати властивість `text` зі значенням `You die. ☠️`. ```js assert.equal(locations[5].text, 'You die. ☠️');