From 80da6b4e0ab74ad129d61cafe12cdf3ba1ccf8f3 Mon Sep 17 00:00:00 2001 From: camperbot Date: Tue, 23 May 2023 19:30:06 +0530 Subject: [PATCH] chore(i18n,learn): processed translations (#50480) --- .../6145f685797bd30df9784e8c.md | 4 ++-- .../5f3c866de7a5b784048f94b1.md | 2 +- .../5f3ef6e0e9629bad967cd71e.md | 2 +- .../5f45b4c81cea7763550e40df.md | 2 +- .../61764fdda535587e1fefb3aa.md | 2 +- .../61b093179e7fc020b43b1bb3.md | 4 ++-- .../6148bd62bbb8c83a5f1fc1b3.md | 2 +- .../5dfb6250eacea3f48c6300b2.md | 4 ++-- .../5f05a1d8e233dff4a68508d8.md | 8 ++++---- .../5f07be6ef7412fbad0c5626b.md | 4 ++-- .../60f1a9cbd23023082e149fee.md | 6 +++--- .../60facde2d0dc61085b41063f.md | 4 ++-- .../60fad8e6148f310bba7890b1.md | 2 +- .../60fc236dc04532052926fdac.md | 6 +++--- .../61fd7648a7ba2e5882436831.md | 6 +++--- .../61fd990577d8227dd93fbeeb.md | 14 +++++++------- .../612e7d1c29fb872d6384379c.md | 4 ++-- .../60a3e3396c7b40068ad69975.md | 8 ++++---- .../60a3e3396c7b40068ad6998f.md | 2 +- .../615f575b50b91e72af079480.md | 6 +++--- .../616965351e74d4689eb6de30.md | 2 +- .../64067c1041a80c366b852407.md | 12 ++++++------ .../6406adbca6b41d3d7cef85ab.md | 10 +++++----- .../6410da6df463a606dfade96f.md | 12 ++++++------ .../6410e1b58efc2c091a13bcd9.md | 10 +++++----- .../6410e70c84bb660b4d2a5ea1.md | 12 ++++++------ .../6410edb33eeaf50dd9a22ab4.md | 4 ++-- .../64112cea9e6ac22a314628b0.md | 4 ++-- .../64112fa63a0f812c66499a54.md | 8 ++++---- .../641130423e5f512d8972dae1.md | 8 ++++---- 30 files changed, 87 insertions(+), 87 deletions(-) diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145f685797bd30df9784e8c.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145f685797bd30df9784e8c.md index 181d4c9160e..57a1db7d8f3 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145f685797bd30df9784e8c.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145f685797bd30df9784e8c.md @@ -7,7 +7,7 @@ dashedName: step-41 # --description-- -Do not forget to give your `form` a submit button with the text `Send`. +Denke daran, deiner `form` einen Bestätigungsbutton mit dem Text `Send` zu geben. # --hints-- @@ -17,7 +17,7 @@ Du solltest entweder ein `button`- oder ein `input`-Element hinzufügen. assert.exists(document.querySelector('button') || document.querySelector('main > input') || document.querySelector('form > input')); ``` -You should place the submit button within the `form` element. +Du solltest den Bestätigungsbutton innerhalb des `form`-Elements platzieren. ```js assert.exists(document.querySelector('form > button') || document.querySelector('form > input')); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3c866de7a5b784048f94b1.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3c866de7a5b784048f94b1.md index cae6d35884f..34bbb1cfbec 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3c866de7a5b784048f94b1.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3c866de7a5b784048f94b1.md @@ -9,7 +9,7 @@ dashedName: step-36 So in etwa ist es das, was du möchtest, aber jetzt wäre es noch schön, wenn die Sorte und der Preis sich in der gleichen Zeile befinden würden. `p`-Elemente sind block-level-Elemente, sie nehmen also die gesamte Breite des übergeordneten Elements in Anspruch. -To get them on the same line, you need to apply some styling to the `p` elements so they behave more like inline elements. To do that, start by adding a `class` attribute with the value `item` to the first `article` element under the `Coffee` heading. +Um sie auf die gleiche Zeile zu bringen, musst du die `p`-Elemente ein wenig gestalten, damit sie sich mehr wie inline-Elemente verhalten. To do that, start by adding a `class` attribute with the value `item` to the first `article` element under the `Coffee` heading. # --hints-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3ef6e0e9629bad967cd71e.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3ef6e0e9629bad967cd71e.md index f7ba82cbdc8..18d95912006 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3ef6e0e9629bad967cd71e.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3ef6e0e9629bad967cd71e.md @@ -7,7 +7,7 @@ dashedName: step-59 # --description-- -You can add a fallback value for the font-family by adding another font name separated by a comma. Fallbacks werden in Instanzen verwendet, in denen der Start nicht gefunden wurde/verfügbar ist. +Du kannst einen fallback-Wert für die Schriftfamilie hinzufügen, indem du einen weiteren durch ein Komma getrennten Schriftnamen hinzufügst. Fallbacks werden in Instanzen verwendet, in denen der Start nicht gefunden wurde/verfügbar ist. Füge die Fallback-Schriftart `serif` nach der `Impact`-Schriftart hinzu. diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f45b4c81cea7763550e40df.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f45b4c81cea7763550e40df.md index c0a831b0c43..c6691b2d88f 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f45b4c81cea7763550e40df.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f45b4c81cea7763550e40df.md @@ -7,7 +7,7 @@ dashedName: step-83 # --description-- -To keep with the same color theme you have already been using (black and brown), change the color for when the link is visited to `black` and use `brown` for when the link is actually clicked. +Um bei dem gleichen Farbschema zu bleiben, das du bereits verwendet hast (schwarz und braun), ändere die Farbe für den Fall, dass der Link besucht wird zu `black` und verwende `brown` für den Fall, dass der Link tatsächlich angeklickt wird. # --hints-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61764fdda535587e1fefb3aa.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61764fdda535587e1fefb3aa.md index 1af61641e2b..f963636cecc 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61764fdda535587e1fefb3aa.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61764fdda535587e1fefb3aa.md @@ -11,7 +11,7 @@ Add the class `two` to the second marker `div`, and add the class `three` to the # --hints-- -You should add the class `two` to the second marker `div` element in the `container` `div`. +Du solltest die Klasse `two` zum zweiten `div`-Markierungselement in dem `container` `div` hinzufügen. ```js const containerSecondChild = [...document.querySelector('.container')?.children][1]; diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61b093179e7fc020b43b1bb3.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61b093179e7fc020b43b1bb3.md index 5bff8be6d8f..e5741002aec 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61b093179e7fc020b43b1bb3.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61b093179e7fc020b43b1bb3.md @@ -7,11 +7,11 @@ dashedName: step-73 # --description-- -Opacity describes how opaque, or non-transparent, something is. For example, a solid wall is opaque, and no light can pass through. But a drinking glass is much more transparent, and you can see through the glass to the other side. +Opacity beschreibt, wie blickdicht oder undurchsichtig etwas ist. For example, a solid wall is opaque, and no light can pass through. But a drinking glass is much more transparent, and you can see through the glass to the other side. With the CSS `opacity` property, you can control how opaque or transparent an element is. With the value `0`, or 0%, the element will be completely transparent, and at `1.0`, or 100%, the element will be completely opaque like it is by default. -In the `.sleeve` CSS rule, set the `opacity` property to `0.5`. +Setze in der `.sleeve`-CSS-Regel die `opacity`-Eigenschaft auf `0.5`. # --hints-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-grid-by-building-a-magazine/6148bd62bbb8c83a5f1fc1b3.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-grid-by-building-a-magazine/6148bd62bbb8c83a5f1fc1b3.md index 498ecb9e8e7..a16c492a5a4 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-grid-by-building-a-magazine/6148bd62bbb8c83a5f1fc1b3.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-grid-by-building-a-magazine/6148bd62bbb8c83a5f1fc1b3.md @@ -11,7 +11,7 @@ Create a `.hero-title` selector and give it a `text-align` property set to `cent # --hints-- -You should have a `.hero-title` selector. +Du solltest einen `.hero-title`-Selektor haben. ```js assert(new __helpers.CSSHelp(document).getStyle('.hero-title')); 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 275ba75e33b..77408176ded 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 @@ -17,7 +17,7 @@ And its `alt` attribute value to: # --hints-- -There should be an `img` element right after the closing `` tag. +Es sollte ein `img`-Element direkt nach dem schließenden ``-Tag geben. ```js assert($('section')[1].lastElementChild.nodeName === 'IMG'); @@ -40,7 +40,7 @@ assert( ); ``` -The new image does not have an `src` attribute. Check that there is a space after the opening tag's name and/or there are spaces before all attribute names. +Das neue Bild besitzt kein `src`-Attribut. Check that there is a space after the opening tag's name and/or there are spaces before all attribute names. ```js assert($('section')[1].lastElementChild.hasAttribute('src')); 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 5a0fad1a3cd..20071a71b1c 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 @@ -7,7 +7,7 @@ dashedName: step-47 # --description-- -Create another radio button below the first one. Nest it inside a `label` element with `Outdoor` as the `label` text. Give the radio button an `id` attribute with `outdoor` as the value. +Erstelle einen weiteren Radio-Button unterhalb des ersten. Nest it inside a `label` element with `Outdoor` as the `label` text. Gib dem Radio-Button ein `id`-Attribut mit `outdoor` als Wert. # --hints-- @@ -17,7 +17,7 @@ Only the original `Indoor` radio button `input` should have an `id` set to `indo assert(document.querySelectorAll('#indoor').length < 2); ``` -You should not make any changes to the `Indoor` radio button. You can restart the step to get the original HTML back if needed. +Du solltest keine Änderungen an dem `Indoor`-Radio-Button vornehmen. You can restart the step to get the original HTML back if needed. ```js const indoorInput = document.querySelectorAll('#indoor'); @@ -29,7 +29,7 @@ assert( ); ``` -You should add exactly one new `input` element nested in a new `label` element. Make sure your new `label` has both an opening and closing tag. +Du solltest genau ein neues `input`-Element hinzufügen, das in ein neues `label`-Element eingebettet ist. Make sure your new `label` has both an opening and closing tag. ```js assert(document.querySelectorAll('label input').length === 2); @@ -75,7 +75,7 @@ The label text for your new radio button must be exactly `Outdoor`. This include assert(document.querySelector('label > input[id="outdoor"]')?.nextSibling?.nodeValue?.replace(/^\s+|\s+$/g, '') === 'Outdoor'); ``` -Your new radio button and label should be immediately below/after the `Indoor` radio button and label. There should be no other tags between them. +Your new radio button and label should be immediately below/after the `Indoor` radio button and label. Es sollte keine weiteren Tags zwischen ihnen geben. ```js assert(code.match(/<\/label>\s*\s*]+>\s*Outdoor/i)); 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 fc160b9a0fe..755c459f814 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 @@ -13,7 +13,7 @@ Take your `h2`, comment, `p`, and anchor (`a`) elements and nest them in a `sect # --hints-- -Your `section` element should have an opening tag. Opening tags have the following syntax: ``. +Your `section` element should have an opening tag. Öffnende Tags haben die folgende Syntax: ``. ```js assert(document.querySelector('section')); @@ -41,7 +41,7 @@ const foundElements = childrenOfSection.filter((child) => { assert(foundElements.length === 3); ``` -The `h1` element should not be nested in the `section` element. +Das `h1`-Element sollte nicht im `section`-Element verschachtelt werden. ```js const childrenOfSection = [...document.querySelector('section').childNodes]; diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f1a9cbd23023082e149fee.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f1a9cbd23023082e149fee.md index 8ddd45f13aa..ac3ded24c9f 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f1a9cbd23023082e149fee.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f1a9cbd23023082e149fee.md @@ -7,11 +7,11 @@ dashedName: step-10 # --description-- -That is better. Now, make the background easy on the eyes, by changing the `body` `background-color` to `#1b1b32`. Then, to see the text, change the `color` to `#f5f6f7`. +Das ist besser. Now, make the background easy on the eyes, by changing the `body` `background-color` to `#1b1b32`. Ändere dann, um den Text zu sehen, die `color` auf `#f5f6f7`. # --hints-- -You should add the `background-color` within the `body` element selector. +Du solltest innerhalb des `body`-Elementselektors die `background-color` hinzufügen. ```js assert.isNotEmpty(new __helpers.CSSHelp(document).getStyle('body')?.backgroundColor); @@ -23,7 +23,7 @@ You should give the `background-color` a value of `#1b1b32`. assert.equal(new __helpers.CSSHelp(document).getStyle('body')?.backgroundColor, 'rgb(27, 27, 50)'); ``` -You should add the `color` within the `body` element selector. +Du solltest die `color` innerhalb des `body`-Elementselektors hinzufügen. ```js assert.isNotEmpty(new __helpers.CSSHelp(document).getStyle('body')?.color); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60facde2d0dc61085b41063f.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60facde2d0dc61085b41063f.md index f107a9e1dd3..fbe897a88c0 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60facde2d0dc61085b41063f.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60facde2d0dc61085b41063f.md @@ -7,9 +7,9 @@ dashedName: step-37 # --description-- -The `textarea` element acts like an `input` element of type `text`, but comes with the added benefit of being able to receive multi-line text, and an initial number of text rows and columns. +Das `textarea`-Element wirkt wie ein `input`-Element des Typs `text`, aber bietet den zusätzlichen Vorteil, dass du mehrzeiligen Text und eine ursprüngliche Anzahl an Textzeilen und Spalten empfangen kannst. -Users will be able to register with a bio. Add a `label` with the text `Provide a bio:` at the end of the `fieldset`. Add a `textarea` element inside the `label` element. Note that the `textarea` requires a closing tag. +Benutzer werden sich mit einer Bio registrieren können. Add a `label` with the text `Provide a bio:` at the end of the `fieldset`. Add a `textarea` element inside the `label` element. Note that the `textarea` requires a closing tag. # --hints-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad8e6148f310bba7890b1.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad8e6148f310bba7890b1.md index 49a37752472..5f1673494c1 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad8e6148f310bba7890b1.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fad8e6148f310bba7890b1.md @@ -11,7 +11,7 @@ Center the `h1` and `p` elements by giving them a `margin` of `1em auto`. Then, # --hints-- -You should use a comma-separated element selector to style the `h1` and `p` elements. +Du solltest einen Elementselektor, der mit Kommas getrennt ist, verwenden, um die `h1`- und `p`-Elemente zu gestalten. ```js assert.exists(new __helpers.CSSHelp(document).getStyle('h1, p')); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fc236dc04532052926fdac.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fc236dc04532052926fdac.md index ba130b3e699..8bfbad33f96 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fc236dc04532052926fdac.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fc236dc04532052926fdac.md @@ -7,13 +7,13 @@ dashedName: step-52 # --description-- -If you look close enough, you will notice the `.inline` elements are too high on the line. +Wenn du genau hinschaust, wirst du merken, dass die `.inline`-Elemente zu hoch angesetzt sind. -To combat this, set the `vertical-align` property to `middle`. +Setze die `vertical-align`-Eigenschaft auf `middle`, um dies zu lösen. # --hints-- -You should set the `vertical-align` property to `middle` for all `.inline` elements. +Du solltest für alle `.inline`-Elemente die `vertical-align`-Eigenschaft auf `middle` setzen. ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.inline')?.verticalAlign, 'middle'); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd7648a7ba2e5882436831.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd7648a7ba2e5882436831.md index 03e1e2d2b0b..ca26e453ef5 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd7648a7ba2e5882436831.md +++ b/curriculum/challenges/german/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`. +Füge innerhalb deines `tbody`-Elements vier `tr`-Elemente hinzu. Give the first three a `class` attribute set to `data`, and the fourth a `class` attribute set to `total`. # --hints-- @@ -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`. +Deine ersten drei `tr`-Elemente sollten das `class`-Attribut auf `data` gesetzt haben. ```js const children = [...document.querySelector('tbody')?.children]; @@ -30,7 +30,7 @@ children.forEach((child, index) => { }); ``` -Your fourth `tr` element should have the `class` attribute set to `total`. +Dein viertes `tr`-Element sollte das `class`-Attribut auf `total` gesetzt haben. ```js const children = [...document.querySelector('tbody')?.children]; diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd990577d8227dd93fbeeb.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd990577d8227dd93fbeeb.md index 9df92b0a789..85129de93af 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd990577d8227dd93fbeeb.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd990577d8227dd93fbeeb.md @@ -19,7 +19,7 @@ Your fourth `tr` should have a `th` element. assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelector('th')); ``` -Your `th` element should have the text `Total Liabilities`. +Dein `th`-Element sollte den Text `Total Liabilities` enthalten. ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelector('th')?.innerText === 'Total Liabilities'); @@ -31,37 +31,37 @@ You should wrap the text `Liabilities` in a `span` element. assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelector('th > span')?.textContent === 'Liabilities'); ``` -Your `span` element should have the `class` attribute set to `sr-only`. +Dein `span`-Element sollte das `class`-Attribut auf `sr-only` gesetzt haben. ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelector('th > span')?.classList?.contains('sr-only')); ``` -You should have three `td` elements. +Du solltest drei `td`-Elemente haben. ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelectorAll('td').length === 3); ``` -Your first `td` element should have the text `$750`. +Dein erstes `td`-Element sollte den Text `$750` enthalten. ```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`. +Dein zweites `td`-Element sollte den Text `$600` enthalten. ```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`. +Dein drittes `td`-Element sollte den Text `$475` enthalten. ```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`. +Dein drittes `td`-Element sollte die `class` auf `current` gesetzt haben. ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')?.querySelectorAll('tr')?.[3]?.querySelectorAll('td')?.[2]?.classList?.contains('current')); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-responsive-web-design-by-building-a-piano/612e7d1c29fb872d6384379c.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-responsive-web-design-by-building-a-piano/612e7d1c29fb872d6384379c.md index 34b87475517..31be4b5e44c 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-responsive-web-design-by-building-a-piano/612e7d1c29fb872d6384379c.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-responsive-web-design-by-building-a-piano/612e7d1c29fb872d6384379c.md @@ -11,7 +11,7 @@ Nest a second `div` within your existing `div`, and set the `class` to be `keys` # --hints-- -You should create a second `div` element. +Du solltest ein zweites `div`-Element erstellen. ```js const divDiv = document.querySelectorAll('div'); @@ -26,7 +26,7 @@ assert(div?.children?.length === 1); assert(div?.children?.[0]?.localName === 'div'); ``` -Your new `div` element should have the `class` set to `keys`. +Dein neues `div`-Element sollte die `class` auf `keys` gesetzt haben. ```js const div = document.querySelector('div'); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-the-css-box-model-by-building-a-rothko-painting/60a3e3396c7b40068ad69975.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-the-css-box-model-by-building-a-rothko-painting/60a3e3396c7b40068ad69975.md index 675e2c5d5d9..9ec2e7046e3 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-the-css-box-model-by-building-a-rothko-painting/60a3e3396c7b40068ad69975.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-the-css-box-model-by-building-a-rothko-painting/60a3e3396c7b40068ad69975.md @@ -7,20 +7,20 @@ dashedName: step-12 # --description-- -Write a new rule using the `.frame` class selector. +Schreibe eine neue Regel, indem du den `.frame`-Klassenselektor verwendest. -Use the `border` shorthand declaration to give the `.frame` element a solid, black border with a width of `50px`. +Nutze die `border`-Kurzbezeichnung, um dem `.frame`-Element einen soliden, schwarzen Rand mit einer Breite von `50px` zu geben. # --hints-- -Your code should have a `.frame` selector. +Dein Code sollte einen `.frame`-Selektor haben. ```js const hasFrame = new __helpers.CSSHelp(document).getStyle('.frame'); assert(hasFrame); ``` -You should set the `border` property to `50px solid black`. +Du solltest die `border`-Eigenschaft auf `50px solid black` setzen. ```js const hasBorder = new __helpers.CSSHelp(document).getCSSRules().some(x => x.style.border === '50px solid black'); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-the-css-box-model-by-building-a-rothko-painting/60a3e3396c7b40068ad6998f.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-the-css-box-model-by-building-a-rothko-painting/60a3e3396c7b40068ad6998f.md index a759a6ad9b7..d515f336ad8 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-the-css-box-model-by-building-a-rothko-painting/60a3e3396c7b40068ad6998f.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-the-css-box-model-by-building-a-rothko-painting/60a3e3396c7b40068ad6998f.md @@ -7,7 +7,7 @@ dashedName: step-37 # --description-- -The rectangles are too small and their edges don't have the soft quality of a painting. +Die Rechtecke sind zu klein und ihre Kanten haben keine weiche Qualität eines Bildes. Increase the area and soften the edges of `.one` by setting its `box-shadow` to `0 0 3px 3px #efb762`. diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f575b50b91e72af079480.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f575b50b91e72af079480.md index 7ccb4dd1dda..b5a37099d09 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f575b50b91e72af079480.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f575b50b91e72af079480.md @@ -7,17 +7,17 @@ dashedName: step-35 # --description-- -Create a new `.left-container p` selector setting the top and bottom margin to `-5px`, and the left and right margin to `-2px`. Also set the `font-size` to `2em` and `font-weight` to `700`. +Create a new `.left-container p` selector setting the top and bottom margin to `-5px`, and the left and right margin to `-2px`. Setze auch die `font-size` auf `2em` und `font-weight` auf `700`. # --hints-- -You should have a new `.left-container p` selector. +Du solltest einen neuen `.left-container p`-Selektor haben. ```js assert(new __helpers.CSSHelp(document).getStyle('.left-container p')); ``` -Your new `.left-container p` selector should have a `margin` property set to `-5px -2px`. +Dein neuer `.left-container p`-Selektor sollte eine `margin`-Eigenschaft auf `-5px -2px` gesetzt haben. ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.left-container p')?.marginTop, '-5px'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/616965351e74d4689eb6de30.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/616965351e74d4689eb6de30.md index f41206b8bf2..163ba6e312c 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/616965351e74d4689eb6de30.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/616965351e74d4689eb6de30.md @@ -7,7 +7,7 @@ dashedName: step-5 # --description-- -Você pode ter vários elementos `meta` de fechamento automático em uma página da web. Each `meta` element adds information about the page that cannot be expressed by other HTML elements. +Você pode ter vários elementos `meta` de fechamento automático em uma página da web. Cada elemento `meta` adiciona informações sobre a página que não podem ser expressas por outros elementos do HTML. Adicione outro elemento `meta` de fechamento automático dentro do elemento `head`. Dê a ele o atributo `name` definido como `viewport` e o atributo `content` definido como `width=device-width, initial-scale=1.0` para que a página tenha a mesma aparência em todos os dispositivos. diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/64067c1041a80c366b852407.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/64067c1041a80c366b852407.md index 3e044bb20b7..2f4f3023262 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/64067c1041a80c366b852407.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/64067c1041a80c366b852407.md @@ -7,35 +7,35 @@ dashedName: step-2 # --description-- -Para preaprar a lógica do projeto, use `const` e a sintaxe das arrow functions para declarar uma função `sortInputArray`. It should take a single `event` parameter. +Para preaprar a lógica do projeto, use `const` e a sintaxe das arrow functions para declarar uma função `sortInputArray`. Ela deve receber um único parâmetro `event`. # --hints-- -You should declare a `sortInputArray` function with `const`. +Você deve declarar uma função `sortInputArray` com `const`. ```js assert.match(code, /const\s+sortInputArray\s*=/); ``` -Your `sortInputArray` should be a function. +`sortInputArray` deve ser uma função. ```js assert.isFunction(sortInputArray); ``` -Your `sortInputArray` should take a single `event` parameter. +`sortInputArray` deve receber um único parâmetro `event`. ```js assert.match(code, /const\s+sortInputArray\s*=\s*\(\s*event\s*\)/); ``` -Your `sortInputArray` should use arrow syntax. +`sortInputArray` deve usar a sintaxe das arrow functions. ```js assert.match(code, /const\s+sortInputArray\s*=\s*\(\s*event\s*\)\s*=>/); ``` -Your `sortInputArray` function should be empty. +A função `sortInputArray` deve estar vazia. ```js assert.match(sortInputArray.toString(), /\(\s*event\s*\)\s*{\s*}/); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6406adbca6b41d3d7cef85ab.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6406adbca6b41d3d7cef85ab.md index 0be319e3d7e..266d9bdd9e0 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6406adbca6b41d3d7cef85ab.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6406adbca6b41d3d7cef85ab.md @@ -7,25 +7,25 @@ dashedName: step-5 # --description-- -Back in your `sortInputArray` function, you need to get the values from your `select` elements. Since they all have the class `values-dropdown`, you can query them all at once. +De volta à função `sortInputArray`, você precisa obter os valores dos elementos `select`. Como todos eles têm a classe `values-dropdown`, você pode consultar todos de uma só vez. -Use `document.getElementsByClassName()` to get all the elements with the class `values-dropdown`. Assign that to an `inputValues` variable. +Use `document.getElementsByClassName()` para obter todos os elementos com a classe `values-dropdown`. Atribua o resultado da consulta a uma variável `inputValues`. # --hints-- -You should use `document.getElementsByClassName()` to get all the elements with the class `values-dropdown`. +Você deve usar `document.getElementsByClassName()` para obter todos os elementos com a classe `values-dropdown`. ```js assert.match(sortInputArray.toString(), /document\.getElementsByClassName\(\s*('|"|`)values-dropdown\1\s*\)/); ``` -You should assign the result of `document.getElementsByClassName()` to a variable named `inputValues`. +Você deve atribuir o resultado de `document.getElementsByClassName()` a uma variável chamada `inputValues`. ```js assert.match(sortInputArray.toString(), /inputValues\s*=\s*document\.getElementsByClassName\(\s*('|"|`)values-dropdown\1\s*\)/); ``` -You should use `const` to declare `inputValues`. +Você deve usar `const` para declarar `inputValues`. ```js assert.match(code, /const\s+inputValues\s*=\s*document\.getElementsByClassName\(\s*('|"|`)values-dropdown\1\s*\)/); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6410da6df463a606dfade96f.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6410da6df463a606dfade96f.md index 09da9914692..b9d27604f7a 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6410da6df463a606dfade96f.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6410da6df463a606dfade96f.md @@ -7,35 +7,35 @@ dashedName: step-14 # --description-- -You'll need to iterate through the array. For simplicity, use a `for` loop to do so. +Você precisará percorrer o array. Para simplificar, use um laço `for` para fazer isso. # --hints-- -You should use a `for` loop to iterate through the array. +Você deve usar um laço `for` para percorrer o array. ```js assert.match(code, /const\s+bubbleSort\s*=\s*\(\s*array\s*\)\s*=>\s*{\s*for\s*\(/) ``` -Your `for` loop should initialize `i` to `0`. +O laço `for` deve inicializar `i` como `0`. ```js assert.match(code, /const\s+bubbleSort\s*=\s*\(\s*array\s*\)\s*=>\s*{\s*for\s*\(\s*let\s+i\s*=\s*0\s*;/); ``` -Your `for` loop should have a condition that checks the value of `i` is less than the length of the array. +O laço `for` deve ter uma condição que verifica se o valor de `i` é menor do que o comprimento do array. ```js assert.match(code, /const\s+bubbleSort\s*=\s*\(\s*array\s*\)\s*=>\s*{\s*for\s*\(\s*let\s+i\s*=\s*0\s*;\s*i\s*<\s*array\.length\s*;/); ``` -Your `for` loop should increment `i` by `1` each time it runs. +O laço `for` deve incrementar `i` em `1` a cada vez que é executado. ```js assert.match(code, /const\s+bubbleSort\s*=\s*\(\s*array\s*\)\s*=>\s*{\s*for\s*\(\s*let\s+i\s*=\s*0\s*;\s*i\s*<\s*array\.length\s*;\s*i\s*\+\+\s*\)/); ``` -Your `for` loop should be empty. +O laço `for` deve estar vazio. ```js assert.match(code, /const\s+bubbleSort\s*=\s*\(\s*array\s*\)\s*=>\s*{\s*for\s*\(\s*let\s+i\s*=\s*0\s*;\s*i\s*<\s*array\.length\s*;\s*i\s*\+\+\s*\)\s*{\s*}\s*}/); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6410e1b58efc2c091a13bcd9.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6410e1b58efc2c091a13bcd9.md index 6c7eb05267b..89cf6b9b395 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6410e1b58efc2c091a13bcd9.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6410e1b58efc2c091a13bcd9.md @@ -7,29 +7,29 @@ dashedName: step-16 # --description-- -For debugging purposes, add a `console.log()` call in your inner loop. Pass it the arguments `array`, `array[j]`, and `array[j+1]`. +Para fins de depuração, adicione uma chamada a `console.log()` no laço interno. Passe ali os argumentos de `array`, `array[j]` e `array[j+1]`. # --hints-- -You should use a `console.log()` call in your inner loop. +Você deve usar uma chamada a `console.log()` no laço interno. ```js assert.match(code, /const\s+bubbleSort\s*=\s*\(\s*array\s*\)\s*=>\s*{\s*for\s*\(\s*let\s+i\s*=\s*0\s*;\s*i\s*<\s*array\.length\s*;\s*i\s*\+\+\s*\)\s*{\s*for\s*\(\s*let\s+j\s*=\s*0\s*;\s*j\s*<\s*array\.length\s*-\s*1\s*;\s*j\s*\+\+\s*\)\s*{\s*console\.log\(/); ``` -You should pass `array` as the first argument to `console.log()`. +Você deve passar `array` como o primeiro argumento para `console.log()`. ```js assert.match(code, /const\s+bubbleSort\s*=\s*\(\s*array\s*\)\s*=>\s*{\s*for\s*\(\s*let\s+i\s*=\s*0\s*;\s*i\s*<\s*array\.length\s*;\s*i\s*\+\+\s*\)\s*{\s*for\s*\(\s*let\s+j\s*=\s*0\s*;\s*j\s*<\s*array\.length\s*-\s*1\s*;\s*j\s*\+\+\s*\)\s*{\s*console\.log\s*\(\s*array\s*,/); ``` -You should pass `array[j]` as the second argument to `console.log()`. +Você deve passar `array[j]` como o segundo argumento para `console.log()`. ```js assert.match(code, /const\s+bubbleSort\s*=\s*\(\s*array\s*\)\s*=>\s*{\s*for\s*\(\s*let\s+i\s*=\s*0\s*;\s*i\s*<\s*array\.length\s*;\s*i\s*\+\+\s*\)\s*{\s*for\s*\(\s*let\s+j\s*=\s*0\s*;\s*j\s*<\s*array\.length\s*-\s*1\s*;\s*j\s*\+\+\s*\)\s*{\s*console\.log\s*\(\s*array\s*,\s*array\s*\[\s*j\s*\]\s*,/); ``` -You should pass `array[j+1]` as the third argument to `console.log()`. +Você deve passar `array[j+1]` como o terceiro argumento para `console.log()`. ```js assert.match(code, /const\s+bubbleSort\s*=\s*\(\s*array\s*\)\s*=>\s*{\s*for\s*\(\s*let\s+i\s*=\s*0\s*;\s*i\s*<\s*array\.length\s*;\s*i\s*\+\+\s*\)\s*{\s*for\s*\(\s*let\s+j\s*=\s*0\s*;\s*j\s*<\s*array\.length\s*-\s*1\s*;\s*j\s*\+\+\s*\)\s*{\s*console\.log\s*\(\s*array\s*,\s*array\s*\[\s*j\s*\]\s*,\s*array\s*\[\s*j\s*\+\s*1\s*\]\s*\)/); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6410e70c84bb660b4d2a5ea1.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6410e70c84bb660b4d2a5ea1.md index 0bf62529c24..64cc2ac0d3e 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6410e70c84bb660b4d2a5ea1.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6410e70c84bb660b4d2a5ea1.md @@ -7,31 +7,31 @@ dashedName: step-18 # --description-- -To achieve the "bubble up" result, you need to check if the current element is larger than the next element. You can do this by accessing the `array` at `j` and `j+1`. +Para alcançar o resultado de "enviar a bolha para cima", você precisa verificar se o elemento atual é maior que o próximo elemento. Você pode fazer isso acessando o `array` em `j` e em `j+1`. -Create an `if` condition that checks if the current element is larger than the next element. +Crie uma condição `if`, que verifica se o elemento atual é maior que o próximo. # --hints-- -You should not remove your `console.log` statement. +Você não deve remover a instrução do `console.log`. ```js assert.match(code, /const\s+bubbleSort\s*=\s*\(\s*array\s*\)\s*=>\s*{\s*for\s*\(\s*let\s+i\s*=\s*0\s*;\s*i\s*<\s*array\.length\s*;\s*i\s*\+\+\s*\)\s*{\s*for\s*\(\s*let\s+j\s*=\s*0\s*;\s*j\s*<\s*array\.length\s*-\s*1\s*;\s*j\s*\+\+\s*\)\s*{\s*console\.log\s*\(\s*array\s*,\s*array\s*\[\s*j\s*\]\s*,\s*array\s*\[\s*j\s*\+\s*1\s*\]\s*\);?/); ``` -You should use an `if` statement in your nested loop. +Você deve usar uma instrução `if` no laço aninhado. ```js assert.match(code, /const\s+bubbleSort\s*=\s*\(\s*array\s*\)\s*=>\s*{\s*for\s*\(\s*let\s+i\s*=\s*0\s*;\s*i\s*<\s*array\.length\s*;\s*i\s*\+\+\s*\)\s*{\s*for\s*\(\s*let\s+j\s*=\s*0\s*;\s*j\s*<\s*array\.length\s*-\s*1\s*;\s*j\s*\+\+\s*\)\s*{\s*console\.log\s*\(\s*array\s*,\s*array\s*\[\s*j\s*\]\s*,\s*array\s*\[\s*j\s*\+\s*1\s*\]\s*\);?\s*if\s*\(/); ``` -Your `if` statement should check if the `array[j]` is larger than the `array[j+1]`. +A instrução `if` deve verificar se `array[j]` é maior do que `array[j+1]`. ```js assert.match(code, /const\s+bubbleSort\s*=\s*\(\s*array\s*\)\s*=>\s*{\s*for\s*\(\s*let\s+i\s*=\s*0\s*;\s*i\s*<\s*array\.length\s*;\s*i\s*\+\+\s*\)\s*{\s*for\s*\(\s*let\s+j\s*=\s*0\s*;\s*j\s*<\s*array\.length\s*-\s*1\s*;\s*j\s*\+\+\s*\)\s*{\s*console\.log\s*\(\s*array\s*,\s*array\s*\[\s*j\s*\]\s*,\s*array\s*\[\s*j\s*\+\s*1\s*\]\s*\);?\s*if\s*\(\s*array\s*\[\s*j\s*\]\s*>\s*array\s*\[\s*j\s*\+\s*1\s*\]\s*\)/); ``` -Your `if` statement should be empty. +A instrução `if` deve estar vazia. ```js assert.match(code, /const\s+bubbleSort\s*=\s*\(\s*array\s*\)\s*=>\s*{\s*for\s*\(\s*let\s+i\s*=\s*0\s*;\s*i\s*<\s*array\.length\s*;\s*i\s*\+\+\s*\)\s*{\s*for\s*\(\s*let\s+j\s*=\s*0\s*;\s*j\s*<\s*array\.length\s*-\s*1\s*;\s*j\s*\+\+\s*\)\s*{\s*console\.log\s*\(\s*array\s*,\s*array\s*\[\s*j\s*\]\s*,\s*array\s*\[\s*j\s*\+\s*1\s*\]\s*\);?\s*if\s*\(\s*array\s*\[\s*j\s*\]\s*>\s*array\s*\[\s*j\s*\+\s*1\s*\]\s*\)\s*{\s*}/); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6410edb33eeaf50dd9a22ab4.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6410edb33eeaf50dd9a22ab4.md index 19091215f65..6143a21d841 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6410edb33eeaf50dd9a22ab4.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/6410edb33eeaf50dd9a22ab4.md @@ -7,9 +7,9 @@ dashedName: step-19 # --description-- -When your `if` condition is true, you need to swap the two elements, "bubbling" the larger element up toward the end of the array. +Quando a condição de `if` for verdadeira, você precisará trocar os dois elementos, "subindo a bolha" do maior elemento em direção ao final do array. -To do this, declare a `temp` variable and assign it the value of `array[j]`. Then assign `array[j]` the value of `array[j + 1]`. Finally, assign `array[j + 1]` the value of `temp`. +Para fazer isso, declare uma variável `temp` e atribua a ela o valor de `array[j]`. Em seguida, atribua a `array[j]` o valor de `array[j + 1]`. Por fim, atribua a `array[j + 1]` o valor de `temp`. # --hints-- diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/64112cea9e6ac22a314628b0.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/64112cea9e6ac22a314628b0.md index dc43c43c756..456dc58270b 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/64112cea9e6ac22a314628b0.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/64112cea9e6ac22a314628b0.md @@ -7,11 +7,11 @@ dashedName: step-37 # --description-- -After your `for` loop has finished, you need to return the array. You should then be able to see the `Output` change when you click the `Sort` button again. +Após o término do laço `for`, você precisa retornar o array. Você deve poder ver a mudança de `Output` ao clicar no botão `Sort` novamente. # --hints-- -You should `return` the `array`. +A instrução `return` deve retornar o `array`. ```js assert.match(code, /const\s+insertionSort\s*=\s*\(\s*array\s*\)\s*=>\s*{\s*for\s*\(\s*let\s+i\s*=\s*1\s*;\s*i\s*<\s*array\.length\s*;\s*i\s*\+\+\s*\)\s*{\s*const\s*currValue\s*=\s*array\s*\[\s*i\s*\]\s*;?\s*let\s*j\s*=\s*i\s*-\s*1\s*;?\s*while\s*\(\s*j\s*>=\s*0\s*&&\s*array\s*\[\s*j\s*\]\s*>\s*currValue\s*\)\s*{\s*array\s*\[\s*j\s*\+\s*1\s*\]\s*=\s*array\s*\[\s*j\s*\];?\s*j--;?\s*\}\s*array\s*\[\s*j\s*\+\s*1\s*\]\s*=\s*currValue;?\s*\}\s*return\s*array;?\s*\}/); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/64112fa63a0f812c66499a54.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/64112fa63a0f812c66499a54.md index 931ba04e1a6..7d6f4cba513 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/64112fa63a0f812c66499a54.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/64112fa63a0f812c66499a54.md @@ -7,13 +7,13 @@ dashedName: step-39 # --description-- -The `Sort` button may appear to work correctly when clicked, but this is only because all the values in the array are single digits, and the sorting may not work as expected with more complex values. +O botão `Sort` pode parecer funcionar corretamente quando clicado, mas isso é apenas porque todos os valores do array têm um único algarismo. A ordenação pode não funcionar como esperado com valores mais complexos. -Change the `value` and text of the `option` element that is `selected` from `1` to `10`, and click the `Sort` button again. +Altere `value` e o texto do elemento `option` que tem o atributo `selected` de `1` para `10` e clique no botão `Sort` novamente. # --hints-- -You should update the `value` of the `option` element that is `selected` to `10`. +Você deve atualizar `value` do elemento `option` que tem como atributo `selected` para `10`. ```js const values = document.querySelectorAll('.values-dropdown')?.[3]; @@ -21,7 +21,7 @@ const option = values.querySelector('option[selected]'); assert.equal(option?.value, '10'); ``` -You should update the text of the `option` element that is `selected` to `10`. +Você deve atualizar o texto do elemento `option` que tem como atributo `selected` para `10`. ```js const values = document.querySelectorAll('.values-dropdown')?.[3]; diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/641130423e5f512d8972dae1.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/641130423e5f512d8972dae1.md index 74ca7d70b4f..4590f0d8fd6 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/641130423e5f512d8972dae1.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-algorithmic-thinking-by-building-a-number-sorter/641130423e5f512d8972dae1.md @@ -9,23 +9,23 @@ dashedName: step-40 Perceba como o valor `10` é colocado no início do array. Isso ocorre porque o comportamento padrão de `.sort()` é converter os valores em strings e ordená-los alfabeticamente. `10` vem antes de `2` alfabeticamente. -Para corrigir isso, você pode passar uma função de callback para o método `.sort()`. The callback function takes two arguments - for yours, use `a` and `b`. Leave the function empty for now. +Para corrigir isso, você pode passar uma função de callback para o método `.sort()`. A função de callback recebe dois argumentos - para a sua, use `a` e `b`. Deixe a função em branco, por enquanto. # --hints-- -You should pass a callback function to the `.sort()` method. Remember to use arrow syntax. +Você deve passar uma função de callback para o método `.sort()`. Lembre-se de usar a sintaxe das arrow functions. ```js assert.match(code, /const\s+sortedValues\s*=\s*inputValues\s*\.\s*sort\s*\(\s*\(?.*\)?\s*=>/); ``` -The callback function should take two arguments, `a` and `b`. +A função de callback deve receber dois argumentos, `a` e `b`. ```js assert.match(code, /const\s+sortedValues\s*=\s*inputValues\s*\.\s*sort\s*\(\s*\(\s*a\s*,\s*b\s*\)\s*=>/); ``` -The callback function should be empty. +A função de callback deve estar vazia. ```js assert.match(code, /const\s+sortedValues\s*=\s*inputValues\s*\.\s*sort\s*\(\s*\(\s*a\s*,\s*b\s*\)\s*=>\s*{\s*}/);