chore(i18n,learn): processed translations (#50730)

This commit is contained in:
camperbot
2023-06-16 13:16:35 -05:00
committed by GitHub
parent a5feba9afe
commit 54a5db3423
252 changed files with 401 additions and 401 deletions
@@ -1,22 +1,22 @@
---
id: 647e21598acb466c97ccbee1
title: 'Challenge Project - Develop Branching and Looping Structures in C#'
title: 'Projeto de desafio – desenvolver estruturas de ramificação e de repetição em C#'
challengeType: 19
dashedName: challenge-project-develop-branching-and-looping-structures-in-c-sharp
---
# --description--
This challenge will be partially completed on Microsoft's learn platform. Follow these instructions to complete the challenge:
Este desafio será parcialmente concluído na plataforma de aprendizagem da Microsoft. Siga estas instruções para concluir o desafio:
1. Go to <a href="https://learn.microsoft.com/en-us/training/modules/challenge-project-develop-branching-looping-structures-c-sharp/" target="_blank">https://learn.microsoft.com/en-us/training/modules/challenge-project-develop-branching-looping-structures-c-sharp/</a> and complete all the tasks for the "Challenge Project - Develop Branching and Looping Structures in C#" module. This is required to earn the "Add Logic to C# Console Applications" trophy.
1. When you are finished, come back and correctly answer the question below.
1. Acesse <a href="https://learn.microsoft.com/en-us/training/modules/challenge-project-develop-branching-looping-structures-c-sharp/" target="_blank">https://learn.microsoft.com/en-us/training/modules/challenge-project-develop-branching-looping-structures-c-sharp/</a> e complete todas as tarefas do módulo "Projeto de desafio – desenvolver estruturas de ramificação e de repetição em C#". Isto é necessário para adquirir o troféu "Adicione lógica a aplicações de console em C#".
1. Quando terminar, volte e responda corretamente à pergunta abaixo.
# --question--
## --text--
What is C#?
O que é o C#?
## --answers--
@@ -1,22 +1,22 @@
---
id: 647e21708acb466c97ccbee3
title: 'Evaluate Boolean Expressions to Make Decisions in C#'
title: 'Avalie expressões booleanas para a tomada de decisões em C#'
challengeType: 19
dashedName: evaluate-boolean-expressions-to-make-decisions-in-c-sharp
---
# --description--
This challenge will be partially completed on Microsoft's learn platform. Follow these instructions to complete the challenge:
Este desafio será parcialmente concluído na plataforma de aprendizagem da Microsoft. Siga estas instruções para concluir o desafio:
1. Go to <a href="https://learn.microsoft.com/en-us/training/modules/csharp-evaluate-boolean-expressions/" target="_blank">https://learn.microsoft.com/en-us/training/modules/csharp-evaluate-boolean-expressions/</a> and complete all the tasks for the "Evaluate Boolean Expressions to Make Decisions in C#" module. This is required to earn the "Add Logic to C# Console Applications" trophy.
1. When you are finished, come back and correctly answer the question below.
1. Acesse <a href="https://learn.microsoft.com/en-us/training/modules/csharp-evaluate-boolean-expressions/" target="_blank">https://learn.microsoft.com/en-us/training/modules/csharp-evaluate-boolean-expressions/</a> e complete todas as tarefas do módulo "Avaliar expressões booleanas para a tomada de decisões em C#". Isto é necessário para adquirir o troféu "Adicione lógica a aplicações de console em C#".
1. Quando terminar, volte e responda corretamente à pergunta abaixo.
# --question--
## --text--
What is C#?
O que é o C#?
## --answers--
@@ -1,21 +1,21 @@
---
id: 647f87dc07d29547b3bee1bf
title: 'Trophy - Create and Run Simple C# Console Applications'
title: 'Troféu – Crie e execute aplicações simples de console em C#'
challengeType: 18
dashedName: trophy-create-and-run-simple-c-sharp-console-applications
---
# --description--
Now that you've completed all of the "Create and Run Simple C# Console Applications" modules on Microsoft's learn platform, submit the URL to your trophy below.
Agora que você completou todos os módulos de "Escreva seu primeiro código em C#" na plataforma de aprendizagem da Microsoft, envie abaixo o URL do seu troféu.
Follow these instructions to find your trophy URL:
Siga estas instruções para encontrar o URL do seu troféu:
1. Go to <a href="https://learn.microsoft.com/en-us/users/me/achievements#badges-section" target="_blank">https://learn.microsoft.com/en-us/users/me/achievements#badges-section</a> using a browser you are logged into Microsoft with
1. Find the trophy for "Create and Run Simple C# Console Applications" and click the "share" icon next to it
1. Click the "Copy URL" button
1. Paste the URL into the input below
1. Acesse <a href="https://learn.microsoft.com/en-us/users/me/achievements#badges-section" target="_blank">https://learn.microsoft.com/en-us/users/me/achievements#badges-section</a> usando o navegador pelo qual você está conectado à Microsoft
1. Encontre o troféu de "Crie e execute aplicações simples em C#" e clique no ícone "Compartilhar" ao lado dele
1. Clique no botão "Copiar URL"
1. Cole o URL na entrada abaixo
The URL should look similar to this: `https://learn.microsoft.com/en-us/training/achievements/learn.wwl.get-started-c-sharp-part-2.trophy?username=your-username&sharingId=your-sharing-id`
O URL deve ser semelhante a: `https://learn.microsoft.com/en-us/training/achievements/learn.wwl.get-started-c-sharp-part-2.trophy?username=your-username&sharingId=your-sharing-id`
This trophy is required to qualify to take the certification exam.
Este troféu é necessário para se qualificar para fazer o exame de certificação.
@@ -1,22 +1,22 @@
---
id: 647e22338acb466c97ccbeed
title: Challenge Project - Create a Mini-Game
title: Projeto de desafio – criar um minigame
challengeType: 19
dashedName: challenge-project-create-a-mini-game
---
# --description--
This challenge will be partially completed on Microsoft's learn platform. Follow these instructions to complete the challenge:
Este desafio será parcialmente concluído na plataforma de aprendizagem da Microsoft. Siga estas instruções para concluir o desafio:
1. Go to <a href="https://learn.microsoft.com/en-us/training/modules/challenge-project-create-mini-game/" target="_blank">https://learn.microsoft.com/en-us/training/modules/challenge-project-create-mini-game/</a> and complete all the tasks for the "Challenge Project - Create a Mini-Game" module. This is required to earn the "Create Methods in C# Console Applications" trophy.
1. When you are finished, come back and correctly answer the question below.
1. Acesse <a href="https://learn.microsoft.com/en-us/training/modules/challenge-project-create-mini-game/" target="_blank">https://learn.microsoft.com/en-us/training/modules/challenge-project-create-mini-game/</a> e complete todas as tarefas do módulo "Projeto de desafio – criar um minigame". Isto é necessário para adquirir o troféu "Crie métodos em aplicações de console em C#".
1. Quando terminar, volte e responda corretamente à pergunta abaixo.
# --question--
## --text--
What is C#?
O que é o C#?
## --answers--
@@ -1,17 +1,17 @@
---
id: 647f877f07d29547b3bee1be
title: 'Trophy - Create Methods in C# Console Applications'
title: 'Troféu – Crie métodos em aplicações de console em C#'
challengeType: 18
dashedName: trophy-create-methods-in-c-sharp-console-applications
---
# --description--
Now that you've completed all of the "Create Methods in C# Console Applications" modules on Microsoft's learn platform, submit the URL to your trophy below.
Agora que você completou todos os módulos de "Crie métodos em aplicações de console em C#" na plataforma de aprendizagem da Microsoft, envie abaixo o URL do seu troféu.
Follow these instructions to find your trophy URL:
Siga estas instruções para encontrar o URL do seu troféu:
1. Go to <a href="https://learn.microsoft.com/en-us/users/me/achievements#badges-section" target="_blank">https://learn.microsoft.com/en-us/users/me/achievements#badges-section</a> using a browser you are logged into Microsoft with
1. Acesse <a href="https://learn.microsoft.com/en-us/users/me/achievements#badges-section" target="_blank">https://learn.microsoft.com/en-us/users/me/achievements#badges-section</a> usando o navegador pelo qual você está conectado à Microsoft
1. Find the trophy for "Create Methods in C# Console Applications" and click the "share" icon next to it
1. Click the "Copy URL" button
1. Paste the URL into the input below
@@ -1,22 +1,22 @@
---
id: 647e22958acb466c97ccbef4
title: 'Guided Project - Debug and Handle Exceptions in a C# Console Application Using Visual Studio Code'
title: 'Projeto guiado – depurar e tratar de exceções em uma aplicação de console em C# usando o Visual Studio Code'
challengeType: 19
dashedName: guided-project-debug-and-handle-exceptions-in-a-c-sharp-console-application-using-visual-studio-code
---
# --description--
This challenge will be partially completed on Microsoft's learn platform. Follow these instructions to complete the challenge:
Este desafio será parcialmente concluído na plataforma de aprendizagem da Microsoft. Siga estas instruções para concluir o desafio:
1. Go to <a href="https://learn.microsoft.com/en-us/training/modules/guided-project-debug-handle-exceptions-c-sharp-console-application/" target="_blank">https://learn.microsoft.com/en-us/training/modules/guided-project-debug-handle-exceptions-c-sharp-console-application/</a> and complete all the tasks for the "Guided Project - Debug and Handle Exceptions in a C# Console Application Using Visual Studio Code" module. This is required to earn the "Debug C# Console Applications" trophy.
1. When you are finished, come back and correctly answer the question below.
1. Acesse <a href="https://learn.microsoft.com/en-us/training/modules/guided-project-debug-handle-exceptions-c-sharp-console-application/" target="_blank">https://learn.microsoft. om/en-us/training/modules/guided-project-debug-handle-exceptions-c-sharp-console-application/</a> e complete todas as tarefas para o "Projeto guiado – depurar e tratar de exceções em uma aplicação de console em C# usando o Visual Studio Code". Isto é necessário para adquirir o troféu "Depure aplicações de console em C#".
1. Quando terminar, volte e responda corretamente à pergunta abaixo.
# --question--
## --text--
What is C#?
O que é o C#?
## --answers--
@@ -1,15 +1,15 @@
---
id: 647e22d18acb466c97ccbef8
title: 'Foundational C# with Microsoft Certification Exam'
title: 'Exame de fundamentos de C# com certificação da Microsoft'
challengeType: 17
dashedName: foundational-c-sharp-with-microsoft-certification-exam
---
# --description--
Here are some rules:
Aqui vão algumas regras:
- click start
- clique em Iniciar
# --instructions--
@@ -1,21 +1,21 @@
---
id: 647f85d407d29547b3bee1bb
title: 'Trophy - Write Your First Code Using C#'
title: 'Troféu – Escreva seu primeiro código em C#'
challengeType: 18
dashedName: trophy-write-your-first-code-using-c-sharp
---
# --description--
Now that you've completed all of the "Write Your First Code Using C#" modules on Microsoft's learn platform, submit the URL to your trophy below.
Agora que você completou todos os módulos de "Escreva seu primeiro código em C#" na plataforma de aprendizagem da Microsoft, envie abaixo o URL do seu troféu.
Follow these instructions to find your trophy URL:
Siga estas instruções para encontrar o URL do seu troféu:
1. Go to <a href="https://learn.microsoft.com/en-us/users/me/achievements#badges-section" target="_blank">https://learn.microsoft.com/en-us/users/me/achievements#badges-section</a> using a browser you are logged into Microsoft with
1. Find the trophy for "Write Your First Code Using C#" and click the "share" icon next to it
1. Click the "Copy URL" button
1. Paste the URL into the input below
1. Acesse <a href="https://learn.microsoft.com/en-us/users/me/achievements#badges-section" target="_blank">https://learn.microsoft.com/en-us/users/me/achievements#badges-section</a> usando o navegador pelo qual você está conectado à Microsoft
1. Encontre o troféu de "Escreva seu primeiro código em C#" e clique no ícone "Compartilhar" ao lado dele
1. Clique no botão "Copiar URL"
1. Cole o URL na entrada abaixo
The URL should look similar to this: `https://learn.microsoft.com/en-us/training/achievements/learn.wwl.get-started-c-sharp-part-1.trophy?username=your-username&sharingId=your-sharing-id`
O URL deve ser semelhante a: `https://learn.microsoft.com/en-us/training/achievements/learn.wwl.get-started-c-sharp-part-1.trophy?username=your-username&sharingId=your-sharing-id`
This trophy is required to qualify to take the certification exam.
Este troféu é necessário para se qualificar para fazer o exame de certificação.
@@ -1,6 +1,6 @@
---
id: 64061a98f704a014b44afdb2
title: Step 1
title: Крок 1
challengeType: 0
dashedName: step-1
---
@@ -1,6 +1,6 @@
---
id: 64067c1041a80c366b852407
title: Step 2
title: Крок 2
challengeType: 0
dashedName: step-2
---
@@ -17,7 +17,7 @@ You should declare a `sortInputArray` function with `const`.
assert.match(code, /const\s+sortInputArray\s*=/);
```
Your `sortInputArray` should be a function.
`sortInputArray` має бути функцією.
```js
assert.isFunction(sortInputArray);
@@ -35,7 +35,7 @@ Your `sortInputArray` should use arrow syntax.
assert.match(code, /const\s+sortInputArray\s*=\s*\(\s*event\s*\)\s*=>/);
```
Your `sortInputArray` function should be empty.
Функція `sortInputArray` повинна бути порожньою.
```js
assert.match(sortInputArray.toString(), /\(\s*event\s*\)\s*{\s*}/);
@@ -1,6 +1,6 @@
---
id: 6406a71d2b35103a340dba06
title: Step 3
title: Крок 3
challengeType: 0
dashedName: step-3
---
@@ -1,6 +1,6 @@
---
id: 6406a9945fa5d23c225d31cc
title: Step 4
title: Крок 4
challengeType: 0
dashedName: step-4
---
@@ -1,6 +1,6 @@
---
id: 6406adbca6b41d3d7cef85ab
title: Step 5
title: Крок 5
challengeType: 0
dashedName: step-5
---
@@ -1,6 +1,6 @@
---
id: 6406bb32f9ed593f26c33b2b
title: Step 6
title: Крок 6
challengeType: 0
dashedName: step-6
---
@@ -1,6 +1,6 @@
---
id: 6407b940b8983005578d0824
title: Step 7
title: Крок 7
challengeType: 0
dashedName: step-7
---
@@ -1,6 +1,6 @@
---
id: 6407c303b4272606c019f338
title: Step 8
title: Крок 8
challengeType: 0
dashedName: step-8
---
@@ -25,7 +25,7 @@ const myFunction = (string = "") => {
assert.match(code, /const\s+updateUI\s*=/);
```
`updateUI` should be a function.
`updateUI` має бути функцією.
```js
assert.isFunction(updateUI);
@@ -1,6 +1,6 @@
---
id: 6407c4abf5be6d07d8c12ade
title: Step 9
title: Крок 9
challengeType: 0
dashedName: step-9
---
@@ -1,6 +1,6 @@
---
id: 6407c627ddc93708c8dee796
title: Step 10
title: Крок 10
challengeType: 0
dashedName: step-10
---
@@ -1,6 +1,6 @@
---
id: 6407c6a2c2159309994779a5
title: Step 11
title: Крок 11
challengeType: 0
dashedName: step-11
---
@@ -1,6 +1,6 @@
---
id: 6407c6d3f19c4e0a7ba320bb
title: Step 12
title: Крок 12
challengeType: 0
dashedName: step-12
---
@@ -1,6 +1,6 @@
---
id: 6407c722498bc80b76d29073
title: Step 13
title: Крок 13
challengeType: 0
dashedName: step-13
---
@@ -19,7 +19,7 @@ Begin by declaring a `bubbleSort` variable and assigning it an arrow function th
assert.match(code, /const\s+bubbleSort\s*=/);
```
`bubbleSort` should be a function.
`bubbleSort` має бути функцією.
```js
assert.isFunction(bubbleSort);
@@ -1,6 +1,6 @@
---
id: 6410da6df463a606dfade96f
title: Step 14
title: Крок 14
challengeType: 0
dashedName: step-14
---
@@ -35,7 +35,7 @@ Your `for` loop should increment `i` by `1` each time it runs.
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.
Цикл `for` повинен бути порожнім.
```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*}/);
@@ -1,6 +1,6 @@
---
id: 6410dfb965c72108196ef24a
title: Step 15
title: Крок 15
challengeType: 0
dashedName: step-15
---
@@ -35,7 +35,7 @@ Your inner `for` loop should increment `j` by `1` each time.
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*\)/);
```
Your inner `for` loop should be empty.
Внутрішній цикл `for` повинен бути порожнім.
```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*}\s*}/);
@@ -1,6 +1,6 @@
---
id: 6410e1b58efc2c091a13bcd9
title: Step 16
title: Крок 16
challengeType: 0
dashedName: step-16
---
@@ -1,6 +1,6 @@
---
id: 6410e3c19c21cd09c32dc7c6
title: Step 17
title: Крок 17
challengeType: 0
dashedName: step-17
---
@@ -1,6 +1,6 @@
---
id: 6410e70c84bb660b4d2a5ea1
title: Step 18
title: Крок 18
challengeType: 0
dashedName: step-18
---
@@ -1,6 +1,6 @@
---
id: 6410edb33eeaf50dd9a22ab4
title: Step 19
title: Крок 19
challengeType: 0
dashedName: step-19
---
@@ -1,6 +1,6 @@
---
id: 6410efff0ae97c0f06856511
title: Step 20
title: Крок 20
challengeType: 0
dashedName: step-20
---
@@ -1,6 +1,6 @@
---
id: 6410f149110ec60fd40fcfe1
title: Step 22
title: Крок 22
challengeType: 0
dashedName: step-22
---
@@ -19,7 +19,7 @@ Start by declaring a `selectionSort` variable and assigning it an arrow function
assert.match(code, /const\s+selectionSort\s*=/);
```
`selectionSort` should be a function.
`selectionSort` має бути функцією.
```js
assert.isFunction(selectionSort);
@@ -1,6 +1,6 @@
---
id: 6410f97a721cd1144804b7a8
title: Step 24
title: Крок 24
challengeType: 0
dashedName: step-24
---
@@ -11,7 +11,7 @@ Like a bubble sort, a selection sort needs to iterate through the array. Declare
# --hints--
You should use a `for` loop.
Ви повинні використати цикл `for`.
```js
assert.match(code, /const\s+selectionSort\s*=\s*\(\s*array\s*\)\s*=>\s*{\s*for\s*\(/);
@@ -1,6 +1,6 @@
---
id: 6410f9a443d57414ee50fada
title: Step 21
title: Крок 21
challengeType: 0
dashedName: step-21
---
@@ -1,6 +1,6 @@
---
id: 6410fb3b68429716a810ea4b
title: Step 25
title: Крок 25
challengeType: 0
dashedName: step-25
---
@@ -13,7 +13,7 @@ Then, write another `for` loop, using `j` as the iterator. This loop needs to st
# --hints--
You should use `let` to declare `minIndex`.
Ви повинні використати `let`, щоб оголосити `minIndex`.
```js
assert.match(code, /const\s+selectionSort\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*let\s*minIndex\s*=/)
@@ -1,6 +1,6 @@
---
id: 6410fcd1f731fd17cdb101a7
title: Step 26
title: Крок 26
challengeType: 0
dashedName: step-26
---
@@ -1,6 +1,6 @@
---
id: 6411024727181d190ef03166
title: Step 27
title: Крок 27
challengeType: 0
dashedName: step-27
---
@@ -1,6 +1,6 @@
---
id: 64110377201e7b1a0de0d558
title: Step 23
title: Крок 23
challengeType: 0
dashedName: step-23
---
@@ -1,6 +1,6 @@
---
id: 64110727cefd3d1d9bdb0128
title: Step 28
title: Крок 28
challengeType: 0
dashedName: step-28
---
@@ -1,6 +1,6 @@
---
id: 6411083020a3101e9514a0f5
title: Step 29
title: Крок 29
challengeType: 0
dashedName: step-29
---
@@ -1,6 +1,6 @@
---
id: 64110998bc00321fd8052ab5
title: Step 30
title: Крок 30
challengeType: 0
dashedName: step-30
---
@@ -19,7 +19,7 @@ Start by declaring an `insertionSort` variable and assigning it an arrow functio
assert.match(code, /const\s+insertionSort\s*=/);
```
`insertionSort` should be a function.
`insertionSort` має бути функцією.
```js
assert.isFunction(insertionSort);
@@ -1,6 +1,6 @@
---
id: 64110a03f6a450209b01f45c
title: Step 31
title: Крок 31
challengeType: 0
dashedName: step-31
---
@@ -1,6 +1,6 @@
---
id: 64110b1849454521871243ca
title: Step 32
title: Крок 32
challengeType: 0
dashedName: step-32
---
@@ -35,7 +35,7 @@ Your `for` loop should increment `i` by `1` each time it runs.
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*/);
```
Your `for` loop should be empty.
Цикл `for` повинен бути порожнім.
```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*}\s*}/);
@@ -1,6 +1,6 @@
---
id: 6411108bc8b9c324f66aab4c
title: Step 33
title: Крок 33
challengeType: 0
dashedName: step-33
---
@@ -1,6 +1,6 @@
---
id: 641110e4fb696b259dbf0bcf
title: Step 34
title: Крок 34
challengeType: 0
dashedName: step-34
---
@@ -16,7 +16,7 @@ To prevent an infinite loop, decrement `j` inside your loop.
# --hints--
You should use a `while` loop.
Ви повинні використати цикл `while`.
```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*\(/);
@@ -1,6 +1,6 @@
---
id: 6411135e9ee2fa26c882eb02
title: Step 35
title: Крок 35
challengeType: 0
dashedName: step-35
---
@@ -1,6 +1,6 @@
---
id: 64112c9cf53d632910ea2f9b
title: Step 36
title: Крок 36
challengeType: 0
dashedName: step-36
---
@@ -1,6 +1,6 @@
---
id: 64112cea9e6ac22a314628b0
title: Step 37
title: Крок 37
challengeType: 0
dashedName: step-37
---
@@ -1,6 +1,6 @@
---
id: 64112d0943e1bb2aef11e2d1
title: Step 38
title: Крок 38
challengeType: 0
dashedName: step-38
---
@@ -1,6 +1,6 @@
---
id: 64112fa63a0f812c66499a54
title: Step 39
title: Крок 39
challengeType: 0
dashedName: step-39
---
@@ -1,6 +1,6 @@
---
id: 641130423e5f512d8972dae1
title: Step 40
title: Крок 40
challengeType: 0
dashedName: step-40
---
@@ -25,7 +25,7 @@ The callback function should take two arguments, `a` and `b`.
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.
Функція зворотного виклику повинна бути порожньою.
```js
assert.match(code, /const\s+sortedValues\s*=\s*inputValues\s*\.\s*sort\s*\(\s*\(\s*a\s*,\s*b\s*\)\s*=>\s*{\s*}/);
@@ -1,6 +1,6 @@
---
id: 64113124efd2852edafaf25f
title: Step 41
title: Крок 41
challengeType: 0
dashedName: step-41
---
@@ -1,6 +1,6 @@
---
id: 64113249bab9952fb2ce4469
title: Step 42
title: Крок 42
challengeType: 0
dashedName: step-42
---
@@ -1,6 +1,6 @@
---
id: 63ec14d1c216aa063f0be4af
title: Step 1
title: Крок 1
challengeType: 0
dashedName: step-1
---
@@ -15,7 +15,7 @@ Since these will not change, remember to use `const` to declare them.
# --hints--
You should use `document.getElementById()` to get the `#cart-container` element.
Ви повинні використати `document.getElementById()`, щоб отримати елемент `#cart-container`.
```js
assert.match(code, /document\.getElementById\(\s*('|"|`)cart-container\1\s*\)/);
@@ -27,7 +27,7 @@ You should assign the `#cart-container` element to a variable named `cartContain
assert.match(code, /const\s+cartContainer\s*=\s*document\.getElementById\(\s*('|"|`)cart-container\1\s*\)/);
```
You should use `document.getElementById()` to get the `#products-container` element.
Ви повинні використати `document.getElementById()`, щоб отримати елемент `#products-container`.
```js
assert.match(code, /document\.getElementById\(\s*('|"|`)products-container\1\s*\)/);
@@ -39,7 +39,7 @@ You should assign the `#products-container` element to a variable named `product
assert.match(code, /const\s+productsContainer\s*=\s*document\.getElementById\(\s*('|"|`)products-container\1\s*\)/);
```
You should use `document.getElementById()` to get the `#dessert-card-container` element.
Ви повинні використати `document.getElementById()`, щоб отримати елемент `#dessert-card-container`.
```js
assert.match(code, /document\.getElementById\(\s*('|"|`)dessert-card-container\1\s*\)/);
@@ -1,6 +1,6 @@
---
id: 63ec19978a066607e23439f8
title: Step 2
title: Крок 2
challengeType: 0
dashedName: step-2
---
@@ -11,7 +11,7 @@ Now you need to get your two buttons. Continuing the pattern, get the `#cart-btn
# --hints--
You should use `document.getElementById()` to get the `#cart-btn` element.
Ви повинні використати `document.getElementById()`, щоб отримати елемент `#cart-btn`.
```js
assert.match(code, /document\.getElementById\(\s*('|"|`)cart-btn\1\s*\)/);
@@ -23,7 +23,7 @@ You should assign the `#cart-btn` element to a variable named `cartBtn`. Remembe
assert.match(code, /const\s+cartBtn\s*=\s*document\.getElementById\(\s*('|"|`)cart-btn\1\s*\)/);
```
You should use `document.getElementById()` to get the `#clear-cart-btn` element.
Ви повинні використати `document.getElementById()`, щоб отримати елемент `#clear-cart-btn`.
```js
assert.match(code, /document\.getElementById\(\s*('|"|`)clear-cart-btn\1\s*\)/);
@@ -1,6 +1,6 @@
---
id: 63ec1a16f930b108b8a76806
title: Step 3
title: Крок 3
challengeType: 0
dashedName: step-3
---
@@ -11,7 +11,7 @@ Next is to get your totals. Get the `#total-items`, `#subtotal`, `#taxes`, and `
# --hints--
You should use `document.getElementById()` to get the `#total-items` element.
Ви повинні використати `document.getElementById()`, щоб отримати елемент `#total-items`.
```js
assert.match(code, /document\.getElementById\(\s*('|"|`)total-items\1\s*\)/);
@@ -23,7 +23,7 @@ You should assign the `#total-items` element to a variable named `totalNumberOfI
assert.match(code, /const\s+totalNumberOfItems\s*=\s*document\.getElementById\(\s*('|"|`)total-items\1\s*\)/);
```
You should use `document.getElementById()` to get the `#subtotal` element.
Ви повинні використати `document.getElementById()`, щоб отримати елемент `#subtotal`.
```js
assert.match(code, /document\.getElementById\(\s*('|"|`)subtotal\1\s*\)/);
@@ -35,7 +35,7 @@ You should assign the `#subtotal` element to a variable named `cartSubTotal`. Re
assert.match(code, /const\s+cartSubTotal\s*=\s*document\.getElementById\(\s*('|"|`)subtotal\1\s*\)/);
```
You should use `document.getElementById()` to get the `#taxes` element.
Ви повинні використати `document.getElementById()`, щоб отримати елемент `#taxes`.
```js
assert.match(code, /document\.getElementById\(\s*('|"|`)taxes\1\s*\)/);
@@ -47,7 +47,7 @@ You should assign the `#taxes` element to a variable named `cartTaxes`. Remember
assert.match(code, /const\s+cartTaxes\s*=\s*document\.getElementById\(\s*('|"|`)taxes\1\s*\)/);
```
You should use `document.getElementById()` to get the `#total` element.
Ви повинні використати `document.getElementById()`, щоб отримати елемент `#total`.
```js
assert.match(code, /document\.getElementById\(\s*('|"|`)total\1\s*\)/);
@@ -1,6 +1,6 @@
---
id: 63ec1bbf5584390a7d08d41f
title: Step 4
title: Крок 4
challengeType: 0
dashedName: step-4
---
@@ -13,7 +13,7 @@ Then, use `let` to declare a variable named `isCartShowing` and set it to `false
# --hints--
You should use `document.getElementById()` to get the `#show-hide-cart` element.
Ви повинні використати `document.getElementById()`, щоб отримати елемент `#show-hide-cart`.
```js
assert.match(code, /document\.getElementById\(\s*('|"|`)show-hide-cart\1\s*\)/);
@@ -25,7 +25,7 @@ You should assign the `#show-hide-cart` element to a variable named `showHideCar
assert.match(code, /const\s+showHideCartSpan\s*=\s*document\.getElementById\(\s*('|"|`)show-hide-cart\1\s*\)/);
```
You should use `let` to declare a variable named `isCartShowing`.
Ви повинні використати `let`, щоб оголосити змінну під назвою `isCartShowing`.
```js
assert.match(code, /let\s+isCartShowing/);
@@ -1,6 +1,6 @@
---
id: 63ec1cb59f2a4c0be5b6dfa0
title: Step 5
title: Крок 5
challengeType: 0
dashedName: step-5
---
@@ -1,6 +1,6 @@
---
id: 63ec20a06fff670d37befbd9
title: Step 6
title: Крок 6
challengeType: 0
dashedName: step-6
---
@@ -1,6 +1,6 @@
---
id: 63ec3287b182ec0efe8a3135
title: Step 7
title: Крок 7
challengeType: 0
dashedName: step-7
---
@@ -1,6 +1,6 @@
---
id: 63ec3427fc3e9214c9ed2a14
title: Step 8
title: Крок 8
challengeType: 0
dashedName: step-8
---
@@ -1,6 +1,6 @@
---
id: 63ec36f6133df7160be3ec66
title: Step 9
title: Крок 9
challengeType: 0
dashedName: step-9
---
@@ -1,6 +1,6 @@
---
id: 63ec47b454495519739486a7
title: Step 10
title: Крок 10
challengeType: 0
dashedName: step-10
---
@@ -1,6 +1,6 @@
---
id: 63ee5d38a5d29d0696f8d820
title: Step 11
title: Крок 11
challengeType: 0
dashedName: step-11
---
@@ -1,6 +1,6 @@
---
id: 63ee5d8f9e7168076e932fe2
title: Step 12
title: Крок 12
challengeType: 0
dashedName: step-12
---
@@ -1,6 +1,6 @@
---
id: 63ee5e0f08e82208364c4128
title: Step 13
title: Крок 13
challengeType: 0
dashedName: step-13
---
@@ -1,6 +1,6 @@
---
id: 63ee5ea8be892e0955ab346c
title: Step 14
title: Крок 14
challengeType: 0
dashedName: step-14
---
@@ -19,19 +19,19 @@ Declare a `ShoppingCart` class.
# --hints--
You should declare a `ShoppingCart` variable.
Ви повинні оголосити змінну `ShoppingCart`.
```js
assert.match(code, /ShoppingCart/);
```
You should use the `class` keyword to declare a `ShoppingCart` class.
Ви повинні використати ключове слово `class`, щоб оголосити клас `ShoppingCart`.
```js
assert.match(code, /class\s+ShoppingCart\s*/);
```
Your `ShoppingCart` class should be empty.
Клас `ShoppingCart` повинен бути порожнім.
```js
assert.match(code, /class\s+ShoppingCart\s*\{\s*\}/);
@@ -1,6 +1,6 @@
---
id: 63ee5fc113bcb20a5db9214b
title: Step 15
title: Крок 15
challengeType: 0
dashedName: step-15
---
@@ -26,7 +26,7 @@ You should add a `constructor` method to the `ShoppingCart` class.
assert.match(code, /class\s+ShoppingCart\s*\{\s*constructor\(\s*\)\s*/)
```
Your `constructor` method should be empty.
Метод `constructor` повинен бути порожнім.
```js
assert.match(code, /class\s+ShoppingCart\s*\{\s*constructor\(\s*\)\s*\{\s*\}\s*\}/)
@@ -1,6 +1,6 @@
---
id: 63ee611d478dca0b77f6a393
title: Step 16
title: Крок 16
challengeType: 0
dashedName: step-16
---
@@ -1,6 +1,6 @@
---
id: 63ee7c664f9b65137d925c8a
title: Step 17
title: Крок 17
challengeType: 0
dashedName: step-17
---
@@ -39,7 +39,7 @@ const cart = new ShoppingCart();
assert.match(cart.addItem.toString(), /\(\s*id\s*,\s*products\s*\)/);
```
Your `addItem` method should be empty.
Метод `addItem` повинен бути порожнім.
```js
const cart = new ShoppingCart();
@@ -1,6 +1,6 @@
---
id: 63eea5cea403a81a68ae493c
title: Step 18
title: Крок 18
challengeType: 0
dashedName: step-18
---
@@ -1,6 +1,6 @@
---
id: 63eea817673c8e1c22927fa6
title: Step 19
title: Крок 19
challengeType: 0
dashedName: step-19
---
@@ -1,6 +1,6 @@
---
id: 63eea8e1e143ae1d098c8c9d
title: Step 20
title: Крок 20
challengeType: 0
dashedName: step-20
---
@@ -1,6 +1,6 @@
---
id: 63eeb8e86becbf1e75c2cb0d
title: Step 21
title: Крок 21
challengeType: 0
dashedName: step-21
---
@@ -1,6 +1,6 @@
---
id: 63eedebb0ec0231ff1cede1a
title: Step 22
title: Крок 22
challengeType: 0
dashedName: step-22
---
@@ -39,7 +39,7 @@ const cart = new ShoppingCart();
assert.match(cart.addItem.toString(), /this\.items\.forEach\(\s*function\s*\(\s*dessert\s*\)/);
```
Your callback function should be empty.
Функція зворотного виклику повинна бути порожньою.
```js
const cart = new ShoppingCart();
@@ -1,6 +1,6 @@
---
id: 63efdbc22a0c56070beabed7
title: Step 23
title: Крок 23
challengeType: 0
dashedName: step-23
---
@@ -1,6 +1,6 @@
---
id: 63efe370bbfc4a08d500118e
title: Step 24
title: Крок 24
challengeType: 0
dashedName: step-24
---
@@ -1,6 +1,6 @@
---
id: 63eff02f00e69a0b2ac10b43
title: Step 25
title: Крок 25
challengeType: 0
dashedName: step-25
---
@@ -1,6 +1,6 @@
---
id: 63eff98ffb1d5a0d24ec79cb
title: Step 26
title: Крок 26
challengeType: 0
dashedName: step-26
---
@@ -15,7 +15,7 @@ Assign your query to a `currentProductCountSpan` variable.
# --hints--
You should declare a `currentProductCountSpan` variable.
Ви повинні оголосити змінну `currentProductCountSpan`.
```js
const cart = new ShoppingCart();
@@ -29,7 +29,7 @@ const afterAdd = code.split("addItem")[1];
assert.match(afterAdd, /const\s+currentProductCountSpan\s*=/);
```
You should use `document.getElementById()` to get the matching element.
Ви повинні використати `document.getElementById()`, щоб отримати відповідний елемент.
```js
const cart = new ShoppingCart();
@@ -1,6 +1,6 @@
---
id: 63effe558c87a70e7072e447
title: Step 27
title: Крок 27
challengeType: 0
dashedName: step-27
---
@@ -1,6 +1,6 @@
---
id: 63f0165121a9181342d5bc66
title: Step 28
title: Крок 28
challengeType: 0
dashedName: step-28
---
@@ -1,6 +1,6 @@
---
id: 63f017b4ad028a148eb713c0
title: Step 29
title: Крок 29
challengeType: 0
dashedName: step-29
---
@@ -1,6 +1,6 @@
---
id: 63f01861f813e01564c95315
title: Step 30
title: Крок 30
challengeType: 0
dashedName: step-30
---
@@ -1,6 +1,6 @@
---
id: 63f018f04e487e164dc27bd9
title: Step 31
title: Крок 31
challengeType: 0
dashedName: step-31
---
@@ -1,6 +1,6 @@
---
id: 63f01c9791a0aa1751c73760
title: Step 32
title: Крок 32
challengeType: 0
dashedName: step-32
---
@@ -1,6 +1,6 @@
---
id: 63f0224ceb16dc196d2c860a
title: Step 33
title: Крок 33
challengeType: 0
dashedName: step-33
---
@@ -1,6 +1,6 @@
---
id: 63f026d041bc6c1a3d5cba0f
title: Step 34
title: Крок 34
challengeType: 0
dashedName: step-34
---
@@ -1,6 +1,6 @@
---
id: 63f0284532742c1b26c7a052
title: Step 35
title: Крок 35
challengeType: 0
dashedName: step-35
---
@@ -1,6 +1,6 @@
---
id: 63f0289df84a581bbdbd29b7
title: Step 36
title: Крок 36
challengeType: 0
dashedName: step-36
---
@@ -1,6 +1,6 @@
---
id: 63f0295e673b661ccb299e8a
title: Step 41
title: Крок 41
challengeType: 0
dashedName: step-41
---
@@ -1,6 +1,6 @@
---
id: 63f029b96b9e9e1df93be951
title: Step 42
title: Крок 42
challengeType: 0
dashedName: step-42
---
@@ -1,6 +1,6 @@
---
id: 63f02a4ef92d711ec1ff618c
title: Step 43
title: Крок 43
challengeType: 0
dashedName: step-43
---
@@ -1,6 +1,6 @@
---
id: 63f02b22cce1c11fe9604381
title: Step 44
title: Крок 44
challengeType: 0
dashedName: step-44
---
@@ -1,6 +1,6 @@
---
id: 63f02bdeb9b428208b97eb6b
title: Step 45
title: Крок 45
challengeType: 0
dashedName: step-45
---
@@ -1,6 +1,6 @@
---
id: 63f02c6e18773921ba50aa53
title: Step 46
title: Крок 46
challengeType: 0
dashedName: step-46
---
@@ -1,6 +1,6 @@
---
id: 63f0311f5ea9382388d6124f
title: Step 47
title: Крок 47
challengeType: 0
dashedName: step-47
---
@@ -1,6 +1,6 @@
---
id: 63f033fdb1fbcc254999fcc3
title: Step 37
title: Крок 37
challengeType: 0
dashedName: step-37
---
@@ -1,6 +1,6 @@
---
id: 63f03446c2ed3e264be6c7fc
title: Step 38
title: Крок 38
challengeType: 0
dashedName: step-38
---
@@ -1,6 +1,6 @@
---
id: 63f0348a54a177272071a595
title: Step 39
title: Крок 39
challengeType: 0
dashedName: step-39
---
@@ -1,6 +1,6 @@
---
id: 63f034d012f74627ce538d3a
title: Step 40
title: Крок 40
challengeType: 0
dashedName: step-40
---
@@ -1,6 +1,6 @@
---
id: 63f03686c5ea863533ec71f4
title: Step 48
title: Крок 48
challengeType: 0
dashedName: step-48
---
@@ -1,6 +1,6 @@
---
id: 63f036ec91fdf238c90665f5
title: Step 49
title: Крок 49
challengeType: 0
dashedName: step-49
---
@@ -1,6 +1,6 @@
---
id: 63f0370b340915399d31e5eb
title: Step 50
title: Крок 50
challengeType: 0
dashedName: step-50
---

Some files were not shown because too many files have changed in this diff Show More