From 14b8e8d537c0f7b2f33e8d27c449f661c0632ad8 Mon Sep 17 00:00:00 2001 From: camperbot Date: Thu, 12 Jan 2023 23:11:48 +0530 Subject: [PATCH] chore(i18n,learn): processed translations (#49004) --- .../convert-celsius-to-fahrenheit.md | 2 +- ...create-complex-multi-dimensional-arrays.md | 2 +- ...-an-array-to-store-a-collection-of-data.md | 2 +- ...ng-the-value-of-one-variable-to-another.md | 6 ++-- ...-variables-with-the-assignment-operator.md | 4 +-- .../iterate-with-javascript-for-loops.md | 2 +- ...rom-many-options-with-switch-statements.md | 2 +- ...plete-a-promise-with-resolve-and-reject.md | 2 +- .../search-and-replace.md | 10 +++---- .../inherit-behaviors-from-a-supertype.md | 4 +-- ...ral-string-with-different-possibilities.md | 20 ++++++------- .../match-literal-strings.md | 8 ++--- .../sea-level-predictor.md | 2 +- .../algorithms/implement-binary-search.md | 5 ++-- .../615f7ecb09de9a938ef94756.md | 2 +- .../62a8b6536156c51500739b41.md | 2 +- .../sea-level-predictor.md | 2 +- .../algorithms/implement-binary-search.md | 5 ++-- .../615f7ecb09de9a938ef94756.md | 2 +- .../62a8b6536156c51500739b41.md | 2 +- .../sea-level-predictor.md | 2 +- .../algorithms/implement-binary-search.md | 5 ++-- .../615f7ecb09de9a938ef94756.md | 2 +- .../62a8b6536156c51500739b41.md | 2 +- .../sea-level-predictor.md | 2 +- .../algorithms/implement-binary-search.md | 5 ++-- .../615f7ecb09de9a938ef94756.md | 2 +- .../62a8b6536156c51500739b41.md | 2 +- .../sea-level-predictor.md | 2 +- .../algorithms/implement-binary-search.md | 5 ++-- .../615f7ecb09de9a938ef94756.md | 2 +- .../62a8b6536156c51500739b41.md | 2 +- ...one-number-from-another-with-javascript.md | 4 +-- .../sea-level-predictor.md | 2 +- .../algorithms/implement-binary-search.md | 5 ++-- .../615f50473cc0196c6dd3892a.md | 6 ++-- .../615f51e4e5b24a6e80eccce1.md | 12 ++++---- .../615f575b50b91e72af079480.md | 10 +++---- .../615f61338c8ca176d6445574.md | 4 +-- .../615f666ac5edea782feb7e75.md | 6 ++-- .../615f6823d0815b7a991f2a75.md | 4 +-- .../615f6cc778f7698258467596.md | 4 +-- .../615f7c71eab8218f846e4503.md | 8 ++--- .../615f7d489a581590d1350288.md | 2 +- .../615f7de4487b64919bb4aa5e.md | 16 +++++----- .../615f7ecb09de9a938ef94756.md | 2 +- .../615f7fa959ab75948f96a0d6.md | 2 +- .../615f829d07b18f96f6f6684b.md | 4 +-- .../615f84f246e8ba98e3cd97be.md | 8 ++--- .../615f887466db4ba14b5342cc.md | 4 +-- .../615f8f1223601fa546e93f31.md | 4 +-- .../615f905fbd1017a65ca224eb.md | 2 +- .../62a8b6536156c51500739b41.md | 2 +- .../sea-level-predictor.md | 2 +- .../algorithms/implement-binary-search.md | 5 ++-- .../615f7ecb09de9a938ef94756.md | 2 +- .../62a8b6536156c51500739b41.md | 2 +- ...one-number-from-another-with-javascript.md | 4 +-- .../sea-level-predictor.md | 2 +- .../algorithms/implement-binary-search.md | 5 ++-- .../615f42a021625f656101ef93.md | 6 ++-- .../615f4bfb9de4a16703b56eb6.md | 6 ++-- .../615f4ec58334106a4170c2a8.md | 4 +-- .../615f4f9e4a40566b776a8f38.md | 10 +++---- .../615f50473cc0196c6dd3892a.md | 6 ++-- .../615f51257a8a516d80b6c743.md | 4 +-- .../615f51e4e5b24a6e80eccce1.md | 12 ++++---- .../615f522dea4f776f64dc3e91.md | 6 ++-- .../615f5486b8fd4b71633f69b0.md | 14 ++++----- .../615f575b50b91e72af079480.md | 12 ++++---- .../615f5af373a68e744a3c5a76.md | 8 ++--- .../615f5fd85d0062761f288364.md | 6 ++-- .../615f61338c8ca176d6445574.md | 6 ++-- .../615f666ac5edea782feb7e75.md | 8 ++--- .../615f671b6d1919792745aa5d.md | 10 +++---- .../615f6823d0815b7a991f2a75.md | 6 ++-- .../615f6b2d164f81809efd9bdc.md | 16 +++++----- .../615f6cc778f7698258467596.md | 6 ++-- .../615f6fddaac1e083502d3e6a.md | 2 +- .../615f70077a4ff98424236c1e.md | 2 +- .../615f72a872354a850d4f533e.md | 2 +- .../615f74a71f1e498619e38ee8.md | 2 +- .../615f7ad94380408d971d14f6.md | 2 +- .../615f7bc680f7168ea01ebf99.md | 4 +-- .../615f7c71eab8218f846e4503.md | 10 +++---- .../615f7d489a581590d1350288.md | 4 +-- .../615f7de4487b64919bb4aa5e.md | 18 +++++------ .../615f7e7281626a92bbd62da8.md | 18 +++++------ .../615f7ecb09de9a938ef94756.md | 20 ++++++------- .../615f7fa959ab75948f96a0d6.md | 4 +-- .../615f808d85793195b0f53be9.md | 4 +-- .../615f829d07b18f96f6f6684b.md | 6 ++-- .../615f83ef928ec9982b785b6a.md | 8 ++--- .../615f84f246e8ba98e3cd97be.md | 10 +++---- .../615f887466db4ba14b5342cc.md | 6 ++-- .../615f89e055040ba294719d2f.md | 12 ++++---- .../615f8bfe0f30a1a3c340356b.md | 8 ++--- .../615f8f1223601fa546e93f31.md | 6 ++-- .../615f905fbd1017a65ca224eb.md | 4 +-- .../615f94786869e1a7fec54375.md | 2 +- .../615f951dff9317a900ef683f.md | 2 +- .../635bde33c91c80540eae239b.md | 8 ++--- .../6395d33ab5d91bf317107c48.md | 8 ++--- .../6396e33fe478dd264ebbf278.md | 12 ++++---- .../62a8b6536156c51500739b41.md | 2 +- .../practice-comparing-different-values.md | 14 ++++----- .../basic-javascript/profile-lookup.md | 10 +++---- .../quoting-strings-with-single-quotes.md | 18 +++++------ .../basic-javascript/record-collection.md | 30 +++++++++---------- .../replace-loops-using-recursion.md | 14 ++++----- .../replacing-if-else-chains-with-switch.md | 14 ++++----- ...urn-a-value-from-a-function-with-return.md | 14 ++++----- .../sea-level-predictor.md | 2 +- .../algorithms/implement-binary-search.md | 5 ++-- .../615f7ecb09de9a938ef94756.md | 2 +- .../62a8b6536156c51500739b41.md | 2 +- 116 files changed, 359 insertions(+), 350 deletions(-) diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/convert-celsius-to-fahrenheit.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/convert-celsius-to-fahrenheit.md index a4f5d5ea085..eb80337ecab 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/convert-celsius-to-fahrenheit.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/convert-celsius-to-fahrenheit.md @@ -10,7 +10,7 @@ dashedName: convert-celsius-to-fahrenheit معادلة تحويل درجة الحرارة من الدرجة المئوية إلى درجة فهرنهايت هي: درجة الحرارة المئوية مضروبة في `9/5`, مضاف إليها `32`. -لديك المتغير `celsius` ويمثل درجة الحرارة المئوية. استخدم المتغير `fahrenheit` الذي سبق تعريفه وعيّن درجة حرارة فهرنهايت المعادلة لدرجة الحرارة المئوية المعطاة. استخدم المعادلة في السطر الأول، لتحويل درجة الحرارة المئوية إلى فهرنهايت. +لديك المتغير `celsius` ويمثل درجة الحرارة المئوية. استخدم المتغير `fahrenheit` الذي سبق أعلانه وعيّن درجة حرارة فهرنهايت المعادلة لدرجة الحرارة المئوية المعطاة. استخدم المعادلة في السطر الأول، لتحويل درجة الحرارة المئوية إلى فهرنهايت. # --hints-- diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/create-complex-multi-dimensional-arrays.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/create-complex-multi-dimensional-arrays.md index 363bbc76bfb..af68bb2ae75 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/create-complex-multi-dimensional-arrays.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/create-complex-multi-dimensional-arrays.md @@ -51,7 +51,7 @@ console.log(nestedArray[2][1][0][0][0]); # --instructions-- -لقد حددنا متغير `myNestedArray`، يساويا لقائمة. عدل `myNestedArray` باستخدام أي مجموعة من مقاطع نصية (strings)، و أرقام (numbers)، و حالات (booleans) لعناصر البيانات، بحيث يكون لديها على وجه التحديد خمس مستويات من العمق (تذكر، أن القائمة الخارجية هي المستوى 1). في مكان ما على المستوى الثالث ضف المقطع `deep`, وعلى المستوى الرابع ضف المقطع `deeper`, وعلى المستوى الخامس ضف المقطع `deepest`. +لقد أعلنا متغير `myNestedArray`، مساويا لقائمة. عدل `myNestedArray` باستخدام أي مجموعة من مقاطع نصية (strings)، و أرقام (numbers)، و حالات (booleans) لعناصر البيانات، بحيث يكون لديها على وجه التحديد خمس مستويات من العمق (تذكر، أن القائمة الخارجية هي المستوى 1). في مكان ما على المستوى الثالث ضف المقطع `deep`, وعلى المستوى الرابع ضف المقطع `deeper`, وعلى المستوى الخامس ضف المقطع `deepest`. # --hints-- diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/use-an-array-to-store-a-collection-of-data.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/use-an-array-to-store-a-collection-of-data.md index ef3dbe392a7..6c7c2515bec 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/use-an-array-to-store-a-collection-of-data.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-data-structures/use-an-array-to-store-a-collection-of-data.md @@ -46,7 +46,7 @@ let complexArray = [ # --instructions-- -لقد حددنا متغير يسمى `yourArray`. أكمل البيان بتعيين array من 5 عناصر في الأقل في الطول لمتغير `yourArray`. يجب أن تحتوي array على stringواحد علي الأفل و number واحد و boolean واحد. +لقد أعلنا متغير يسمى `yourArray`. أكمل البيان بتعيين array من 5 عناصر في الأقل في الطول لمتغير `yourArray`. يجب أن تحتوي array على stringواحد علي الأفل و number واحد و boolean واحد. # --hints-- diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/assigning-the-value-of-one-variable-to-another.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/assigning-the-value-of-one-variable-to-another.md index 534e1c7c510..cfa32f47c14 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/assigning-the-value-of-one-variable-to-another.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/assigning-the-value-of-one-variable-to-another.md @@ -1,6 +1,6 @@ --- id: 5ee127a03c3b35dd45426493 -title: تعيين قيمة متغير إلى متغير آخر (Assigning the Value of One Variable to Another) +title: تعيين قيمة متغير إلى متغير آخر challengeType: 1 videoUrl: '' forumTopicId: 418265 @@ -9,7 +9,7 @@ dashedName: assigning-the-value-of-one-variable-to-another # --description-- -بعد تعيين قيمة إلى متغير باستخدام عملية تكليف (=)، يمكنك تعيين قيمة هذا المتغير إلى متغير آخر باستخدام عمليةتكليف (=) ذاتها. +بعد تعيين قيمة إلى متغير باستخدام عملية تكليف (=)، يمكنك تعيين قيمة هذا المتغير إلى متغير آخر باستخدام عملية تكليف (=) ذاتها. ```js var myVar; @@ -18,7 +18,7 @@ var myNum; myNum = myVar; ``` -ما ورد أعلنه يظهر تعريف المتغير `myVar` دون قيمة، ثم يخصص له قيمة `5`. بعد ذلك، يتم إعلان متغير آخر يدعى `myNum` دون قيمة. ثم يتم تعيين قيمة المتغير `myVar` (التي تساوي `5`) إلى المتغير `myNum`. الآن المتغير `myNum` لديه القيمة `5`. +ما ورد أعلى يعلن المتغير `myVar` دون قيمة، ثم يخصص له قيمة `5`. بعد ذلك، يتم إعلان متغير آخر يدعى `myNum` دون قيمة. ثم يتم تعيين قيمة المتغير `myVar` (التي تساوي `5`) إلى المتغير `myNum`. الآن المتغير `myNum` لديه القيمة `5`. # --instructions-- diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/initializing-variables-with-the-assignment-operator.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/initializing-variables-with-the-assignment-operator.md index 7400e13c985..9ddea60f7fd 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/initializing-variables-with-the-assignment-operator.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/initializing-variables-with-the-assignment-operator.md @@ -1,6 +1,6 @@ --- id: 56533eb9ac21ba0edf2244a9 -title: تهيئة المتغيرات باستخدام مشغل التعيين (Initializing Variables with the Assignment Operator) +title: تهيئة المتغيرات باستخدام مشغل التعيين challengeType: 1 videoUrl: 'https://scrimba.com/c/cWJ4Bfb' forumTopicId: 301171 @@ -19,7 +19,7 @@ var myVar = 0; # --instructions-- -عرّف متغير `a` باستخدام `var` و عيّن له قيمة `9`. +أعلن متغير `a` باستخدام `var` و عيّن له قيمة `9`. # --hints-- diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/iterate-with-javascript-for-loops.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/iterate-with-javascript-for-loops.md index f150e50afed..6f9323f4a62 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/iterate-with-javascript-for-loops.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/iterate-with-javascript-for-loops.md @@ -17,7 +17,7 @@ dashedName: iterate-with-javascript-for-loops `for (a; b; c)`، حيث ان `a` هي تعبير التهيئة، `b` هي تعبير الشرط، و `c` هي العبارة النهائية. -يتم تنفيذ عبارة التهيئة مرة واحدة فقط قبل بَدْء الحلقة. يستخدم عادة لتحديد وإعداد متغير الحلقة الخاص بك. +يتم تنفيذ عبارة التهيئة مرة واحدة فقط قبل بَدْء الحلقة. يستخدم عادة لإعلان وإعداد متغير الحلقة الخاص بك. يتم تقييم عبارة الشرط في بداية كل حلقة وسوف يستمر مادام أنه يقيّم إلى `true`. عندما يكون الشرط `false` في بداية الحلقة سوف تتوقف الحلقة عن التنفيذ. هذا يعني أن إذا بدأ الشرط كزائف (false)، لن تنفذ الحلقة (loop) الخاصة بك أبدا. diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/selecting-from-many-options-with-switch-statements.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/selecting-from-many-options-with-switch-statements.md index c47431ddccb..6daec49af61 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/selecting-from-many-options-with-switch-statements.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/selecting-from-many-options-with-switch-statements.md @@ -54,7 +54,7 @@ assert(caseInSwitch(2) === 'beta'); assert(caseInSwitch(3) === 'gamma'); ``` -`caseInSwitch(4)` يجب أن يكون له قيمة السلسلة (string) النصية `delta` +`caseInSwitch(4)` يجب أن يكون له قيمة المقطع (string) النصي `delta` ```js assert(caseInSwitch(4) === 'delta'); 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 dc36332f1b1..489ce5d4552 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 @@ -24,7 +24,7 @@ const myPromise = new Promise((resolve, reject) => { # --instructions-- -اجعل كائن promise يتعامل مع النجاح والفشل. إذا كان `responseFromServer` صحيحاً `true`، ففعيل طريقة `resolve` لإكمال كائن promise بنجاح. مرر `resolve` إلى سلسلة (string) نصية بقيمة `We got the data`. إذا كانت حالة `responseFromServer` بنوع `false`، استخدم طريقة `reject` كبديل و مررها المقطع النصي (string) الآتي: `Data not received`. +اجعل كائن promise يتعامل مع النجاح والفشل. إذا كان `responseFromServer` صحيحاً `true`، ففعيل طريقة `resolve` لإكمال كائن promise بنجاح. مرر `resolve` مقطع نصي بقيمة `We got the data`. إذا كانت حالة `responseFromServer` بقيمة `false`، استخدم طريقة `reject` كبديل و مررها المقطع النصي (string) الآتي: `Data not received`. # --hints-- diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/search-and-replace.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/search-and-replace.md index 81a214a4046..095966de95d 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/search-and-replace.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/search-and-replace.md @@ -20,7 +20,7 @@ dashedName: search-and-replace # --hints-- -`myReplace("Let us go to the store", "store", "mall")` يجب أن يعيد السلسلة النصية `Let us go to the mall`. +`myReplace("Let us go to the store", "store", "mall")` يجب أن يعيد المقطع النصي `Let us go to the mall`. ```js assert.deepEqual( @@ -29,7 +29,7 @@ assert.deepEqual( ); ``` -`myReplace("He is Sleeping on the couch", "Sleeping", "sitting")` يجب أن يعيد السلسلة النصية `He is Sitting on the couch`. +`myReplace("He is Sleeping on the couch", "Sleeping", "sitting")` يجب أن يعيد المقطع النصي `He is Sitting on the couch`. ```js assert.deepEqual( @@ -38,7 +38,7 @@ assert.deepEqual( ); ``` -`myReplace("I think we should look up there", "up", "Down")` يجب أن يعيد السلسلة النصية `I think we should look down there`. +`myReplace("I think we should look up there", "up", "Down")` يجب أن يعيد المقطع النصي `I think we should look down there`. ```js assert.deepEqual( @@ -47,7 +47,7 @@ assert.deepEqual( ); ``` -`myReplace("This has a spellngi error", "spellngi", "spelling")` يجب أن يعيد السلسلة النصية `This has a spelling error`. +`myReplace("This has a spellngi error", "spellngi", "spelling")` يجب أن يعيد المقطع النصي `This has a spelling error`. ```js assert.deepEqual( @@ -56,7 +56,7 @@ assert.deepEqual( ); ``` -`myReplace("His name is Tom", "Tom", "john")` يجب أن يعيد السلسلة النصية `His name is John`. +`myReplace("His name is Tom", "Tom", "john")` يجب أن يعيد المقطع النصي `His name is John`. ```js assert.deepEqual( diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/object-oriented-programming/inherit-behaviors-from-a-supertype.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/object-oriented-programming/inherit-behaviors-from-a-supertype.md index 107f5f942bf..65e3159bfb7 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/object-oriented-programming/inherit-behaviors-from-a-supertype.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/object-oriented-programming/inherit-behaviors-from-a-supertype.md @@ -44,13 +44,13 @@ animal instanceof Animal; # --hints-- -يجب تعريف متغير `duck`. +يجب إعلان متغير `duck`. ```js assert(typeof duck !== 'undefined'); ``` -يجب تعريف متغير `beagle`. +يجب إعلان متغير `beagle`. ```js assert(typeof beagle !== 'undefined'); diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/regular-expressions/match-a-literal-string-with-different-possibilities.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/regular-expressions/match-a-literal-string-with-different-possibilities.md index 2ea80cd2c00..1bf8d52fc8e 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/regular-expressions/match-a-literal-string-with-different-possibilities.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/regular-expressions/match-a-literal-string-with-different-possibilities.md @@ -1,6 +1,6 @@ --- id: 587d7db4367417b2b2512b90 -title: طابق سلسلة حرفية (Literal String) مع احتمالات مختلفة +title: طابق مقطع نصي حرفي (Literal String) مع احتمالات مختلفة challengeType: 1 forumTopicId: 301345 dashedName: match-a-literal-string-with-different-possibilities @@ -8,9 +8,9 @@ dashedName: match-a-literal-string-with-different-possibilities # --description-- -باستخدام regexes مثل `/coding/`، يمكنك البحث عن النمط `coding` في سلسلة (string) أخرى. +باستخدام regexes مثل `/coding/`، يمكنك البحث عن النمط `coding` في مقطع نصي أخر. -هذا جيد للبحث عن سلسلة (string) واحدة، لكنه يقتصر على نمط واحد فقط. يمكنك البحث عن أنماط متعددة باستخدام `alternation` أو رمز `OR` التالي: `|`. +هذا جيد للبحث في مقطع نصي (string) واحد، لكنه يقتصر على نمط واحد فقط. يمكنك البحث عن أنماط متعددة باستخدام `alternation` أو رمز `OR` التالي: `|`. هذا المشغل يطابق الأنماط قبله أو بعده. على سبيل المثال، إذا كنت ترغب في مطابقة السلاسل (strings) باسم `yes` أو `no`، تريد regex إن يكون `/yes|no/`. @@ -22,49 +22,49 @@ dashedName: match-a-literal-string-with-different-possibilities # --hints-- -الـ regex الآتي `petRegex` يجب أن يرجع `true` للسلسلة `John has a pet dog.` +نمطـ regex الآتي `petRegex` يجب أن يرجع `true` للمقطع النصي `John has a pet dog.` ```js petRegex.lastIndex = 0; assert(petRegex.test('John has a pet dog.')); ``` -الـ regexا لآتي `petRegex` يجب أن يرجع `false` للسلسلة `Emma has a pet rock.` +نمط regex الآتي `petRegex` يجب أن يرجع `false` للمقطع النصي `Emma has a pet rock.` ```js petRegex.lastIndex = 0; assert(!petRegex.test('Emma has a pet rock.')); ``` -الـ regex الآتي `petRegex` يجب أن يرجع `true` للسلسلة `Emma has a pet bird.` +نمط regex الآتي `petRegex` يجب أن يرجع `true` للمقطع النصي `Emma has a pet bird.` ```js petRegex.lastIndex = 0; assert(petRegex.test('Emma has a pet bird.')); ``` -الـ regex الآتي `petRegex` يجب أن يرجع `true` للسلسلة `Liz has a pet cat.` +نمطـ regex الآتي `petRegex` يجب أن يرجع `true` للمقطع النصي `Liz has a pet cat.` ```js petRegex.lastIndex = 0; assert(petRegex.test('Liz has a pet cat.')); ``` -الـ regex الآتي `petRegex` يجب أن يرجع `false` للسلسلة `Kara has a pet dolphin.` +نمط regex الآتي `petRegex` يجب أن يرجع `false` للمقطع النصي `Kara has a pet dolphin.` ```js petRegex.lastIndex = 0; assert(!petRegex.test('Kara has a pet dolphin.')); ``` -الـ regex الآتي `petRegex` يجب أن يرجع `true` للسلسلة `Alice has a pet fish.` +نمط regex الآتي `petRegex` يجب أن يرجع `true` للمقطع النصي `Alice has a pet fish.` ```js petRegex.lastIndex = 0; assert(petRegex.test('Alice has a pet fish.')); ``` -الـ regex الآتي `petRegex` يجب أن يرجع `false` للسلسلة `Jimmy has a pet computer.` +نمط regex الآتي `petRegex` يجب أن يرجع `false` للمقطع النصي `Jimmy has a pet computer.` ```js petRegex.lastIndex = 0; diff --git a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/regular-expressions/match-literal-strings.md b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/regular-expressions/match-literal-strings.md index 12e58822420..77475b0dae7 100644 --- a/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/regular-expressions/match-literal-strings.md +++ b/curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/regular-expressions/match-literal-strings.md @@ -8,7 +8,7 @@ dashedName: match-literal-strings # --description-- -في التحدي الأخير، بحثت عن كلمة `Hello` باستخدام regular expression الاتي `/Hello/`. هذا regex يبحث عن مطابقة حرفية في string الآتي `Hello`. إليك مثال آخر يبحث عن مطابقة حرفية في string الآتي `Kevin`: +في التحدي الأخير، بحثت عن كلمة `Hello` باستخدام regular expression الاتي `/Hello/`. هذا regex يبحث عن مطابقة حرفية في المقطع النصي الآتي `Hello`. إليك مثال آخر يبحث عن مطابقة حرفية في المقطع النصي الآتي `Kevin`: ```js let testStr = "Hello, my name is Kevin."; @@ -31,11 +31,11 @@ wrongRegex.test(testStr); # --instructions-- -أكمل regex الأتي `waldoRegex` للعثور على `"Waldo"` في السلسلة (string) النصية `waldoIsHiding` مع مطابقة حرفية. +أكمل regex الأتي `waldoRegex` للعثور على `"Waldo"` في المقطع (string) النصية `waldoIsHiding` مع مطابقة حرفية. # --hints-- -إن regex الخاص بك `waldoRegex` يجب أن يجد string الآتي `Waldo` +إن regex الخاص بك `waldoRegex` يجب أن يجد المقطع النصي الآتي `Waldo` ```js waldoRegex.lastIndex = 0; @@ -49,7 +49,7 @@ waldoRegex.lastIndex = 0; assert(!waldoRegex.test('Somewhere is hiding in this text.')); ``` -يجب عليك إجراء مطابقة حرفية للسلسلة (string) النصية باستخدام regex الخاص بك. +يجب عليك إجراء مطابقة حرفية لالمقطع (string) النصية باستخدام regex الخاص بك. ```js assert(!/\/.*\/i/.test(code)); diff --git a/curriculum/challenges/arabic/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md b/curriculum/challenges/arabic/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md index 6e50f9b861a..3b3ad3a4b1f 100644 --- a/curriculum/challenges/arabic/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md +++ b/curriculum/challenges/arabic/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md @@ -28,7 +28,7 @@ You will analyze a dataset of the global average sea level change since 1880. Yo Use the data to complete the following tasks: - Use Pandas to import the data from `epa-sea-level.csv`. -- Use matplotlib to create a scatter plot using the `Year` column as the x-axis and the `CSIRO Adjusted Sea Level` column as the y-axix. +- Use matplotlib to create a scatter plot using the `Year` column as the x-axis and the `CSIRO Adjusted Sea Level` column as the y-axis. - Use the `linregress` function from `scipy.stats` to get the slope and y-intercept of the line of best fit. Plot the line of best fit over the top of the scatter plot. Make the line go through the year 2050 to predict the sea level rise in 2050. - Plot a new line of best fit just using the data from year 2000 through the most recent year in the dataset. Make the line also go through the year 2050 to predict the sea level rise in 2050 if the rate of rise continues as it has since the year 2000. - The x label should be `Year`, the y label should be `Sea Level (inches)`, and the title should be `Rise in Sea Level`. diff --git a/curriculum/challenges/arabic/10-coding-interview-prep/algorithms/implement-binary-search.md b/curriculum/challenges/arabic/10-coding-interview-prep/algorithms/implement-binary-search.md index bd2e8306ee1..caa2c40514c 100644 --- a/curriculum/challenges/arabic/10-coding-interview-prep/algorithms/implement-binary-search.md +++ b/curriculum/challenges/arabic/10-coding-interview-prep/algorithms/implement-binary-search.md @@ -10,9 +10,10 @@ dashedName: implement-binary-search Binary search is an **O(log(n))** efficiency algorithm for searching a sorted array to find an element. It operates using the following steps: -1. Find the middle `value` of a sorted array. If `value == target` return (found it!). +1. Find the middle `value` of a sorted array. If `value == target` return `true` (The value has been found and the search is complete). 1. If middle `value < target`, search right half of array in next compare. 1. If middle `value > target`, search left half of array in next compare. +1. If after searching the whole array the value is not present, return `false` (The array has been searched and the value is not in the array). As you can see, you are successively halving an array, which gives you the log(n) efficiency. For this challenge, we want you to show your work - how you got to the target value... the path you took! @@ -20,7 +21,7 @@ As you can see, you are successively halving an array, which gives you the log(n Write a function `binarySearch` that implements the binary search algorithm on an array, returning the path you took (each middle value comparison) to find the target in an array. -The function takes a sorted array of integers and a target value as input. It returns an array containing (in-order) the middle value you found at each halving of the original array until you found the target value. The target value should be the last element of the returned array. If value not is found, return the string `Value Not Found`. +The function takes a sorted array of integers and a target value as input. It returns an array containing (in-order) the middle value you found at each halving of the original array until you found the target value. The target value should be the last element of the returned array. If the value is not found, return the string `Value Not Found`. For example, `binarySearch([1,2,3,4,5,6,7], 5)` would return `[4,6,5]`. diff --git a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md index fbc72968691..b8c48515c38 100644 --- a/curriculum/challenges/arabic/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md +++ b/curriculum/challenges/arabic/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md @@ -7,7 +7,7 @@ dashedName: step-55 # --description-- -أضف عنصر `p` آخر مع النص `Total Carbohydrate 37g 13%`. Like before, use `span` elements to make the text `Total Carbohydrate` bold, and the text `13%` bold. Also add an additional `span` element to wrap the `Total Carbohydrate 37g` text in a span element so to have it aligned to the left, and `13%` to the right. +أضف عنصر `p` آخر مع النص `Total Carbohydrate 37g 13%`. Like before, use `span` elements to make the text `Total Carbohydrate` and `13%` bold. Also add an additional `span` element to wrap the `Total Carbohydrate 37g` text in a span element so to have it aligned to the left, and `13%` to the right. # --hints-- diff --git a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md index a8bef26a706..294662a5750 100644 --- a/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md +++ b/curriculum/challenges/arabic/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md @@ -7,7 +7,7 @@ dashedName: step-62 # --description-- -The `locations` array contains two locations: the town square and the store. Currently you are passing that entire array into the update functions. Pass in only the first element of the `locations` array by adding `[0]` at the end of the variable. For example: `myFunction(arg[0]);`. +The `locations` array contains two locations: the `town square` and the `store`. Currently you are passing that entire array into the `update` function. Pass in only the first element of the `locations` array by adding `[0]` at the end of the variable. For example: `myFunction(arg[0]);`. This is called bracket notation. Values in an array are accessed by index. Indices are numerical values and start at 0 - this is called zero-based indexing. `arg[0]` would be the first element in the `arg` array. diff --git a/curriculum/challenges/chinese-traditional/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md b/curriculum/challenges/chinese-traditional/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md index 4f7f056d01c..f909ca84afa 100644 --- a/curriculum/challenges/chinese-traditional/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md +++ b/curriculum/challenges/chinese-traditional/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md @@ -28,7 +28,7 @@ dashedName: sea-level-predictor 使用數據完成以下任務: - 使用 Pandas 從 `epa-sea-level.csv` 導入數據。 -- 使用 matplotlib 創建散點圖,將 `Year` 列作爲 x 軸,將 `CSIRO Adjusted Sea Level` 列作爲 y 軸。 +- Use matplotlib to create a scatter plot using the `Year` column as the x-axis and the `CSIRO Adjusted Sea Level` column as the y-axis. - 使用 `scipy.stats` 中的 `linregress` 函數來獲得最佳擬合線的斜率和 y 截距。 在散點圖的頂部繪製最佳擬合線。 使線穿過 2050 年以預測 2050 年的海平面上升。 - 僅使用數據集中從 2000 年到最近一年的數據繪製一條新的最佳擬合線。 如果上升速度繼續與 2000 年一樣,則使該線也經過 2050 年以預測 2050 年的海平面上升。 - x 標籤應爲 `Year`,y 標籤應爲 `Sea Level (inches)`,標題應爲 `Rise in Sea Level`。 diff --git a/curriculum/challenges/chinese-traditional/10-coding-interview-prep/algorithms/implement-binary-search.md b/curriculum/challenges/chinese-traditional/10-coding-interview-prep/algorithms/implement-binary-search.md index 6994926d584..87329b30326 100644 --- a/curriculum/challenges/chinese-traditional/10-coding-interview-prep/algorithms/implement-binary-search.md +++ b/curriculum/challenges/chinese-traditional/10-coding-interview-prep/algorithms/implement-binary-search.md @@ -10,9 +10,10 @@ dashedName: implement-binary-search 二分搜索是一種 **O(log(n))** 效率的算法,用於在已排序的數組以查找元素。 它通過以下步驟運行: -1. 查找已排序數組的中間值 `value`。 如果 `value == target`,則返回(找到了!)。 +1. 查找已排序數組的中間值 `value`。 If `value == target` return `true` (The value has been found and the search is complete). 1. 如果中間值 `value < target`,則在下一次比較中搜索數組的右半部分。 1. 如果中間值 `value > target`,則在下一次比較中搜索數組的左半部分。 +1. If after searching the whole array the value is not present, return `false` (The array has been searched and the value is not in the array). 如你所見,你連續將數組減半,這爲你提供了 log(n) 效率。 對於這個挑戰,我們希望你展示你的工作——你是如何到達目標值的……你走過的路! @@ -20,7 +21,7 @@ dashedName: implement-binary-search 編寫一個函數 `binarySearch` 來實現對數組的二分查找算法,返回在數組中查找目標所採用的路徑(每個中間值比較)。 -該函數將一個排序的整數數組和一個目標值作爲輸入。 它返回一個數組,其中包含(按順序)你在原始數組的每個減半處找到的中間值,直到你找到目標值。 目標值應該是返回數組的最後一個元素。 如果未找到值,則返回字符串 `Value Not Found`。 +該函數將一個排序的整數數組和一個目標值作爲輸入。 它返回一個數組,其中包含(按順序)你在原始數組的每個減半處找到的中間值,直到你找到目標值。 目標值應該是返回數組的最後一個元素。 If the value is not found, return the string `Value Not Found`. 例如,`binarySearch([1,2,3,4,5,6,7], 5)` 將返回 `[4,6,5]`。 diff --git a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md index 13cbf295fcf..3add8f85d7e 100644 --- a/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md +++ b/curriculum/challenges/chinese-traditional/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md @@ -7,7 +7,7 @@ dashedName: step-55 # --description-- -添加另一個 `p` 元素,其文本爲 `Total Carbohydrate 37g 13%`。 Like before, use `span` elements to make the text `Total Carbohydrate` bold, and the text `13%` bold. Also add an additional `span` element to wrap the `Total Carbohydrate 37g` text in a span element so to have it aligned to the left, and `13%` to the right. +添加另一個 `p` 元素,其文本爲 `Total Carbohydrate 37g 13%`。 Like before, use `span` elements to make the text `Total Carbohydrate` and `13%` bold. Also add an additional `span` element to wrap the `Total Carbohydrate 37g` text in a span element so to have it aligned to the left, and `13%` to the right. # --hints-- diff --git a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md index a8bef26a706..294662a5750 100644 --- a/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md +++ b/curriculum/challenges/chinese-traditional/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md @@ -7,7 +7,7 @@ dashedName: step-62 # --description-- -The `locations` array contains two locations: the town square and the store. Currently you are passing that entire array into the update functions. Pass in only the first element of the `locations` array by adding `[0]` at the end of the variable. For example: `myFunction(arg[0]);`. +The `locations` array contains two locations: the `town square` and the `store`. Currently you are passing that entire array into the `update` function. Pass in only the first element of the `locations` array by adding `[0]` at the end of the variable. For example: `myFunction(arg[0]);`. This is called bracket notation. Values in an array are accessed by index. Indices are numerical values and start at 0 - this is called zero-based indexing. `arg[0]` would be the first element in the `arg` array. diff --git a/curriculum/challenges/chinese/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md b/curriculum/challenges/chinese/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md index 74b1a1d0bdb..aeb1d8fe9d1 100644 --- a/curriculum/challenges/chinese/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md +++ b/curriculum/challenges/chinese/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md @@ -28,7 +28,7 @@ dashedName: sea-level-predictor 使用数据完成以下任务: - 使用 Pandas 从 `epa-sea-level.csv` 导入数据。 -- 使用 matplotlib 创建散点图,将 `Year` 列作为 x 轴,将 `CSIRO Adjusted Sea Level` 列作为 y 轴。 +- Use matplotlib to create a scatter plot using the `Year` column as the x-axis and the `CSIRO Adjusted Sea Level` column as the y-axis. - 使用 `scipy.stats` 中的 `linregress` 函数来获得最佳拟合线的斜率和 y 截距。 在散点图的顶部绘制最佳拟合线。 使线穿过 2050 年以预测 2050 年的海平面上升。 - 仅使用数据集中从 2000 年到最近一年的数据绘制一条新的最佳拟合线。 如果上升速度继续与 2000 年一样,则使该线也经过 2050 年以预测 2050 年的海平面上升。 - x 标签应为 `Year`,y 标签应为 `Sea Level (inches)`,标题应为 `Rise in Sea Level`。 diff --git a/curriculum/challenges/chinese/10-coding-interview-prep/algorithms/implement-binary-search.md b/curriculum/challenges/chinese/10-coding-interview-prep/algorithms/implement-binary-search.md index d0153acf95a..b3227def516 100644 --- a/curriculum/challenges/chinese/10-coding-interview-prep/algorithms/implement-binary-search.md +++ b/curriculum/challenges/chinese/10-coding-interview-prep/algorithms/implement-binary-search.md @@ -10,9 +10,10 @@ dashedName: implement-binary-search 二分搜索是一种 **O(log(n))** 效率的算法,用于在已排序的数组以查找元素。 它通过以下步骤运行: -1. 查找已排序数组的中间值 `value`。 如果 `value == target`,则返回(找到了!)。 +1. 查找已排序数组的中间值 `value`。 If `value == target` return `true` (The value has been found and the search is complete). 1. 如果中间值 `value < target`,则在下一次比较中搜索数组的右半部分。 1. 如果中间值 `value > target`,则在下一次比较中搜索数组的左半部分。 +1. If after searching the whole array the value is not present, return `false` (The array has been searched and the value is not in the array). 如你所见,你连续将数组减半,这为你提供了 log(n) 效率。 对于这个挑战,我们希望你展示你的工作——你是如何到达目标值的……你走过的路! @@ -20,7 +21,7 @@ dashedName: implement-binary-search 编写一个函数 `binarySearch` 来实现对数组的二分查找算法,返回在数组中查找目标所采用的路径(每个中间值比较)。 -该函数将一个排序的整数数组和一个目标值作为输入。 它返回一个数组,其中包含(按顺序)你在原始数组的每个减半处找到的中间值,直到你找到目标值。 目标值应该是返回数组的最后一个元素。 如果未找到值,则返回字符串 `Value Not Found`。 +该函数将一个排序的整数数组和一个目标值作为输入。 它返回一个数组,其中包含(按顺序)你在原始数组的每个减半处找到的中间值,直到你找到目标值。 目标值应该是返回数组的最后一个元素。 If the value is not found, return the string `Value Not Found`. 例如,`binarySearch([1,2,3,4,5,6,7], 5)` 将返回 `[4,6,5]`。 diff --git a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md index d9fb2bd6d01..47489421b7a 100644 --- a/curriculum/challenges/chinese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md +++ b/curriculum/challenges/chinese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md @@ -7,7 +7,7 @@ dashedName: step-55 # --description-- -添加另一个 `p` 元素,其文本为 `Total Carbohydrate 37g 13%`。 Like before, use `span` elements to make the text `Total Carbohydrate` bold, and the text `13%` bold. Also add an additional `span` element to wrap the `Total Carbohydrate 37g` text in a span element so to have it aligned to the left, and `13%` to the right. +添加另一个 `p` 元素,其文本为 `Total Carbohydrate 37g 13%`。 Like before, use `span` elements to make the text `Total Carbohydrate` and `13%` bold. Also add an additional `span` element to wrap the `Total Carbohydrate 37g` text in a span element so to have it aligned to the left, and `13%` to the right. # --hints-- diff --git a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md index a8bef26a706..294662a5750 100644 --- a/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md +++ b/curriculum/challenges/chinese/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md @@ -7,7 +7,7 @@ dashedName: step-62 # --description-- -The `locations` array contains two locations: the town square and the store. Currently you are passing that entire array into the update functions. Pass in only the first element of the `locations` array by adding `[0]` at the end of the variable. For example: `myFunction(arg[0]);`. +The `locations` array contains two locations: the `town square` and the `store`. Currently you are passing that entire array into the `update` function. Pass in only the first element of the `locations` array by adding `[0]` at the end of the variable. For example: `myFunction(arg[0]);`. This is called bracket notation. Values in an array are accessed by index. Indices are numerical values and start at 0 - this is called zero-based indexing. `arg[0]` would be the first element in the `arg` array. diff --git a/curriculum/challenges/espanol/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md b/curriculum/challenges/espanol/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md index d421e3cf789..e4a715c31e6 100644 --- a/curriculum/challenges/espanol/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md +++ b/curriculum/challenges/espanol/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md @@ -28,7 +28,7 @@ Analizará un conjunto de datos sobre el cambio del nivel medio del mar a nivel Utiliza los datos para completar las siguientes tareas: - Use Pandas to import the data from `epa-sea-level.csv`. -- Use matplotlib to create a scatter plot using the `Year` column as the x-axis and the `CSIRO Adjusted Sea Level` column as the y-axix. +- Use matplotlib to create a scatter plot using the `Year` column as the x-axis and the `CSIRO Adjusted Sea Level` column as the y-axis. - Use the `linregress` function from `scipy.stats` to get the slope and y-intercept of the line of best fit. Plot the line of best fit over the top of the scatter plot. Make the line go through the year 2050 to predict the sea level rise in 2050. - Plot a new line of best fit just using the data from year 2000 through the most recent year in the dataset. Make the line also go through the year 2050 to predict the sea level rise in 2050 if the rate of rise continues as it has since the year 2000. - The x label should be `Year`, the y label should be `Sea Level (inches)`, and the title should be `Rise in Sea Level`. diff --git a/curriculum/challenges/espanol/10-coding-interview-prep/algorithms/implement-binary-search.md b/curriculum/challenges/espanol/10-coding-interview-prep/algorithms/implement-binary-search.md index f06375cd688..0f6403ca4ff 100644 --- a/curriculum/challenges/espanol/10-coding-interview-prep/algorithms/implement-binary-search.md +++ b/curriculum/challenges/espanol/10-coding-interview-prep/algorithms/implement-binary-search.md @@ -10,9 +10,10 @@ dashedName: implement-binary-search La búsqueda binaria es un algoritmo de eficiencia **O(log(n))** para la busqueda de elementos en un arreglo ordenado. Funciona de la siguiente manera: -1. Encuentra el valor (`value`) intermedio de un arreglo ordenado. Si este valor es igual al valor que estamos buscando (`value == target`) return (¡Lo encontramos!). +1. Encuentra el valor (`value`) intermedio de un arreglo ordenado. If `value == target` return `true` (The value has been found and the search is complete). 1. Si el valor intermedio es menor del valor que estamos buscando (`value < target`), repetiremos el paso uno en la mitad más chica de nuestro arreglo. 1. Si el valor intermedio es menor del valor que estamos buscando (`value > target`), repetiremos el paso uno en la mitad más chica de nuestro arreglo. +1. If after searching the whole array the value is not present, return `false` (The array has been searched and the value is not in the array). Como lo habrás notado, estamos dividiendo al mitad a un arreglo sucesivamente, por lo que tendremos una eficiencia de log(n). Para este desafío, queremos que muestres tu trabajo: cómo llegaste al valor objetivo... ¡el camino que tomaste! @@ -20,7 +21,7 @@ Como lo habrás notado, estamos dividiendo al mitad a un arreglo sucesivamente, Escribe la función `binarySearch` (búsqueda binaria) que implemente el algoritmo de búsqueda binaria en un arreglo, devolviendo el camino tomado (cada valor intermedio comparado) para encontrar el valor en un arreglo. -La función recibe como parametros un arreglo de números enteros y el número que queremos buscar. Devuleve un arreglo (ordenado) que contiene todos los valores intermedios del arreglo original descartados antes de encontrar el valor deseado. El valor que estamos buscando deberá ser el ultima elemento de nuestro arreglo retornado. Si no encontramos el valor estabamos buscando, devolvemos la cadena `Value Not Found` (Valor no encontrado). +La función recibe como parametros un arreglo de números enteros y el número que queremos buscar. Devuleve un arreglo (ordenado) que contiene todos los valores intermedios del arreglo original descartados antes de encontrar el valor deseado. El valor que estamos buscando deberá ser el ultima elemento de nuestro arreglo retornado. If the value is not found, return the string `Value Not Found`. Por ejemplo `binarySearch([1,2,3,4,5,6,7], 5)` deberá retornar `[4,6,5]`. diff --git a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md index 9c50419fea8..5a74dad1550 100644 --- a/curriculum/challenges/espanol/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md +++ b/curriculum/challenges/espanol/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md @@ -7,7 +7,7 @@ dashedName: step-55 # --description-- -Agrega otro elemento `p` con el texto `Total Carbohydrate 37g 13%`. Like before, use `span` elements to make the text `Total Carbohydrate` bold, and the text `13%` bold. Also add an additional `span` element to wrap the `Total Carbohydrate 37g` text in a span element so to have it aligned to the left, and `13%` to the right. +Agrega otro elemento `p` con el texto `Total Carbohydrate 37g 13%`. Like before, use `span` elements to make the text `Total Carbohydrate` and `13%` bold. Also add an additional `span` element to wrap the `Total Carbohydrate 37g` text in a span element so to have it aligned to the left, and `13%` to the right. # --hints-- diff --git a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md index 4f3e46c6b3d..798030100c5 100644 --- a/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md +++ b/curriculum/challenges/espanol/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md @@ -7,7 +7,7 @@ dashedName: step-62 # --description-- -The `locations` array contains two locations: the town square and the store. Currently you are passing that entire array into the update functions. Pass in only the first element of the `locations` array by adding `[0]` at the end of the variable. For example: `myFunction(arg[0]);`. +The `locations` array contains two locations: the `town square` and the `store`. Currently you are passing that entire array into the `update` function. Pass in only the first element of the `locations` array by adding `[0]` at the end of the variable. For example: `myFunction(arg[0]);`. This is called bracket notation. Values in an array are accessed by index. Indices are numerical values and start at 0 - this is called zero-based indexing. `arg[0]` would be the first element in the `arg` array. diff --git a/curriculum/challenges/german/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md b/curriculum/challenges/german/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md index 2e13bc36c2f..1b97d1fa053 100644 --- a/curriculum/challenges/german/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md +++ b/curriculum/challenges/german/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md @@ -28,7 +28,7 @@ Du analysierst einen Datensatz über die durchschnittliche Veränderung des glob Benutze die Daten, um folgende Aufgaben abzuschließen: - Verwende Pandas, um die Daten aus `epa-sea-level.csv` zu importieren. -- Verwende matplotlib, um ein Streudiagramm mit der `Year`-Spalte als x-Achse und der `CSIRO Adjusted Sea Level`-Spalte als y-Achse zu erstellen. +- Use matplotlib to create a scatter plot using the `Year` column as the x-axis and the `CSIRO Adjusted Sea Level` column as the y-axis. - Verwende die `linregress` Funktion aus `scipy.stats`, um die Steigerung und den y-Achsenabschnitt der Mittelwertsgerade zu erhalten. Zeichne die Linie der besten Anpassung über das Streudiagramm. Lass die Linie durch das Jahr 2050 verlaufen, um den Meeresspielanstieg im Jahr 2050 vorherzusagen. - Zeichne eine neue Linie der besten Passform nur mit den Daten vom Jahr 2000 bis zum jüngsten Jahr im Datensatz. Lass die Linie auch durch das Jahr 2050 laufen, um den Anstieg des Meeresspiegels im Jahr 2050 vorherzusagen, wenn die Anstiegsrate weiterhin so verläuft wie seit dem Jahr 2000. - Die x-Beschriftung sollte `Year`, die y-Beschriftung sollte `Sea Level (inches)` und der Titel sollte `Rise in Sea Level` lauten. diff --git a/curriculum/challenges/german/10-coding-interview-prep/algorithms/implement-binary-search.md b/curriculum/challenges/german/10-coding-interview-prep/algorithms/implement-binary-search.md index c22b6b8eb0b..3a755f00a83 100644 --- a/curriculum/challenges/german/10-coding-interview-prep/algorithms/implement-binary-search.md +++ b/curriculum/challenges/german/10-coding-interview-prep/algorithms/implement-binary-search.md @@ -10,9 +10,10 @@ dashedName: implement-binary-search Die binäre Suche ist ein **O(log(n))** Effizienz-Algorithmus zum Finden eines Elements innerhalb eines sortierten Arrays. Dieser funktioniert auf folgende Weise: -1. Finde die mittlere `value` des sortierten Arrays. Falls `value == target`, gebe den Wert zurück (gefunden!). +1. Finde die mittlere `value` des sortierten Arrays. If `value == target` return `true` (The value has been found and the search is complete). 1. Falls die mittlere `value < target`, durchsuche im nächsten Schritt nur die rechte Hälfte des Arrays. 1. Falls die mittlere `value > target`, durchsuche im nächsten Schritt nur die linke Hälfte des Arrays. +1. If after searching the whole array the value is not present, return `false` (The array has been searched and the value is not in the array). Wie du siehst, halbierst du so erfolgreich einen Array mit einer Effizienz von log(n). Für diese Herausforderung wollen wir, dass du zeigst, wie du arbeitest – wie du zum Zielwert gelangt bist... welchen Weg du eingeschlagen hast! @@ -20,7 +21,7 @@ Wie du siehst, halbierst du so erfolgreich einen Array mit einer Effizienz von l Schreibe die Funktion `binarySearch`, welche einen binären Suchalgorithmus für einen Array implementiert – dieser soll dann einen Array mit dem von dir verwendeten Weg (jeder Mittelwertvergleich), um den Zielwert im Array zu finden, zurückgeben. -Der Funktion wird ein sortierter Array mit Integern sowie ein Zielwert übergeben. Es wird ein Array zurückgegeben, das (in Reihenfolge) den mittleren Wert enthält, den du bei jeder Halbierung des ursprünglichen Arrays gefunden hast, bis du den Zielwert gefunden hast. Der Zielwert sollte das letzte Element des zurückgegebenen Arrays sein. Falls der Zielwert nicht gefunden wurde, gib den String `Value Not Found` zurück. +Der Funktion wird ein sortierter Array mit Integern sowie ein Zielwert übergeben. Es wird ein Array zurückgegeben, das (in Reihenfolge) den mittleren Wert enthält, den du bei jeder Halbierung des ursprünglichen Arrays gefunden hast, bis du den Zielwert gefunden hast. Der Zielwert sollte das letzte Element des zurückgegebenen Arrays sein. If the value is not found, return the string `Value Not Found`. Beispielsweise sollte `binarySearch([1,2,3,4,5,6,7], 5)` den Array `[4,6,5]` zurückgeben. diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md index fbe4a7b8997..abbc9ee6caf 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md @@ -7,7 +7,7 @@ dashedName: step-55 # --description-- -Add another `p` element with the text `Total Carbohydrate 37g 13%`. Like before, use `span` elements to make the text `Total Carbohydrate` bold, and the text `13%` bold. Also add an additional `span` element to wrap the `Total Carbohydrate 37g` text in a span element so to have it aligned to the left, and `13%` to the right. +Add another `p` element with the text `Total Carbohydrate 37g 13%`. Like before, use `span` elements to make the text `Total Carbohydrate` and `13%` bold. Also add an additional `span` element to wrap the `Total Carbohydrate 37g` text in a span element so to have it aligned to the left, and `13%` to the right. # --hints-- diff --git a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md index a8bef26a706..294662a5750 100644 --- a/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md +++ b/curriculum/challenges/german/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md @@ -7,7 +7,7 @@ dashedName: step-62 # --description-- -The `locations` array contains two locations: the town square and the store. Currently you are passing that entire array into the update functions. Pass in only the first element of the `locations` array by adding `[0]` at the end of the variable. For example: `myFunction(arg[0]);`. +The `locations` array contains two locations: the `town square` and the `store`. Currently you are passing that entire array into the `update` function. Pass in only the first element of the `locations` array by adding `[0]` at the end of the variable. For example: `myFunction(arg[0]);`. This is called bracket notation. Values in an array are accessed by index. Indices are numerical values and start at 0 - this is called zero-based indexing. `arg[0]` would be the first element in the `arg` array. diff --git a/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/basic-javascript/subtract-one-number-from-another-with-javascript.md b/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/basic-javascript/subtract-one-number-from-another-with-javascript.md index 3fb4bad2f0b..98bcfdccbe0 100644 --- a/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/basic-javascript/subtract-one-number-from-another-with-javascript.md +++ b/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/basic-javascript/subtract-one-number-from-another-with-javascript.md @@ -26,13 +26,13 @@ Modifica lo `0` in modo che la differenza sia `12`. # --hints-- -The variable `difference` should be equal to `12`. +La variabile `difference` dovrebbe essere uguale a `12`. ```js assert(difference === 12); ``` -You should only subtract one number from `45`. +Devi solo sottrarre un numero da `45`. ```js assert(/difference=45-33;?/.test(__helpers.removeWhiteSpace(code))); diff --git a/curriculum/challenges/italian/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md b/curriculum/challenges/italian/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md index 043f84406d3..42c9b8f79bc 100644 --- a/curriculum/challenges/italian/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md +++ b/curriculum/challenges/italian/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md @@ -28,7 +28,7 @@ Analizzerai un set di dati del cambiamento globale medio del livello del mare da Usa i dati per completare le seguenti attività: - Usa Pandas per importare i dati da `epa-sea-level.csv`. -- Usa matplotlib per creare un grafico a dispersione usando la colonna `Year` come asse x e la colonna `CSIRO Adjusted Sea Level` come asse y. +- Use matplotlib to create a scatter plot using the `Year` column as the x-axis and the `CSIRO Adjusted Sea Level` column as the y-axis. - Usa la funzione `linregress` da `scipy.stats` per ottenere la pendenza e l'intercetta y della retta di regressione. Traccia la retta di regressione sopra la parte superiore del grafico a dispersione. Fai passare la linea attraverso l'anno 2050 per prevedere l'aumento del livello del mare nel 2050. - Traccia una nuova retta di regressione utilizzando i dati dall'anno 2000 all'anno più recente nel set di dati. Fai passare la linea anche per l'anno 2050 per prevedere quale sarà l'aumento del livello del mare nel 2050 se il tasso di crescita continuerà come ha fatto dal 2000 in poi. - L'asse x dovrebbe essere `Year`, l'asse y dovrebbe essere `Sea Level (inches)` e il titolo dovrebbe essere `Rise in Sea Level`. diff --git a/curriculum/challenges/italian/10-coding-interview-prep/algorithms/implement-binary-search.md b/curriculum/challenges/italian/10-coding-interview-prep/algorithms/implement-binary-search.md index e7653bd27ef..61012423e6c 100644 --- a/curriculum/challenges/italian/10-coding-interview-prep/algorithms/implement-binary-search.md +++ b/curriculum/challenges/italian/10-coding-interview-prep/algorithms/implement-binary-search.md @@ -10,9 +10,10 @@ dashedName: implement-binary-search Binary Search è un algoritmo con efficienza **O(log(n))** che permette di cercare un elemento dentro a un array ordinato. Funziona usando i seguenti step: -1. Trova il `value` centrale di un array ordinato. Se `value == target` allora restituiscilo (trovato!). +1. Trova il `value` centrale di un array ordinato. If `value == target` return `true` (The value has been found and the search is complete). 1. Se invece `value < target`, cerca nella metà destra dell'array nella prossima comparazione. 1. Se invece `value > target`, cerca nella metà sinistra dell'array nella prossima comparazione. +1. If after searching the whole array the value is not present, return `false` (The array has been searched and the value is not in the array). Come puoi vedere, stai dimessando successivamente un array, cosa che da l'efficienza log(n). Per questa sfida vogliamo vedere il tuo lavoro - come sei arrivato al valore target... la strada che hai preso! @@ -20,7 +21,7 @@ Come puoi vedere, stai dimessando successivamente un array, cosa che da l'effici Scrivi una funzione `binarySearch` che implementa un algoritmo di ricerca binaria su un array, restituendo il percorso che hai preso (ogni valore centrale di comparazione) per trovare il target nell'array. -La funzione riceve un array di numeri interi ordinati, e un valore target come input. Restituisce un array contentente in ordine i valori centrali che hai trovato ad ogni dimezzamento dell'array originale fino a che non hai trovato il valore target. Il valore target dovrebbe essere l'ultimo elemento dell'array restituito. Se il valore non è stato trovato, restituisci `Value Not Found`. +La funzione riceve un array di numeri interi ordinati, e un valore target come input. Restituisce un array contentente in ordine i valori centrali che hai trovato ad ogni dimezzamento dell'array originale fino a che non hai trovato il valore target. Il valore target dovrebbe essere l'ultimo elemento dell'array restituito. If the value is not found, return the string `Value Not Found`. Per esempio, `binarySearch([1,2,3,4,5,6,7], 5)` dovrebbe restituisce `[4,6,5]`. diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f50473cc0196c6dd3892a.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f50473cc0196c6dd3892a.md index 7b9b4ffbc30..3b3f38d79af 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f50473cc0196c6dd3892a.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f50473cc0196c6dd3892a.md @@ -7,13 +7,13 @@ dashedName: step-28 # --description-- -You may notice there is still a small border at the bottom of your `.large` element. To reset this, give your `.large, .medium` selector a `border` property set to `0`. +Potresti notare che c'è ancora un piccolo bordo nella parte inferiore dell'elemento `.large`. Per rimuoverlo, assegna al selettore `.large, .medium` una proprietà `border` con il valore `0`. -Note: the `medium`(medium) class will be utilized in step 37 for the thinner bars of the nutrition label. +Nota: la classe `medium` (media) sarà utilizzata nello step 37 per le barre più sottili dell'etichetta nutrizionale. # --hints-- -Your `.large, .medium` selector should have a `border` property set to `0`. +Il selettore `.large, .medium` dovrebbe avere una proprietà `border` con il valore `0`. ```js assert(new __helpers.CSSHelp(document).getStyle('.large, .medium')?.borderWidth === '0px'); diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f51e4e5b24a6e80eccce1.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f51e4e5b24a6e80eccce1.md index 136c3e5dfc5..58404346cb4 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f51e4e5b24a6e80eccce1.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f51e4e5b24a6e80eccce1.md @@ -7,36 +7,36 @@ dashedName: step-30 # --description-- -Within your `.calories-info` element, create a `div` element. Give that `div` element a `class` attribute set to `left-container`. Within the newly created `div` element, create a `h2` element with the text `Amount per serving`. Give the `h2` element a `class` attribute set to `bold small-text`. +All'interno dell'elemento `.calories-info`, crea un elemento `div`. Assegna a questo elemento `div` un attributo `class` con il valore `left-container`. All'interno dell'elemento `div` appena creato, crea un elemento `h2` con il testo `Amount per serving`. Assegna all'elemento `h2` un attributo `class` con il valore `bold small-text`. # --hints-- -You should create a new `div` element within your `.calories-info` element. +Dovresti creare un nuovo elemento `div` all'interno dell'elemento `.calories-info`. ```js assert(document.querySelector('.calories-info')?.children?.[0]?.localName === 'div'); ``` -Your new `div` element should have a `class` attribute set to `left-container`. +Il nuovo elemento `div` dovrebbe avere un attributo `class` con il valore `left-container`. ```js assert(document.querySelector('.calories-info')?.children?.[0]?.classList.contains('left-container')); ``` -You should create a new `h2` element within your `.left-container` element. +Dovresti creare un nuovo elemento `h2` all'interno dell'elemento `.left-container`. ```js assert(document.querySelector('.left-container')?.children?.[0]?.localName === 'h2'); ``` -Your new `h2` element should have a `class` attribute set to `bold small-text`. +Il nuovo elemento `h2` dovrebbe avere un attributo `class` con il valore `bold small-text`. ```js assert(document.querySelector('.left-container')?.children?.[0]?.classList.contains('bold')); assert(document.querySelector('.left-container')?.children?.[0]?.classList.contains('small-text')); ``` -Your new `h2` element should have the text `Amount per serving`. +Il nuovo elemento `h2` dovrebbe avere il testo `Amount per serving`. ```js assert(document.querySelector('.left-container')?.children?.[0]?.innerText === 'Amount per serving'); diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f575b50b91e72af079480.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f575b50b91e72af079480.md index 14f20ffb784..2ce847e8fb2 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f575b50b91e72af079480.md +++ b/curriculum/challenges/italian/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`. +Crea un nuovo selettore `.left-container p` impostando i margini superiore e inferiore a `-5px` e i margini di sinistra e di destra a `-2px`. Inoltre imposta `font-size` a `2em` e `font-weight` a `700`. # --hints-- -You should have a new `.left-container p` selector. +Dovresti avere un nuovo selettore `.left-container p`. ```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`. +Il nuovo selettore `.left-container p` dovrebbe avere una proprietà `margin` con il valore `-5px -2px`. ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.left-container p')?.marginTop, '-5px'); @@ -26,13 +26,13 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('.left-container p')?.marg assert.equal(new __helpers.CSSHelp(document).getStyle('.left-container p')?.marginRight, '-2px'); ``` -Your new `.left-container p` selector should have a `font-size` property set to `2em`. +Il nuovo selettore `.left-container p` dovrebbe avere una proprietà `font-size` con il valore `2em`. ```js assert(new __helpers.CSSHelp(document).getStyle('.left-container p')?.fontSize === '2em'); ``` -Your new `.left-container p` selector should have a `font-weight` property set to `700`. +Il nuovo selettore `.left-container p` dovrebbe avere una proprietà `font-weight` con il valore `700`. ```js assert(new __helpers.CSSHelp(document).getStyle('.left-container p')?.fontWeight === '700'); diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f61338c8ca176d6445574.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f61338c8ca176d6445574.md index e1d50f8c25f..a852d759b7b 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f61338c8ca176d6445574.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f61338c8ca176d6445574.md @@ -7,7 +7,7 @@ dashedName: step-38 # --description-- -Below your `.calories-info` element, add a `div` with the `class` attribute set to `divider medium`. +Sotto l'elemento `.calories-info`, aggiungi un elemento `div` con l'attributo `class` impostato su `divider medium`. # --hints-- @@ -17,7 +17,7 @@ Dovresti creare un nuovo `div` all'interno dell'elemento `.label`. assert(document.querySelectorAll('.label > div')?.length === 3) ``` -Your new `div` should have the `class` attribute set to `divider medium`. Questo div dovrebbe essere l'ultimo elemento nell'elemento `.label`. +Il nuovo elemento `div` dovrebbe avere l'attributo `class` con il valore `divider medium`. Questo div dovrebbe essere l'ultimo elemento nell'elemento `.label`. ```js const div = document.querySelector('.label')?.lastElementChild; diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f666ac5edea782feb7e75.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f666ac5edea782feb7e75.md index f074a2cf764..bcb21686be8 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f666ac5edea782feb7e75.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f666ac5edea782feb7e75.md @@ -7,17 +7,17 @@ dashedName: step-39 # --description-- -Create an `.medium` selector and give it a `height` property of `5px`. +Crea un selettore `.medium` e assegnagli una proprietà `height` di `5px`. # --hints-- -You should create an `.medium` selector. +Dovresti creare un selettore `.medium`. ```js assert(new __helpers.CSSHelp(document).getStyle('.medium')); ``` -Your `.medium` selector should have a `height` property set to `5px`. +Il selettore `.medium` dovrebbe avere una proprietà `height` con il valore `5px`. ```js assert(new __helpers.CSSHelp(document).getStyle('.medium')?.height === '5px'); diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6823d0815b7a991f2a75.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6823d0815b7a991f2a75.md index fe235a27ea4..f0c9a4b5fa9 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6823d0815b7a991f2a75.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6823d0815b7a991f2a75.md @@ -7,11 +7,11 @@ dashedName: step-42 # --description-- -Use your existing `.divider` element as an example to add a new divider after the `p` element. +Usa l'elemento `.divider` esistente come esempio per aggiungere un nuovo divider dopo l'elemento `p`. # --hints-- -You should create a new `div` within your `.daily-value` element. +Dovresti creare un nuovo `div` all'interno dell'elemento `.daily-value`. ```js assert(document.querySelectorAll('.daily-value.small-text > div')?.length === 1) diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6cc778f7698258467596.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6cc778f7698258467596.md index b3f19c47607..9b74f1d42f5 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6cc778f7698258467596.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6cc778f7698258467596.md @@ -7,7 +7,7 @@ dashedName: step-44 # --description-- -Below your element with the `Total Fat` text, create a new `p` element with the text `Saturated Fat 1g 5%`. Wrap the `5%` in a `span` with the `class` attribute set to `bold`. In this case this is enough to align the percentage to `5%`. +Sotto l'elemento con il testo `Total Fat`, crea un nuovo elemento `p` con il testo `Saturated Fat 1g 5%`. Includi `5%` in un altro elemento `span` con l'attributo `class` impostato su `bold`. In questo caso è sufficiente per allineare la percentuale al `5%`. # --hints-- @@ -30,7 +30,7 @@ Il nuovo elemento `p` dovrebbe avere un elemento `span`. assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.lastElementChild?.localName === 'span'); ``` -Your `span` element should have the `class` attribute set to `bold`. +L'elemento `span` dovrebbe avere l'attributo `class` con il valore `bold`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.lastElementChild?.classList?.contains('bold')); diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7c71eab8218f846e4503.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7c71eab8218f846e4503.md index de86d647fdd..52bce489e8d 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7c71eab8218f846e4503.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7c71eab8218f846e4503.md @@ -7,11 +7,11 @@ dashedName: step-51 # --description-- -Dopo l'ultimo `.divider`, crea un altro elemento `p` con il testo `Trans Fat 0g`. Metti in corsivo la parola `Trans` annidandola in un elemento `i`. Dai al nuovo elemento `p` l'attributo `class` con il valore `indent no-divider`. Wrap `Trans Fat 0g` in a `span` element for alignment. +Dopo l'ultimo `.divider`, crea un altro elemento `p` con il testo `Trans Fat 0g`. Metti in corsivo la parola `Trans` annidandola in un elemento `i`. Dai al nuovo elemento `p` l'attributo `class` con il valore `indent no-divider`. Racchiudi `Trans Fat 0g` in un elemento `span` per l'allineamento. # --hints-- -You should create a new `p` element at the end of your `.daily-value` element. +Dovresti creare un nuovo elemento `p` alla fine dell'elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.localName === 'p'); @@ -43,13 +43,13 @@ L'elemento `i` dovrebbe racchiudere il testo `Trans`. assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelector('i')?.innerText === 'Trans'); ``` -Your new `p` element should have a `span` element. +Il nuovo elemento `p` dovrebbe avere un elemento `span`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelector('span')); ``` -Your `span` element should wrap the text `Trans Fat 0g`. +L'elemento `span` dovrebbe racchiudere il testo `Trans Fat 0g`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelector('span')?.innerText?.match(/Trans[\s|\n]+Fat 0g/)); diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7d489a581590d1350288.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7d489a581590d1350288.md index 3530537515b..2a06bb799a2 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7d489a581590d1350288.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7d489a581590d1350288.md @@ -11,7 +11,7 @@ Crea un altro `.divider` dopo l'ultimo elemento `p`. # --hints-- -You should create a new `div` element at the end of your `.daily-value` element. +Dovresti creare un nuovo elemento `div` alla fine dell'elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.localName === 'div'); diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7de4487b64919bb4aa5e.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7de4487b64919bb4aa5e.md index d2c61a245ef..cbf596fdcf6 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7de4487b64919bb4aa5e.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7de4487b64919bb4aa5e.md @@ -7,11 +7,11 @@ dashedName: step-53 # --description-- -Dopo l'ultimo elemento `.divider`, crea un elemento `p` e dagli il testo `Cholesterol 0mg 0%`. Inserisci il testo `Cholesterol` in un elemento `span` e assegna a quest'elemento `span` un attributo `class` con il valore `bold`. Wrap the text `0%` in another `span` element, with the `class` set to `bold`. Also wrap `Cholesterol 0mg` in an additional `span` element for the alignment. +Dopo l'ultimo elemento `.divider`, crea un elemento `p` e dagli il testo `Cholesterol 0mg 0%`. Inserisci il testo `Cholesterol` in un elemento `span` e assegna a quest'elemento `span` un attributo `class` con il valore `bold`. Annida il testo `0%` in un altro elemento `span` con l'attributo `class` impostato su `bold`. Inoltre racchiudi `Cholesterol 0mg` in un elemento `span` aggiuntivo per l'allineamento. # --hints-- -You should create a new `p` element at the end of your `.daily-value` element. +Dovresti creare un nuovo elemento `p` alla fine dell'elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.localName === 'p'); @@ -23,37 +23,37 @@ Il nuovo elemento `p` dovrebbe avere il testo `Cholesterol 0mg 0%`. assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.innerText?.match(/Cholesterol[\s|\n]+0mg[\s|\n]+0%/)); ``` -Your new `p` element should have three `span` elements. +Il nuovo elemento `p` dovrebbe avere tre elementi `span`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelectorAll('span')?.length === 3); ``` -Your first `span` `Cholesterol` element should have the `class` attribute set to `bold`. +Il primo elemento `span` `Cholesterol` dovrebbe avere l'attributo `class` con il valore `bold`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.firstElementChild?.firstElementChild?.classList?.contains('bold')); ``` -Your first `span` element should wrap the text `Cholesterol 0mg`. +Il primo elemento `span` dovrebbe racchiudere il testo `Cholesterol 0mg`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.firstElementChild?.innerText?.match(/Cholesterol[\s|\n]+0mg/)); ``` -Your first `span` element should wrap the text `Cholesterol`. +Il primo elemento `span` dovrebbe racchiudere il testo `Cholesterol`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.firstElementChild?.firstElementChild?.innerText === 'Cholesterol'); ``` -Your second `span` element should have the `class` attribute set to `bold`. +Il secondo elemento `span` dovrebbe avere l'attributo `class` con il valore `bold`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.lastElementChild?.classList?.contains('bold')); ``` -Your second `span` element should wrap the text `0%`. +Il secondo elemento `span` dovrebbe racchiudere il testo `0%`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.lastElementChild?.innerText === '0%'); diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md index 2f5d1d4df2e..790ffe63c98 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md @@ -7,7 +7,7 @@ dashedName: step-55 # --description-- -Aggiungi un altro elemento `p` con il testo `Total Carbohydrate 37g 13%`. Like before, use `span` elements to make the text `Total Carbohydrate` bold, and the text `13%` bold. Also add an additional `span` element to wrap the `Total Carbohydrate 37g` text in a span element so to have it aligned to the left, and `13%` to the right. +Aggiungi un altro elemento `p` con il testo `Total Carbohydrate 37g 13%`. Like before, use `span` elements to make the text `Total Carbohydrate` and `13%` bold. Also add an additional `span` element to wrap the `Total Carbohydrate 37g` text in a span element so to have it aligned to the left, and `13%` to the right. # --hints-- diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7fa959ab75948f96a0d6.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7fa959ab75948f96a0d6.md index 138804f3880..ef9083beaeb 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7fa959ab75948f96a0d6.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7fa959ab75948f96a0d6.md @@ -11,7 +11,7 @@ Sotto l'ultimo elemento `p`, aggiungi un altro elemento `p` con il testo `Dietar # --hints-- -You should create a new `p` and `div` element at the end of your `.daily-value` element. +Dovresti creare un nuovo elemento `p` e un nuovo `div` alla fine dell'elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.previousElementSibling?.localName === 'p'); diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f829d07b18f96f6f6684b.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f829d07b18f96f6f6684b.md index 2054a14a3d5..974515b5c3d 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f829d07b18f96f6f6684b.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f829d07b18f96f6f6684b.md @@ -7,11 +7,11 @@ dashedName: step-58 # --description-- -Il vantaggio di creare dei divider è che è possibile applicare classi specifiche per dargli uno stile individualmente. Add `double-indent` to the `class` for your last `.divider`. +Il vantaggio di creare dei divider è che è possibile applicare classi specifiche per dargli uno stile individualmente. Aggiungi `double-indent` all'attributo `class` per l'ultimo `.divider`. # --hints-- -Your last `.divider` element should have `double-indent` added to the `class`. Non rimuovere il valore esistente. +L'ultimo elemento `.divider` dovrebbe avere `double-indent` aggiunto all'attributo `class`. Non rimuovere il valore esistente. ```js const last = document.querySelector('.daily-value.small-text')?.lastElementChild; diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f84f246e8ba98e3cd97be.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f84f246e8ba98e3cd97be.md index 44a095623dd..dfdfd695b8d 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f84f246e8ba98e3cd97be.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f84f246e8ba98e3cd97be.md @@ -7,13 +7,13 @@ dashedName: step-60 # --description-- -Below your `.double-indent` element, add a new `p` element with the text `Includes 10g Added Sugars 20%`. Il nuovo elemento `p` dovrebbe essere anche doppiamente indentato e non avere il bordo inferiore. Usa un elemento `span` per rendere il `20%` in grassetto e allineato a destra. +Sotto l'elemento `.double-indent`, aggiungi un nuovo elemento `p` con il testo `Includes 10g Added Sugars 20%`. Il nuovo elemento `p` dovrebbe essere anche doppiamente indentato e non avere il bordo inferiore. Usa un elemento `span` per rendere il `20%` in grassetto e allineato a destra. Poi crea un altro divider dopo l'elemento `p`. # --hints-- -You should create a new `p` and `div` element at the end of your `.daily-value` element. +Dovresti creare un nuovo elemento `p` e un nuovo `div` alla fine dell'elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.previousElementSibling?.localName === 'p'); @@ -26,7 +26,7 @@ Il nuovo elemento `p` dovrebbe avere il testo `Includes 10g Added Sugars 20%`. assert(document.querySelector('.daily-value.small-text p:last-of-type')?.innerText.match(/Includes 10g Added Sugars[\s|\n]+20%/)); ``` -Your new `p` element should have the `class` attribute set to `double-indent no-divider`. +Il nuovo elemento `p` dovrebbe avere l'attributo `class` con il valore `double-indent no-divider`. ```js assert(document.querySelector('.daily-value.small-text p:last-of-type')?.classList?.contains('double-indent')); @@ -39,7 +39,7 @@ Il nuovo elemento `p` dovrebbe avere un elemento `span`. assert(document.querySelector('.daily-value.small-text p:last-of-type')?.firstElementChild?.localName === 'span'); ``` -Your `span` element should have the `class` attribute set to `bold`. +L'elemento `span` dovrebbe avere l'attributo `class` con il valore `bold`. ```js assert(document.querySelector('.daily-value.small-text p:last-of-type')?.firstElementChild?.classList?.contains('bold')); diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f887466db4ba14b5342cc.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f887466db4ba14b5342cc.md index 6b164a9e009..93ff1a90bc0 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f887466db4ba14b5342cc.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f887466db4ba14b5342cc.md @@ -13,7 +13,7 @@ Dopo questo elemento, crea un divider grande. # --hints-- -You should create a new `p` and `div` element at the end of your `.daily-value` element. +Dovresti creare un nuovo elemento `p` e un nuovo `div` alla fine dell'elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.previousElementSibling?.localName === 'p'); @@ -32,7 +32,7 @@ Il nuovo elemento `p` dovrebbe avere l'attributo `class` con il valore `no-divid assert(document.querySelector('.daily-value.small-text p:last-of-type')?.classList?.contains('no-divider')); ``` -Your new `div` should have the `class` attribute set to `divider large`. +Il nuovo elemento `div` dovrebbe avere l'attributo `class` con il valore `divider large`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.classList?.contains('divider')); diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f8f1223601fa546e93f31.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f8f1223601fa546e93f31.md index 048b41396e4..84caed45129 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f8f1223601fa546e93f31.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f8f1223601fa546e93f31.md @@ -11,7 +11,7 @@ Crea l'elemento finale `p` per la sezione `.daily-value`. Dagli il testo `Potass # --hints-- -You should create a new `p` element at the end of your `.daily-value` element. +Dovresti creare un nuovo elemento `p` alla fine dell'elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.localName === 'p'); @@ -35,7 +35,7 @@ Il nuovo elemento `p` dovrebbe avere un elemento `span`. assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelectorAll('span')?.length === 1); ``` -Your `span` element should not be bold. +L'elemento `span` non dovrebbe essere in grassetto. ```js assert(!document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelector('span')?.classList?.contains('bold')); diff --git a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f905fbd1017a65ca224eb.md b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f905fbd1017a65ca224eb.md index 5771371895f..c531cacc455 100644 --- a/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f905fbd1017a65ca224eb.md +++ b/curriculum/challenges/italian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f905fbd1017a65ca224eb.md @@ -23,7 +23,7 @@ Dovresti creare un nuovo `div` dopo l'elemento `.daily-value`. assert(document.querySelector('.daily-value').nextElementSibling?.localName === 'div'); ``` -Your new `div` should have the `class` set to `divider medium`. +Il nuovo `div` dovrebbe avere l'attributo `class` con il valore `divider medium`. ```js assert(document.querySelector('.daily-value')?.nextElementSibling?.classList?.contains('divider')); diff --git a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md index 9b6d3a489f9..73e6afddc6f 100644 --- a/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md +++ b/curriculum/challenges/italian/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md @@ -7,7 +7,7 @@ dashedName: step-62 # --description-- -L'array `locations` contiene due location: town square e store. Attualmente stai passando l'intero array nella funzione update. Passa soltanto il primo elemento dell'array `locations` aggiungendo `[0]` alla fine della variabile. Ad esempio: `myFunction(arg[0]);`. +The `locations` array contains two locations: the `town square` and the `store`. Currently you are passing that entire array into the `update` function. Passa soltanto il primo elemento dell'array `locations` aggiungendo `[0]` alla fine della variabile. Ad esempio: `myFunction(arg[0]);`. Questa notazione si chiama notazione a parentesi. I valori in un array sono accessibili tramite il loro indice. Gli indici sono valori numerici e partono da 0 - questo sistema è detto a base zero. `arg[0]` è il primo elemento nell'array `arg`. diff --git a/curriculum/challenges/japanese/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md b/curriculum/challenges/japanese/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md index 6855c0e566b..09b6e56d33f 100644 --- a/curriculum/challenges/japanese/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md +++ b/curriculum/challenges/japanese/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md @@ -28,7 +28,7 @@ Python カリキュラムの対話式教育コンテンツを引き続き開発 データを使用して、次のタスクを完了してください。 - Use Pandas to import the data from `epa-sea-level.csv`. -- Use matplotlib to create a scatter plot using the `Year` column as the x-axis and the `CSIRO Adjusted Sea Level` column as the y-axix. +- Use matplotlib to create a scatter plot using the `Year` column as the x-axis and the `CSIRO Adjusted Sea Level` column as the y-axis. - Use the `linregress` function from `scipy.stats` to get the slope and y-intercept of the line of best fit. Plot the line of best fit over the top of the scatter plot. Make the line go through the year 2050 to predict the sea level rise in 2050. - Plot a new line of best fit just using the data from year 2000 through the most recent year in the dataset. Make the line also go through the year 2050 to predict the sea level rise in 2050 if the rate of rise continues as it has since the year 2000. - The x label should be `Year`, the y label should be `Sea Level (inches)`, and the title should be `Rise in Sea Level`. diff --git a/curriculum/challenges/japanese/10-coding-interview-prep/algorithms/implement-binary-search.md b/curriculum/challenges/japanese/10-coding-interview-prep/algorithms/implement-binary-search.md index c0386f5e324..1b980c9020c 100644 --- a/curriculum/challenges/japanese/10-coding-interview-prep/algorithms/implement-binary-search.md +++ b/curriculum/challenges/japanese/10-coding-interview-prep/algorithms/implement-binary-search.md @@ -10,9 +10,10 @@ dashedName: implement-binary-search 二分探索はソートされた配列内で要素を検索するアルゴリズムで、その時間計算量は **O(log(n))** です。 次のように演算が行われます。 -1. ソートされた配列内の中央の `value` (値) を探します。 `value == target` であれば、「見つけた!」 を返します。 +1. ソートされた配列内の中央の `value` (値) を探します。 If `value == target` return `true` (The value has been found and the search is complete). 1. 中央の `value < target` であれば、次の比較で配列の右半分を検索します。 1. 中央の `value > target` であれば、次の比較で配列の左半分を検索します。 +1. If after searching the whole array the value is not present, return `false` (The array has been searched and the value is not in the array). このように配列を連続的に半減させており、時間計算量は log(n) になります。 このチャレンジでは、あなたがどのような経路をたどって目標値に到達したかを提示していただきます。 @@ -20,7 +21,7 @@ dashedName: implement-binary-search 二分探索アルゴリズムを配列に実装し、配列内で目標値を見つけるためにたどった経路 (各回の中間値比較) を返すような関数 `binarySearch` を記述してください。 -この関数は、ソートされた整数配列と目標値を入力として取ります。 そして目標値を見つけるまで、元の配列の各 2 分割で見つけた中間値が含まれる配列を返します (通りがけ順)。 目標値は、返される配列の最後の要素でなければなりません。 値が見つからない場合は、文字列 `Value Not Found` (値が見つかりません) を返します。 +この関数は、ソートされた整数配列と目標値を入力として取ります。 そして目標値を見つけるまで、元の配列の各 2 分割で見つけた中間値が含まれる配列を返します (通りがけ順)。 目標値は、返される配列の最後の要素でなければなりません。 If the value is not found, return the string `Value Not Found`. 例えば、`binarySearch([1,2,3,4,5,6,7], 5)` は `[4,6,5]` を返します。 diff --git a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md index f98986ad649..b44b2bab3d6 100644 --- a/curriculum/challenges/japanese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md +++ b/curriculum/challenges/japanese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md @@ -7,7 +7,7 @@ dashedName: step-55 # --description-- -もう 1 つ `p` 要素を追加して、テキストを `Total Carbohydrate 37g 13%` としてください。 Like before, use `span` elements to make the text `Total Carbohydrate` bold, and the text `13%` bold. Also add an additional `span` element to wrap the `Total Carbohydrate 37g` text in a span element so to have it aligned to the left, and `13%` to the right. +もう 1 つ `p` 要素を追加して、テキストを `Total Carbohydrate 37g 13%` としてください。 Like before, use `span` elements to make the text `Total Carbohydrate` and `13%` bold. Also add an additional `span` element to wrap the `Total Carbohydrate 37g` text in a span element so to have it aligned to the left, and `13%` to the right. # --hints-- diff --git a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md index a8bef26a706..294662a5750 100644 --- a/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md +++ b/curriculum/challenges/japanese/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md @@ -7,7 +7,7 @@ dashedName: step-62 # --description-- -The `locations` array contains two locations: the town square and the store. Currently you are passing that entire array into the update functions. Pass in only the first element of the `locations` array by adding `[0]` at the end of the variable. For example: `myFunction(arg[0]);`. +The `locations` array contains two locations: the `town square` and the `store`. Currently you are passing that entire array into the `update` function. Pass in only the first element of the `locations` array by adding `[0]` at the end of the variable. For example: `myFunction(arg[0]);`. This is called bracket notation. Values in an array are accessed by index. Indices are numerical values and start at 0 - this is called zero-based indexing. `arg[0]` would be the first element in the `arg` array. diff --git a/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/basic-javascript/subtract-one-number-from-another-with-javascript.md b/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/basic-javascript/subtract-one-number-from-another-with-javascript.md index dc4f8c631b8..ae1432943a1 100644 --- a/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/basic-javascript/subtract-one-number-from-another-with-javascript.md +++ b/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/basic-javascript/subtract-one-number-from-another-with-javascript.md @@ -26,13 +26,13 @@ Altere o `0` para que a variável difference seja igual a `12`. # --hints-- -The variable `difference` should be equal to `12`. +A variável `difference` deve ser igual a `12`. ```js assert(difference === 12); ``` -You should only subtract one number from `45`. +Você só deve subtrair um número de `45`. ```js assert(/difference=45-33;?/.test(__helpers.removeWhiteSpace(code))); diff --git a/curriculum/challenges/portuguese/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md b/curriculum/challenges/portuguese/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md index 35448744a49..2fd1233120f 100644 --- a/curriculum/challenges/portuguese/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md +++ b/curriculum/challenges/portuguese/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md @@ -28,7 +28,7 @@ Você analisará um dataset da mudança média do nível do mar global desde 188 Use os dados para completar as seguintes tarefas: - Use o Pandas para importar os dados de `epa-sea-level.csv`. -- Use a matplotlib para criar um diagrama de dispersão usando a coluna `Year` como eixo x e a coluna `CSIRO Adjusted Sea Level` (Nível do mar ajustado) como o eixo y. +- Use matplotlib to create a scatter plot using the `Year` column as the x-axis and the `CSIRO Adjusted Sea Level` column as the y-axis. - Use a função `linregress` do `scipy.stats` para obter o coeficiente angular e o ponto de interceptação da linha de y do melhor ajuste. Trace a linha de melhor ajuste na parte superior do diagrama de dispersão. Faça a linha passar pelo ano 2050 para prever o aumento do nível do mar em 2050. - Trace uma nova linha do melhor ajuste utilizando apenas os dados do ano 2000 ao longo do último ano no dataset. Faça com que a linha passe também pelo ano 2050 para prever o aumento do nível do mar em 2050 se a taxa de crescimento continuar como está desde o ano 2000. - O rótulo de x deve ser `Year` e o rótulo de y deve ser `Sea Level (inches)` (Nível do mar, em polegadas), e o título deve ser `Rise in Sea Level` (Aumento do nível do mar). diff --git a/curriculum/challenges/portuguese/10-coding-interview-prep/algorithms/implement-binary-search.md b/curriculum/challenges/portuguese/10-coding-interview-prep/algorithms/implement-binary-search.md index a10321250ae..9320f642a61 100644 --- a/curriculum/challenges/portuguese/10-coding-interview-prep/algorithms/implement-binary-search.md +++ b/curriculum/challenges/portuguese/10-coding-interview-prep/algorithms/implement-binary-search.md @@ -10,9 +10,10 @@ dashedName: implement-binary-search A busca binária é um algoritmo de eficiência **O(log(n))** para procurar um elemento em um array ordenado. Ele opera usando as seguintes etapas: -1. Encontrar o `value` do meio de um array ordenado. Se `value == target`, retornar (encontramos!). +1. Encontrar o `value` do meio de um array ordenado. If `value == target` return `true` (The value has been found and the search is complete). 1. Se `value < target`, procurar à direita do meio do array na próxima comparação. 1. Se `value > target`, procurar à esquerda do meio do array na próxima comparação. +1. If after searching the whole array the value is not present, return `false` (The array has been searched and the value is not in the array). Como você pode ver, você está dividindo um array para metade com sucesso, o que traz a eficiência log(n). Para este desafio, queremos que você mostre seu trabalho - como você conseguiu o valor de destino... o caminho que você fez! @@ -20,7 +21,7 @@ Como você pode ver, você está dividindo um array para metade com sucesso, o q Escreva uma função `binarySearch` que implemente o algoritmo de busca binária em um array, retornando o caminho que você utilizou (cada comparação com o valor do meio) para encontrar o destino em um array. -A função recebe um array ordenado de números inteiros e um valor de destino como entrada. Ele retorna um array contendo (em ordem) o valor do meio que você encontrou a cada divisão do array original até encontrar o valor de destino. O valor de destino deve ser o último elemento do array retornado. Se o valor não for encontrado, retorne a string `Value Not Found`. +A função recebe um array ordenado de números inteiros e um valor de destino como entrada. Ele retorna um array contendo (em ordem) o valor do meio que você encontrou a cada divisão do array original até encontrar o valor de destino. O valor de destino deve ser o último elemento do array retornado. If the value is not found, return the string `Value Not Found`. Por exemplo, `binarySearch([1,2,3,4,5,6,7], 5)` retornará `[4,6,5]`. diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f42a021625f656101ef93.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f42a021625f656101ef93.md index 6ff525a1f26..dd1ba05db3f 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f42a021625f656101ef93.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f42a021625f656101ef93.md @@ -9,7 +9,7 @@ dashedName: step-22 Espaçamento horizontal entre elementos igualmente importantes pode aumentar a legibilidade do texto. -Wrap the text `2/3 cup (55g)` in a `span` element. +Envolva o texto `2/3 cup (55g)` em um elemento `span`. # --hints-- @@ -19,13 +19,13 @@ Você deve criar um elemento `span`. assert(document.querySelector('span')); ``` -Your `span` element should have the text `2/3 cup (55g)`. +O elemento `span` deve ter o texto `2/3 cup (55g)`. ```js assert(document.querySelector('span')?.textContent?.trim() === '2/3 cup (55g)'); ``` -Your `p` element should still have the text `Serving size 2/3 cup (55g)`. +O elemento `p` ainda deve ter o texto `Serving size 2/3 cup (55g)`. ```js assert(document.querySelectorAll('p')?.[1]?.innerText === 'Serving size 2/3 cup (55g)'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f4bfb9de4a16703b56eb6.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f4bfb9de4a16703b56eb6.md index dc1da7c66ab..4cc9a5f6397 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f4bfb9de4a16703b56eb6.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f4bfb9de4a16703b56eb6.md @@ -7,17 +7,17 @@ dashedName: step-23 # --description-- -Now we can add the horizontal spacing using `flex`. In your `p` selector, add a `display` property set to `flex` and a `justify-content` property set to `space-between`. +Agora, podemos adicionar o espaçamento horizontal usando `flex`. No seletor `p`, adicione uma propriedade `display` definida como `flex` e uma propriedade `justify-content` definida como `space-between`. # --hints-- -Your `p` selector should have a `display` property set to `flex`. +O seletor `p` deve ter a propriedade `display` definida como `flex`. ```js assert(new __helpers.CSSHelp(document).getStyle('p')?.display === 'flex'); ``` -Your `p` selector should have a `justify-content` property set to `space-between`. +O seletor `p` deve ter uma propriedade `justify-content` definida como `space-between`. ```js assert(new __helpers.CSSHelp(document).getStyle('p')?.justifyContent === 'space-between'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f4ec58334106a4170c2a8.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f4ec58334106a4170c2a8.md index ae6d5c7a222..576233327e7 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f4ec58334106a4170c2a8.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f4ec58334106a4170c2a8.md @@ -7,7 +7,7 @@ dashedName: step-26 # --description-- -Create a new `div` element below your `header` element, and give it a `class` attribute set to `divider large`. +Crie um elemento `div` abaixo do elemento `header` e dê a ele um atributo `class` definido como `divider large`. # --hints-- @@ -23,7 +23,7 @@ O novo elemento `div` deve estar depois do elemento `header`. assert(document.querySelector('.label')?.lastElementChild?.localName === 'div'); ``` -Your new `div` element should have the `class` attribute set to `divider large`. +O novo elemento `div` deve ter o atributo `class` definido como `divider large`. ```js const div = document.querySelector('.label')?.lastElementChild; diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f4f9e4a40566b776a8f38.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f4f9e4a40566b776a8f38.md index 6e953af6895..04fdf43f472 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f4f9e4a40566b776a8f38.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f4f9e4a40566b776a8f38.md @@ -7,29 +7,29 @@ dashedName: step-27 # --description-- -Create a new `.large` selector and give it a `height` property set to `10px`. Also create an `.large, .medium` selector and set the `background-color` property to `black`. +Crie um novo seletor `.large` e defina a propriedade `height` para `10px`. Também crie um seletor `.large, .medium` e defina a propriedade `background-color` como `black`. # --hints-- -You should have a new `.large` selector. +Você deve ter um novo seletor `.large`. ```js assert(new __helpers.CSSHelp(document).getStyle('.large')); ``` -Your `.large` selector should have a `height` property set to `10px`. +O seletor `.large` deve ter a propriedade `height` definida como `10px`. ```js assert(new __helpers.CSSHelp(document).getStyle('.large')?.height === '10px'); ``` -You should have a new `.large, .medium` selector. +Você deve ter um novo seletor `.large, .medium`. ```js assert(new __helpers.CSSHelp(document).getStyle('.large, .medium')); ``` -Your `.large, .medium` selector should have a `background-color` property set to `black`. +O seletor `.large, .medium` deve ter a propriedade `background-color` definida como `black`. ```js assert(new __helpers.CSSHelp(document).getStyle('.large, .medium')?.backgroundColor === 'black'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f50473cc0196c6dd3892a.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f50473cc0196c6dd3892a.md index 482b72e0cdf..154817f0e16 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f50473cc0196c6dd3892a.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f50473cc0196c6dd3892a.md @@ -7,13 +7,13 @@ dashedName: step-28 # --description-- -You may notice there is still a small border at the bottom of your `.large` element. To reset this, give your `.large, .medium` selector a `border` property set to `0`. +Você pode notar que ainda há uma pequena borda na parte inferior do seu elemento `.large`. Para redefinir, dê ao seletor `.large, .medium` uma propriedade `border` definida como `0`. -Note: the `medium`(medium) class will be utilized in step 37 for the thinner bars of the nutrition label. +Observação: a classe `medium` (médio) será utilizada no passo 37 para as barras mais finas da etiqueta nutricional. # --hints-- -Your `.large, .medium` selector should have a `border` property set to `0`. +O seletor `.large, .medium` deve ter a propriedade `border` definida como `0`. ```js assert(new __helpers.CSSHelp(document).getStyle('.large, .medium')?.borderWidth === '0px'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f51257a8a516d80b6c743.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f51257a8a516d80b6c743.md index d90a5c83126..9f0b721f91a 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f51257a8a516d80b6c743.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f51257a8a516d80b6c743.md @@ -7,7 +7,7 @@ dashedName: step-29 # --description-- -Create a new `div` below your `.large` element and give it a `class` attribute set to `calories-info`. +Crie um elemento `div` abaixo do elemento `.large` e dê a ele um atributo `class` definido como `calories-info`. # --hints-- @@ -23,7 +23,7 @@ A nova `div` deve ter o atributo `class` definido como `calories-info`. assert(document.querySelector('.label')?.lastElementChild?.classList?.contains('calories-info')); ``` -Your new `div` should come after the `.large` element. +A nova `div` deve estar depois do elemento `.large`. ```js assert(document.querySelector('.label')?.lastElementChild?.previousElementSibling?.classList?.contains('large')); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f51e4e5b24a6e80eccce1.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f51e4e5b24a6e80eccce1.md index cc562ff8114..4d0016caeb0 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f51e4e5b24a6e80eccce1.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f51e4e5b24a6e80eccce1.md @@ -7,36 +7,36 @@ dashedName: step-30 # --description-- -Within your `.calories-info` element, create a `div` element. Give that `div` element a `class` attribute set to `left-container`. Within the newly created `div` element, create a `h2` element with the text `Amount per serving`. Give the `h2` element a `class` attribute set to `bold small-text`. +Dentro do elemento `.calories-info`, crie um elemento `div`. Dê ao elemento `div` o atributo `class` com o valor de `left-container`. Dentro do elemento `div` recém-criado, crie um elemento `h2` com o texto `Amount per serving`. Dê ao elemento `h2` o atributo `class` com o valor de `bold small-text`. # --hints-- -You should create a new `div` element within your `.calories-info` element. +Você deve criar um elemento `div` dentro do elemento `.calories-info`. ```js assert(document.querySelector('.calories-info')?.children?.[0]?.localName === 'div'); ``` -Your new `div` element should have a `class` attribute set to `left-container`. +O novo elemento `div` deve ter o atributo `class` definido como `left-container`. ```js assert(document.querySelector('.calories-info')?.children?.[0]?.classList.contains('left-container')); ``` -You should create a new `h2` element within your `.left-container` element. +Você deve criar um elemento `h2` dentro do elemento `.left-container`. ```js assert(document.querySelector('.left-container')?.children?.[0]?.localName === 'h2'); ``` -Your new `h2` element should have a `class` attribute set to `bold small-text`. +O novo elemento `h2` deve ter o atributo `class` definido como `bold small-text`. ```js assert(document.querySelector('.left-container')?.children?.[0]?.classList.contains('bold')); assert(document.querySelector('.left-container')?.children?.[0]?.classList.contains('small-text')); ``` -Your new `h2` element should have the text `Amount per serving`. +O novo elemento `h2` deve ter o texto `Amount per serving`. ```js assert(document.querySelector('.left-container')?.children?.[0]?.innerText === 'Amount per serving'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f522dea4f776f64dc3e91.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f522dea4f776f64dc3e91.md index 2c6d0c701bc..339b8980786 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f522dea4f776f64dc3e91.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f522dea4f776f64dc3e91.md @@ -9,17 +9,17 @@ dashedName: step-31 A unidade `rem` representa `root em` e é relativa ao tamanho da fonte do elemento `html`. -Create an `.small-text` selector and set the `font-size` to `0.85rem`, which would calculate to be roughly `13.6px` (remember that you set your `html` to have a `font-size` of `16px`). +Crie um seletor `.small-text` e defina `font-size` como `0.85rem`, o que representaria aproximadamente `13.6px` (lembre-se de que você definiu o `html` como tendo um `font-size` de `16px`). # --hints-- -You should have an `.small-text` selector. +Você deve ter um seletor `.small-text`. ```js assert(new __helpers.CSSHelp(document).getStyle('.small-text')); ``` -Your `.small-text` selector should have a `font-size` property set to `0.85rem`. +O seletor `.small-text` deve ter a propriedade `font-size` definida como `0.85rem`. ```js assert(new __helpers.CSSHelp(document).getStyle('.small-text')?.fontSize === '0.85rem'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f5486b8fd4b71633f69b0.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f5486b8fd4b71633f69b0.md index e24cb57d675..c7d7215f084 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f5486b8fd4b71633f69b0.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f5486b8fd4b71633f69b0.md @@ -1,41 +1,41 @@ --- id: 615f5486b8fd4b71633f69b0 -title: Step 33 +title: Passo 33 challengeType: 0 dashedName: step-33 --- # --description-- -Below your `.small-text` element, create a new `p` element with the text `Calories`. Also below the `.left-container` element, create a new `span` element with the text `230`. +Abaixo do elemento `.small-text`, crie um elemento `p` com o texto `Calories`. Abaixo do elemento `.left-container`, crie um elemento `span` com o texto `230`. # --hints-- -You should have a new `p` element within your `.calories-info` element. +Você deve ter um elemento `p` dentro do elemento `.calories-info`. ```js assert(document.querySelector('.calories-info')?.querySelector('p')) ``` -You should have a new `span` element within your `.calories-info` element. +Você deve ter um novo elemento `span` dentro do elemento `.calories-info`. ```js assert(document.querySelector('.calories-info')?.querySelector('span')) ``` -Your `p` element should come after your `.small-text` element. +O elemento `p` deve vir depois do elemento `.small-text`. ```js assert(document.querySelector('.small-text')?.nextElementSibling?.localName === 'p'); ``` -Your `p` element should have the text `Calories`. +O elemento `p` deve conter o texto `Calories`. ```js assert(document.querySelector('.left-container')?.lastElementChild?.innerText === 'Calories'); ``` -Your `span` element should come after your `.left-container` element. +O elemento `span` deve estar depois do elemento `.left-container`. ```js assert(document.querySelector('.left-container')?.nextElementSibling?.localName ==='span'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f575b50b91e72af079480.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f575b50b91e72af079480.md index 14f20ffb784..eff7ba22315 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f575b50b91e72af079480.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f575b50b91e72af079480.md @@ -1,23 +1,23 @@ --- id: 615f575b50b91e72af079480 -title: Step 35 +title: Passo 35 challengeType: 0 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`. +Crie um seletor `.left-container p` definindo as margens superior e inferior como `-5px` e as margens esquerda e direita como `-2px`. Defina também o `font-size` como `2em` e a `font-weight` como `700`. # --hints-- -You should have a new `.left-container p` selector. +Você deve ter um novo seletor `.left-container p`. ```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`. +O novo seletor `.left-container p` deve ter a propriedade `margin` definida como `-5px -2px`. ```js assert.equal(new __helpers.CSSHelp(document).getStyle('.left-container p')?.marginTop, '-5px'); @@ -26,13 +26,13 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('.left-container p')?.marg assert.equal(new __helpers.CSSHelp(document).getStyle('.left-container p')?.marginRight, '-2px'); ``` -Your new `.left-container p` selector should have a `font-size` property set to `2em`. +O novo seletor `.left-container p` deve ter a propriedade `font-size` definida como `2em`. ```js assert(new __helpers.CSSHelp(document).getStyle('.left-container p')?.fontSize === '2em'); ``` -Your new `.left-container p` selector should have a `font-weight` property set to `700`. +O novo seletor `.left-container p` deve ter a propriedade `font-weight` definida como `700`. ```js assert(new __helpers.CSSHelp(document).getStyle('.left-container p')?.fontWeight === '700'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f5af373a68e744a3c5a76.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f5af373a68e744a3c5a76.md index 055f4927d72..d94de1ba1ff 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f5af373a68e744a3c5a76.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f5af373a68e744a3c5a76.md @@ -1,13 +1,13 @@ --- id: 615f5af373a68e744a3c5a76 -title: Step 36 +title: Passo 36 challengeType: 0 dashedName: step-36 --- # --description-- -Create a `.calories-info span` selector, set its `font-size` to `2.4em` and `font-weight` to `700`. +Crie um seletor `.calories-info span`, ajuste seu `font-size` para `2.4em` e `font-weight` para `700`. # --hints-- @@ -17,13 +17,13 @@ Você deve criar um seletor `.calories-info span`. assert(new __helpers.CSSHelp(document).getStyle('.calories-info span')); ``` -Your `.calories-info span` selector should have a `font-size` property set to `2.4em`. +O seletor `.calories-info span` deve ter a propriedade `font-size` definida como `2.4em`. ```js assert(new __helpers.CSSHelp(document).getStyle('.calories-info span')?.fontSize === '2.4em'); ``` -Your `.calories-info span` selector should have a `font-weight` property set to `700`. +O seletor `.calories-info span` deve ter a propriedade `font-weight` definida como `700`. ```js assert(new __helpers.CSSHelp(document).getStyle('.calories-info span')?.fontWeight === '700'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f5fd85d0062761f288364.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f5fd85d0062761f288364.md index d3b41555b61..17814620a29 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f5fd85d0062761f288364.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f5fd85d0062761f288364.md @@ -1,6 +1,6 @@ --- id: 615f5fd85d0062761f288364 -title: Step 37 +title: Passo 37 challengeType: 0 dashedName: step-37 --- @@ -9,11 +9,11 @@ dashedName: step-37 A tipografia é frequentemente mais arte do que a ciência. Você pode ter que ajustar coisas como alinhamento até que pareça correto. -Give your `.calories-info span` selector a `margin` set to `-7px -2px`. Isto deixará o texto `230` no lugar. +Dê ao seletor `.calories-info span` uma `margin` definida como `-7px -2px`. Isto deixará o texto `230` no lugar. # --hints-- -Your `.calories-info span` selector should have a `margin` set to `-7px -2px`. +O seletor `.calories-info span` uma `margin` definida em `-7px -2px`. ```js assert(new __helpers.CSSHelp(document).getStyle('.calories-info span')?.margin === '-7px -2px'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f61338c8ca176d6445574.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f61338c8ca176d6445574.md index fea1f6ed2de..b0a854dae9e 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f61338c8ca176d6445574.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f61338c8ca176d6445574.md @@ -1,13 +1,13 @@ --- id: 615f61338c8ca176d6445574 -title: Step 38 +title: Passo 38 challengeType: 0 dashedName: step-38 --- # --description-- -Below your `.calories-info` element, add a `div` with the `class` attribute set to `divider medium`. +Abaixo do elemento `.calories-info`, adicione uma `div` com o atributo `class` definido como `divider medium`. # --hints-- @@ -17,7 +17,7 @@ Você deve criar um `div` dentro do elemento `.label`. assert(document.querySelectorAll('.label > div')?.length === 3) ``` -Your new `div` should have the `class` attribute set to `divider medium`. Esta div deve ser o último elemento no elemento `.label`. +A nova `div` deve ter o atributo `class` definido como `divider medium`. Esta div deve ser o último elemento no elemento `.label`. ```js const div = document.querySelector('.label')?.lastElementChild; diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f666ac5edea782feb7e75.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f666ac5edea782feb7e75.md index f074a2cf764..2cc685be84c 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f666ac5edea782feb7e75.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f666ac5edea782feb7e75.md @@ -1,23 +1,23 @@ --- id: 615f666ac5edea782feb7e75 -title: Step 39 +title: Passo 39 challengeType: 0 dashedName: step-39 --- # --description-- -Create an `.medium` selector and give it a `height` property of `5px`. +Crie um seletor `.medium` e defina a propriedade `height` como `5px`. # --hints-- -You should create an `.medium` selector. +Você deve criar um seletor `.medium`. ```js assert(new __helpers.CSSHelp(document).getStyle('.medium')); ``` -Your `.medium` selector should have a `height` property set to `5px`. +O seletor `.medium` deve ter a propriedade `height` definida como `5px`. ```js assert(new __helpers.CSSHelp(document).getStyle('.medium')?.height === '5px'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f671b6d1919792745aa5d.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f671b6d1919792745aa5d.md index b275bbfc0d9..fada20c0bff 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f671b6d1919792745aa5d.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f671b6d1919792745aa5d.md @@ -1,17 +1,17 @@ --- id: 615f671b6d1919792745aa5d -title: Step 40 +title: Passo 40 challengeType: 0 dashedName: step-40 --- # --description-- -Create a new `div` element below your `.medium` element. Give it a `class` attribute set to `daily-value small-text`. Within this new `div`, add a `p` element with the text `% Daily Value *`, and set the `class` attribute to `bold right`. +Crie um elemento `div` abaixo do elemento `.medium`. Dê a ele um atributo `class` definido como `daily-value small-text`. Dentro dessa nova `div`, adicione um elemento `p` com o texto `% Daily Value *` e defina o atributo `class` como `bold right`. # --hints-- -You should create a new `div` element after your `.medium` element. +Você deve criar um elemento `div` após o elemento `.medium`. ```js assert(document.querySelector('.label')?.lastElementChild?.localName === 'div'); @@ -19,7 +19,7 @@ assert(document.querySelector('.label')?.lastElementChild?.previousElementSiblin assert(document.querySelector('.label')?.lastElementChild?.previousElementSibling?.classList?.contains('medium')); ``` -Your new `div` should have a `class` attribute set to `daily-value small-text`. +A nova `div` deve ter o atributo `class` definido como `daily-value small-text`. ```js assert(document.querySelector('.label')?.lastElementChild?.classList?.contains('daily-value')); @@ -38,7 +38,7 @@ O novo elemento `p` deve ter o texto `% Daily Value *`. assert(document.querySelector('.label')?.lastElementChild?.firstElementChild?.textContent === '% Daily Value *'); ``` -Your new `p` element should have a `class` attribute set to `bold right`. +O novo elemento `p` deve ter o atributo `class` definido como `bold right`. ```js assert(document.querySelector('.label')?.lastElementChild?.firstElementChild?.classList?.contains('bold')); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6823d0815b7a991f2a75.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6823d0815b7a991f2a75.md index aaacc5b490e..8f2d72b548f 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6823d0815b7a991f2a75.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6823d0815b7a991f2a75.md @@ -1,17 +1,17 @@ --- id: 615f6823d0815b7a991f2a75 -title: Step 42 +title: Passo 42 challengeType: 0 dashedName: step-42 --- # --description-- -Use your existing `.divider` element as an example to add a new divider after the `p` element. +Use o elemento `.divider` existente como um exemplo para adicionar um novo divisor após o elemento `p`. # --hints-- -You should create a new `div` within your `.daily-value` element. +Você deve criar um `div` dentro do elemento `.daily-value`. ```js assert(document.querySelectorAll('.daily-value.small-text > div')?.length === 1) diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6b2d164f81809efd9bdc.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6b2d164f81809efd9bdc.md index c6334fb99fc..3354cf122ba 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6b2d164f81809efd9bdc.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6b2d164f81809efd9bdc.md @@ -1,13 +1,13 @@ --- id: 615f6b2d164f81809efd9bdc -title: Step 43 +title: Passo 43 challengeType: 0 dashedName: step-43 --- # --description-- -Após o último elemento `.divider`, crie um elemento `p` e dê a ele o texto `Total Fat 8g 10%`. Encapsule `Total Fat` em um elemento `span` com a `class` definida como `bold`. Wrap `10%` in another `span` element with the `class` set to `bold`. Also wrap the words `Total Fat 8g` in an additional `span` element for alignment. +Após o último elemento `.divider`, crie um elemento `p` e dê a ele o texto `Total Fat 8g 10%`. Encapsule `Total Fat` em um elemento `span` com a `class` definida como `bold`. Encapsule `10%` em outro elemento `span` com a `class` definida como `bold`. Também encapsule as palavras `Total Fat 8g` em um elemento `span` adicional para o alinhamento. # --hints-- @@ -23,37 +23,37 @@ O novo elemento `p` deve ter o texto `Total Fat 8g 10%`. assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.innerText?.match(/Total Fat[\s|\n]+8g[\s|\n]+10%/)); ``` -Your `p` element should have three `span` elements. +O elemento `p` deve ter três elementos `span`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelectorAll('span')?.length === 3); ``` -One `span` element should wrap the text `Total Fat`. +Um elemento `span` deve encapsular o texto `Total Fat`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelector('span > span')?.innerText === 'Total Fat'); ``` -The `span` element around `Total Fat` should have the `class` set to `bold`. +O elemento `span` ao redor de `Total Fat` deve ter `class` definida como `bold`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelector('span > span')?.className === 'bold'); ``` -A `span` element should wrap the text `10%`. +Um elemento `span` deve encapsular o texto `10%`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelector('span + span')?.innerText === '10%'); ``` -The `span` element around `10%` should have the `class` set to `bold`. +O elemento `span` ao redor de `10%` deve ter `class` definida como `bold`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelectorAll('span')?.[1]?.className === 'bold'); ``` -A `span` element should have the text `Total Fat 8g`. +Um elemento `span` deve encapsular o texto `Total Fat 8g`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.innerText?.match(/Total Fat[\s|\n]+8g/)); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6cc778f7698258467596.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6cc778f7698258467596.md index 973889bfbc1..9b71480888f 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6cc778f7698258467596.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6cc778f7698258467596.md @@ -1,13 +1,13 @@ --- id: 615f6cc778f7698258467596 -title: Step 44 +title: Passo 44 challengeType: 0 dashedName: step-44 --- # --description-- -Abaixo do elemento com o texto `Total Fat`, crie um elemento `p` com o texto `Saturated Fat 1g 5%`. Wrap the `5%` in a `span` with the `class` attribute set to `bold`. In this case this is enough to align the percentage to `5%`. +Abaixo do elemento com o texto `Total Fat`, crie um elemento `p` com o texto `Saturated Fat 1g 5%`. Encapsule `5%` em outro elemento `span` com o atributo `class` definido como `bold`. Nesse caso, é o suficiente definir a porcentagem como `5%`. # --hints-- @@ -30,7 +30,7 @@ O elemento `p` deve ter um elemento `span`. assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.lastElementChild?.localName === 'span'); ``` -Your `span` element should have the `class` attribute set to `bold`. +O elemento `span` deve ter o atributo `class` com o valor `bold`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.lastElementChild?.classList?.contains('bold')); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6fddaac1e083502d3e6a.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6fddaac1e083502d3e6a.md index 5a08ef5e49e..20b1d6b45c5 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6fddaac1e083502d3e6a.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f6fddaac1e083502d3e6a.md @@ -1,6 +1,6 @@ --- id: 615f6fddaac1e083502d3e6a -title: Step 45 +title: Passo 45 challengeType: 0 dashedName: step-45 --- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f70077a4ff98424236c1e.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f70077a4ff98424236c1e.md index 70faebf5ad5..08be638f481 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f70077a4ff98424236c1e.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f70077a4ff98424236c1e.md @@ -1,6 +1,6 @@ --- id: 615f70077a4ff98424236c1e -title: Step 46 +title: Passo 46 challengeType: 0 dashedName: step-46 --- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f72a872354a850d4f533e.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f72a872354a850d4f533e.md index ef8caedc15f..905f486bcb9 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f72a872354a850d4f533e.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f72a872354a850d4f533e.md @@ -1,6 +1,6 @@ --- id: 615f72a872354a850d4f533e -title: Step 47 +title: Passo 47 challengeType: 0 dashedName: step-47 --- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f74a71f1e498619e38ee8.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f74a71f1e498619e38ee8.md index 4b8e7687af1..ae77e318dd9 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f74a71f1e498619e38ee8.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f74a71f1e498619e38ee8.md @@ -1,6 +1,6 @@ --- id: 615f74a71f1e498619e38ee8 -title: Step 48 +title: Passo 48 challengeType: 0 dashedName: step-48 --- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ad94380408d971d14f6.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ad94380408d971d14f6.md index d163ac7eb1b..12bf3a2007e 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ad94380408d971d14f6.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ad94380408d971d14f6.md @@ -1,6 +1,6 @@ --- id: 615f7ad94380408d971d14f6 -title: Step 49 +title: Passo 49 challengeType: 0 dashedName: step-49 --- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7bc680f7168ea01ebf99.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7bc680f7168ea01ebf99.md index 522cbc4f965..0f75a1be508 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7bc680f7168ea01ebf99.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7bc680f7168ea01ebf99.md @@ -1,6 +1,6 @@ --- id: 615f7bc680f7168ea01ebf99 -title: Step 50 +title: Passo 50 challengeType: 0 dashedName: step-50 --- @@ -13,7 +13,7 @@ O primeiro elemento `.no-divider` tem um `.divider` depois dele. Crie outro `.di # --hints-- -You should create a new `div` at the end of your `.daily-value` element. +Você deve criar um elemento `div` ao final do elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.localName === 'div'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7c71eab8218f846e4503.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7c71eab8218f846e4503.md index 3fb05454d70..d6203a2b5c1 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7c71eab8218f846e4503.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7c71eab8218f846e4503.md @@ -1,17 +1,17 @@ --- id: 615f7c71eab8218f846e4503 -title: Step 51 +title: Passo 51 challengeType: 0 dashedName: step-51 --- # --description-- -Após o último `.divider`, crie outro elemento `p` e dê a ele o texto `Trans Fat 0g`. Torne a palavra `Trans` em itálico ao encapsular ela em um elemento `i`. Dê ao elemento `p` o atributo `class` definido como `indent no-divider`. Wrap `Trans Fat 0g` in a `span` element for alignment. +Após o último `.divider`, crie outro elemento `p` e dê a ele o texto `Trans Fat 0g`. Torne a palavra `Trans` em itálico ao encapsular ela em um elemento `i`. Dê ao elemento `p` o atributo `class` definido como `indent no-divider`. Envolva `Trans Fat 0g` em um elemento `span` para o alinhamento. # --hints-- -You should create a new `p` element at the end of your `.daily-value` element. +Você deve criar um elemento `p` ao final do elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.localName === 'p'); @@ -43,13 +43,13 @@ O elemento `i` deve encapsular o texto `Trans`. assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelector('i')?.innerText === 'Trans'); ``` -Your new `p` element should have a `span` element. +O novo elemento `p` deve ter um elemento `span`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelector('span')); ``` -Your `span` element should wrap the text `Trans Fat 0g`. +O elemento `span` deve envolver o texto `Trans Fat 0g`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelector('span')?.innerText?.match(/Trans[\s|\n]+Fat 0g/)); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7d489a581590d1350288.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7d489a581590d1350288.md index e30ae7b2324..d1e3e62825d 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7d489a581590d1350288.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7d489a581590d1350288.md @@ -1,6 +1,6 @@ --- id: 615f7d489a581590d1350288 -title: Step 52 +title: Passo 52 challengeType: 0 dashedName: step-52 --- @@ -11,7 +11,7 @@ Crie outro `.divider` depois do último elemento `p`. # --hints-- -You should create a new `div` element at the end of your `.daily-value` element. +Você deve criar um elemento `div` ao final do elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.localName === 'div'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7de4487b64919bb4aa5e.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7de4487b64919bb4aa5e.md index 7fe5f19deb5..f5992edafe2 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7de4487b64919bb4aa5e.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7de4487b64919bb4aa5e.md @@ -1,17 +1,17 @@ --- id: 615f7de4487b64919bb4aa5e -title: Step 53 +title: Passo 53 challengeType: 0 dashedName: step-53 --- # --description-- -Após o último `.divider`, crie um elemento `p` com o texto `Cholesterol 0mg 0%`. Encapsule o texto `Cholesterol` em um elemento `span`, e dê a ele o elemento `span` com o atributo `class` definido como `bold`. Wrap the text `0%` in another `span` element, with the `class` set to `bold`. Also wrap `Cholesterol 0mg` in an additional `span` element for the alignment. +Após o último `.divider`, crie um elemento `p` com o texto `Cholesterol 0mg 0%`. Encapsule o texto `Cholesterol` em um elemento `span`, e dê a ele o elemento `span` com o atributo `class` definido como `bold`. Encapsule o texto `0%` em outro elemento `span`, com a `class` definida como `bold`. Também encapsule `Cholesterol 0mg` em um elemento `span` adicional para o alinhamento. # --hints-- -You should create a new `p` element at the end of your `.daily-value` element. +Você deve criar um elemento `p` ao final do elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.localName === 'p'); @@ -23,37 +23,37 @@ O novo elemento `p` deve ter o texto `Cholesterol 0mg 0%`. assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.innerText?.match(/Cholesterol[\s|\n]+0mg[\s|\n]+0%/)); ``` -Your new `p` element should have three `span` elements. +O novo elemento `p` deve ter três elementos `span`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelectorAll('span')?.length === 3); ``` -Your first `span` `Cholesterol` element should have the `class` attribute set to `bold`. +O primeiro elemento `span` `Cholesterol` deve ter o atributo `class` definido como `bold`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.firstElementChild?.firstElementChild?.classList?.contains('bold')); ``` -Your first `span` element should wrap the text `Cholesterol 0mg`. +O primeiro elemento `span` deve encapsular o texto `Cholesterol 0mg`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.firstElementChild?.innerText?.match(/Cholesterol[\s|\n]+0mg/)); ``` -Your first `span` element should wrap the text `Cholesterol`. +O primeiro elemento `span` deve encapsular o texto `Cholesterol`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.firstElementChild?.firstElementChild?.innerText === 'Cholesterol'); ``` -Your second `span` element should have the `class` attribute set to `bold`. +O segundo elemento `span` deve ter o atributo `class` definido como `bold`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.lastElementChild?.classList?.contains('bold')); ``` -Your second `span` element should wrap the text `0%`. +O segundo elemento `span` deve encapsular o texto `0%`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.lastElementChild?.innerText === '0%'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7e7281626a92bbd62da8.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7e7281626a92bbd62da8.md index e22b19ad118..3e63b92fdf9 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7e7281626a92bbd62da8.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7e7281626a92bbd62da8.md @@ -1,17 +1,17 @@ --- id: 615f7e7281626a92bbd62da8 -title: Step 54 +title: Passo 54 challengeType: 0 dashedName: step-54 --- # --description-- -Após o último elemento `p`, crie outro elemento `p` e dê a ele o texto `Sodium 160mg 7%`. Encapsule o texto `Sodium` em um elemento `span` com o atributo `class` definido como `bold`. Wrap the `7%` text in another `span` element with the `class` set to `bold`. Also add an additional `span` element around `Sodium 160mg` for aligning it correctly. +Após o último elemento `p`, crie outro elemento `p` e dê a ele o texto `Sodium 160mg 7%`. Encapsule o texto `Sodium` em um elemento `span` com o atributo `class` definido como `bold`. Encapsule o texto `7%` em outro elemento `span` com a `class` definida como `bold`. Adicione também um elemento `span` ao redor de `Sodium 160mg` para alinhá-lo corretamente. # --hints-- -You should create a new `p` element at the end of your `.daily-value` element. +Você deve criar um elemento `p` ao final do elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.localName === 'p'); @@ -23,37 +23,37 @@ O novo elemento `p` deve ter o texto `Sodium 160mg 7%`. assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.innerText?.match(/Sodium[\s|\n]160mg[\s|\n]+7%/)); ``` -Your new `p` element should have three `span` elements. +O novo elemento `p` deve ter três elementos `span`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelectorAll('span')?.length === 3); ``` -A `span` element should wrap the text `Sodium 360mg`. +Um elemento `span` deve encapsular o texto `Sodium 360mg`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.firstElementChild?.innerText?.match(/Sodium[\s|\n]160mg/)); ``` -A `span` element should wrap the text `Sodium`. +Um elemento `span` deve encapsular o texto `Sodium`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.firstElementChild?.firstElementChild?.innerText === "Sodium"); ``` -The `span` around `Sodium` should have the `class` attribute set to `bold`. +O elemento `span` ao redor de `Sodium` deve ter o atributo `class` definido como `bold`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.firstElementChild?.firstElementChild?.classList?.contains('bold')); ``` -A `span` element should wrap the text `7%`. +Um elemento `span` deve encapsular o texto `7%`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.lastElementChild?.innerText === '7%'); ``` -The `span` element around `7%` should have the `class` attribute set to `bold`. +O elemento `span` ao redor de `7%` deve ter o atributo `class` definido como `bold`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.lastElementChild?.classList?.contains('bold')); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md index 891f7c369ae..889fc9109d6 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md @@ -1,17 +1,17 @@ --- id: 615f7ecb09de9a938ef94756 -title: Step 55 +title: Passo 55 challengeType: 0 dashedName: step-55 --- # --description-- -Adicione outro elemento `p` com o texto `Total Carbohydrate 37g 13%`. Like before, use `span` elements to make the text `Total Carbohydrate` bold, and the text `13%` bold. Also add an additional `span` element to wrap the `Total Carbohydrate 37g` text in a span element so to have it aligned to the left, and `13%` to the right. +Adicione outro elemento `p` com o texto `Total Carbohydrate 37g 13%`. Like before, use `span` elements to make the text `Total Carbohydrate` and `13%` bold. Adicione também um elemento `span` para envolver o texto `Total Carbohydrate 37g` em um elemento span que ele esteja alinhado à esquerda e `13%` à direita. # --hints-- -You should create a new `p` element at the end of your `.daily-value` element. +Você deve criar um elemento `p` ao final do elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.localName === 'p'); @@ -23,43 +23,43 @@ O novo elemento `p` deve ter o texto `Total Carbohydrate 37g 13%`. assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.innerText?.match(/Total Carbohydrate[\s|\n]+37g[\s|\n]+13%/)); ``` -Your new `p` element should have three `span` elements. +O novo elemento `p` deve ter três elementos `span`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelectorAll('span')?.length === 3); ``` -One `span` element should wrap the text `Total Carbohydrate 37g`. +Um elemento `span` deve encapsular o texto `Total Carbohydrate 37g`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.firstElementChild?.innerText?.match(/Total Carbohydrate[\s|\n]+37g/)); ``` -One `span` element should wrap the text `Total Carbohydrate`. +Um elemento `span` deve encapsular o texto `Total Carbohydrate`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.firstElementChild?.firstElementChild?.innerText === 'Total Carbohydrate'); ``` -The `span` element around `Total Carbohydrate` should have the `class` attribute set to `bold`. +O elemento `span` ao redor de `Total Carbohydrate` deve ter o atributo `class` definido como `bold`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.firstElementChild?.firstElementChild?.classList?.contains('bold')); ``` -A `span` element should wrap the text `13%`. +Um elemento `span` deve encapsular o texto `13%`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.lastElementChild?.innerText === '13%'); ``` -The `span` element around `13%` should have the `class` attribute set to `bold`. +O elemento `span` ao redor de `13%` deve ter o atributo `class` definido como `bold`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.lastElementChild?.classList?.contains('bold')); ``` -Your second `span` element should wrap the text `13%`. +O segundo elemento `span` deve encapsular o texto `13%`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.lastElementChild?.innerText === '13%'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7fa959ab75948f96a0d6.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7fa959ab75948f96a0d6.md index 2e8177b2cfb..ed0fcdd69b2 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7fa959ab75948f96a0d6.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7fa959ab75948f96a0d6.md @@ -1,6 +1,6 @@ --- id: 615f7fa959ab75948f96a0d6 -title: Step 56 +title: Passo 56 challengeType: 0 dashedName: step-56 --- @@ -11,7 +11,7 @@ Após o último elemento `p`, crie outro elemento `p` e dê a ele o texto `Dieta # --hints-- -You should create a new `p` and `div` element at the end of your `.daily-value` element. +Você deve criar um elemento `p` e um elemento `div` ao final do elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.previousElementSibling?.localName === 'p'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f808d85793195b0f53be9.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f808d85793195b0f53be9.md index f4c6e87f2c9..f40256263d7 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f808d85793195b0f53be9.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f808d85793195b0f53be9.md @@ -1,6 +1,6 @@ --- id: 615f808d85793195b0f53be9 -title: Step 57 +title: Passo 57 challengeType: 0 dashedName: step-57 --- @@ -11,7 +11,7 @@ Crie outro elemento `p` após o último `.divider` e dê a ele o texto `Total Su # --hints-- -You should create a new `p` and `div` element at the end of your `.daily-value` element. +Você deve criar um elemento `p` e um elemento `div` ao final do elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.previousElementSibling?.localName === 'p'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f829d07b18f96f6f6684b.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f829d07b18f96f6f6684b.md index 277bbaf79bc..a27fab3ebd0 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f829d07b18f96f6f6684b.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f829d07b18f96f6f6684b.md @@ -1,17 +1,17 @@ --- id: 615f829d07b18f96f6f6684b -title: Step 58 +title: Passo 58 challengeType: 0 dashedName: step-58 --- # --description-- -A vantagem de criar esses divisores é que você pode aplicar classes específicas para estilizá-los individualmente. Add `double-indent` to the `class` for your last `.divider`. +A vantagem de criar esses divisores é que você pode aplicar classes específicas para estilizá-los individualmente. Adicione `double-indent` à `class` para o último `.divider`. # --hints-- -Your last `.divider` element should have `double-indent` added to the `class`. Não remova o valor existente. +O último elemento `.divider` deve ter `double-indent` adicionado à `class`. Não remova o valor existente. ```js const last = document.querySelector('.daily-value.small-text')?.lastElementChild; diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f83ef928ec9982b785b6a.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f83ef928ec9982b785b6a.md index 370fd147adf..707cb6283c1 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f83ef928ec9982b785b6a.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f83ef928ec9982b785b6a.md @@ -1,23 +1,23 @@ --- id: 615f83ef928ec9982b785b6a -title: Step 59 +title: Passo 59 challengeType: 0 dashedName: step-59 --- # --description-- -Create a `.double-indent` selector and give it a left margin of `2em`. +Crie um seletor `.double-indent` e dê a ele uma margem esquerda de `2em`. # --hints-- -You should have a new `.double-indent` selector. +Você deve ter um novo seletor `.double-indent`. ```js assert(new __helpers.CSSHelp(document).getStyle('.double-indent')); ``` -Your `.double-indent` selector should have a `margin-left` property set to `2em`. +O seletor `.double-indent` deve ter a propriedade `margin-left` definida como `2em`. ```js assert(new __helpers.CSSHelp(document).getStyle('.double-indent')?.marginLeft === '2em'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f84f246e8ba98e3cd97be.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f84f246e8ba98e3cd97be.md index 290edfde31b..d2ef11224d5 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f84f246e8ba98e3cd97be.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f84f246e8ba98e3cd97be.md @@ -1,19 +1,19 @@ --- id: 615f84f246e8ba98e3cd97be -title: Step 60 +title: Passo 60 challengeType: 0 dashedName: step-60 --- # --description-- -Below your `.double-indent` element, add a new `p` element with the text `Includes 10g Added Sugars 20%`. O novo elemento `p` também deve ter indentação dupla e não ter borda inferior. Use um `span` para fazer com que `20%` esteja alinhado à direita e em negrito. +Abaixo do elemento `.double-indent`, adicione um elemento `p` com o texto `Includes 10g Added Sugars 20%`. O novo elemento `p` também deve ter indentação dupla e não ter borda inferior. Use um `span` para fazer com que `20%` esteja alinhado à direita e em negrito. Em seguida, crie outro divisor abaixo do elemento `p`. # --hints-- -You should create a new `p` and `div` element at the end of your `.daily-value` element. +Você deve criar um elemento `p` e um elemento `div` ao final do elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.previousElementSibling?.localName === 'p'); @@ -26,7 +26,7 @@ O novo elemento `p` deve ter o texto `Includes 10g Added Sugars 20%`. assert(document.querySelector('.daily-value.small-text p:last-of-type')?.innerText.match(/Includes 10g Added Sugars[\s|\n]+20%/)); ``` -Your new `p` element should have the `class` attribute set to `double-indent no-divider`. +O novo elemento `p` deve ter o atributo `class` definido como `double-indent no-divider`. ```js assert(document.querySelector('.daily-value.small-text p:last-of-type')?.classList?.contains('double-indent')); @@ -39,7 +39,7 @@ O novo elemento `p` deve ter um elemento `span`. assert(document.querySelector('.daily-value.small-text p:last-of-type')?.firstElementChild?.localName === 'span'); ``` -Your `span` element should have the `class` attribute set to `bold`. +O elemento `span` deve ter o atributo `class` com o valor `bold`. ```js assert(document.querySelector('.daily-value.small-text p:last-of-type')?.firstElementChild?.classList?.contains('bold')); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f887466db4ba14b5342cc.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f887466db4ba14b5342cc.md index 330dcacbcec..9c422dec266 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f887466db4ba14b5342cc.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f887466db4ba14b5342cc.md @@ -1,6 +1,6 @@ --- id: 615f887466db4ba14b5342cc -title: Step 61 +title: Passo 61 challengeType: 0 dashedName: step-61 --- @@ -13,7 +13,7 @@ Depois desse elemento, crie um divisor grande. # --hints-- -You should create a new `p` and `div` element at the end of your `.daily-value` element. +Você deve criar um elemento `p` e um elemento `div` ao final do elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.previousElementSibling?.localName === 'p'); @@ -32,7 +32,7 @@ O novo elemento `p` deve ter o atributo `class` definido como `no-divider`. assert(document.querySelector('.daily-value.small-text p:last-of-type')?.classList?.contains('no-divider')); ``` -Your new `div` should have the `class` attribute set to `divider large`. +A nova `div` deve ter o atributo `class` definido como `divider large`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.classList?.contains('divider')); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f89e055040ba294719d2f.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f89e055040ba294719d2f.md index ade7f41901e..dd3d5510705 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f89e055040ba294719d2f.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f89e055040ba294719d2f.md @@ -1,6 +1,6 @@ --- id: 615f89e055040ba294719d2f -title: Step 62 +title: Passo 62 challengeType: 0 dashedName: step-62 --- @@ -9,29 +9,29 @@ dashedName: step-62 Crie outro elemento `p` abaixo do divisor grande. Dê ao elemento `p` o texto `Vitamin D 2mcg 10%`. -The `p` element contains only text, you can wrap the percentage in a `span` element so that it is considered a separate entity from the rest of the text, and it's moved to the right. +O elemento `p` contém apenas texto, Você pode encapsular a porcentagem em um elemento `span` para que seja considerada uma entidade separada do resto do texto e movida para a direita. # --hints-- -You should create a new `p` element at the end of your `.daily-value` element. +Você deve criar um elemento `p` ao final do elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.localName === 'p'); ``` -Your new `p` element should have the text `Vitamin D 2mcg 10%`. +O novo elemento `p` deve ter o texto `Vitamin D 2mcg 10%`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.innerText?.match(/Vitamin D 2mcg[\s|\n]+10%/)); ``` -Your new `p` element should have a `span` element. +O novo elemento `p` deve ter um elemento `span`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelectorAll('span')?.length === 1); ``` -Your `span` element should not be bold. +O texto do elemento `span` não deve estar em negrito. ```js assert(!document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelector('span')?.classList?.contains('bold')); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f8bfe0f30a1a3c340356b.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f8bfe0f30a1a3c340356b.md index d210dbef9f2..206a0e9b7cb 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f8bfe0f30a1a3c340356b.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f8bfe0f30a1a3c340356b.md @@ -1,6 +1,6 @@ --- id: 615f8bfe0f30a1a3c340356b -title: Step 63 +title: Passo 63 challengeType: 0 dashedName: step-63 --- @@ -11,7 +11,7 @@ Crie outro elemento `p`, dê a ele o texto `Calcium 260mg 20%`. Alinhe `20%` à # --hints-- -You should create two new `p` elements at the end of your `.daily-value` element. +Você deve criar dois elementos `p` ao final do elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.localName === 'p'); @@ -30,7 +30,7 @@ O primeiro novo elemento `p` deve ter um elemento `span`. assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.previousElementSibling?.firstElementChild?.localName === 'span'); ``` -Your first `span` element not be bold. +O primeiro elemento `span` não deve estar em negrito. ```js assert(!document.querySelector('.daily-value.small-text')?.lastElementChild?.previousElementSibling?.firstElementChild?.classList?.contains('bold')); @@ -54,7 +54,7 @@ O segundo novo elemento `p` deve ter um elemento `span`. assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.firstElementChild?.localName === 'span'); ``` -Your second `span` element should not be bold. +O segundo elemento `span` não deve estar em negrito. ```js assert(!document.querySelector('.daily-value.small-text')?.lastElementChild?.firstElementChild?.classList?.contains('bold')); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f8f1223601fa546e93f31.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f8f1223601fa546e93f31.md index 4e918328b00..831136adefd 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f8f1223601fa546e93f31.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f8f1223601fa546e93f31.md @@ -1,6 +1,6 @@ --- id: 615f8f1223601fa546e93f31 -title: Step 64 +title: Passo 64 challengeType: 0 dashedName: step-64 --- @@ -11,7 +11,7 @@ Crie o elemento final `p` para a seção `.daily-value`. Dê a ela o texto `Pota # --hints-- -You should create a new `p` element at the end of your `.daily-value` element. +Você deve criar um elemento `p` ao final do elemento `.daily-value`. ```js assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.localName === 'p'); @@ -35,7 +35,7 @@ O novo elemento `p` deve ter um elemento `span`. assert(document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelectorAll('span')?.length === 1); ``` -Your `span` element should not be bold. +O texto do elemento `span` não deve estar em negrito. ```js assert(!document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelector('span')?.classList?.contains('bold')); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f905fbd1017a65ca224eb.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f905fbd1017a65ca224eb.md index 16be4ccd57b..8993479f663 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f905fbd1017a65ca224eb.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f905fbd1017a65ca224eb.md @@ -1,6 +1,6 @@ --- id: 615f905fbd1017a65ca224eb -title: Step 65 +title: Passo 65 challengeType: 0 dashedName: step-65 --- @@ -23,7 +23,7 @@ Você deve criar um `div` após o elemento `.daily-value`. assert(document.querySelector('.daily-value').nextElementSibling?.localName === 'div'); ``` -Your new `div` should have the `class` set to `divider medium`. +A nova `div` deve ter `class` definido como `divider medium`. ```js assert(document.querySelector('.daily-value')?.nextElementSibling?.classList?.contains('divider')); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f94786869e1a7fec54375.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f94786869e1a7fec54375.md index 4da08202a49..43c3c02d61f 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f94786869e1a7fec54375.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f94786869e1a7fec54375.md @@ -1,6 +1,6 @@ --- id: 615f94786869e1a7fec54375 -title: Step 66 +title: Passo 66 challengeType: 0 dashedName: step-66 --- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f951dff9317a900ef683f.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f951dff9317a900ef683f.md index fe4da7ad236..559878e2e00 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f951dff9317a900ef683f.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f951dff9317a900ef683f.md @@ -1,6 +1,6 @@ --- id: 615f951dff9317a900ef683f -title: Step 67 +title: Passo 67 challengeType: 0 dashedName: step-67 --- diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/635bde33c91c80540eae239b.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/635bde33c91c80540eae239b.md index d9073bf18ba..6b968a827ec 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/635bde33c91c80540eae239b.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/635bde33c91c80540eae239b.md @@ -1,17 +1,17 @@ --- id: 635bde33c91c80540eae239b -title: Step 41 +title: Passo 41 challengeType: 0 dashedName: step-41 --- # --description-- -The text `* Daily Value %` should be aligned to the right. Create a `.right` selector and use the `justify-content` property to do it. +O texto `* Daily Value %` deve ser alinhado à direita. Crie um seletor `.right` e use a propriedade `justify-content` para fazer isso. # --hints-- -You should have a `.right` selector. +Você deve ter um seletor `.right`. ```js const hasRight = new __helpers.CSSHelp(document).getStyle('.right'); @@ -19,7 +19,7 @@ assert(hasRight); ``` -The `.right` selector should have the `justify-content` property set to `flex-end`. +O seletor `.right` deve ter uma propriedade `justify-content` definida como `flex-end`. ```js const rightJustifyContent = new __helpers.CSSHelp(document).getStyle('.right')?.getPropertyValue('justify-content'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/6395d33ab5d91bf317107c48.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/6395d33ab5d91bf317107c48.md index e6f009b7e04..a72639b1281 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/6395d33ab5d91bf317107c48.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/6395d33ab5d91bf317107c48.md @@ -1,23 +1,23 @@ --- id: 6395d33ab5d91bf317107c48 -title: Step 32 +title: Passo 32 challengeType: 0 dashedName: step-32 --- # --description-- -Create a `.calories-info h2` selector and remove all margins. +Crie um seletor `.calories-info h2` e remova todas as margens. # --hints-- -Create a `.calories-info h2` selector. +Crie um seletor `.calories-info h2`. ```js assert(new __helpers.CSSHelp(document).getStyle('.calories-info h2')); ``` -Your `.calories-info h2` selector should have a `margin` set to `0`. +O seletor `.calories-info h2` deve ter uma `margin` definida como `0`. ```js assert(new __helpers.CSSHelp(document).getStyle('.calories-info h2')?.margin === '0px'); diff --git a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/6396e33fe478dd264ebbf278.md b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/6396e33fe478dd264ebbf278.md index 6a2dbb37aa9..cd1c97f27d1 100644 --- a/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/6396e33fe478dd264ebbf278.md +++ b/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/6396e33fe478dd264ebbf278.md @@ -1,35 +1,35 @@ --- id: 6396e33fe478dd264ebbf278 -title: Step 34 +title: Passo 34 challengeType: 0 dashedName: step-34 --- # --description-- -Create a new `.calories-info` selector and give it a `display` property set to `flex`. Also give it a `justify-content` property set to `space-between` and `align-items` property set to `flex-end`. +Crie um seletor `.calories-info` e defina a propriedade `display` como `flex`. Também dê a ele uma propriedade `justify-content` definida como `space-between` e `align-items` definida como `flex-end`. # --hints-- -You should create a `.calories-info` selector. +Você deve criar um seletor `.calories-info`. ```js assert(new __helpers.CSSHelp(document).getStyle('.calories-info')); ``` -Your `.calories-info` selector should have a `display` property set to `flex`. +O seletor `.calories-info` deve ter a propriedade `display` definida como `flex`. ```js assert(new __helpers.CSSHelp(document).getStyle('.calories-info')?.display === 'flex'); ``` -Your `.calories-info` selector should have a `justify-content` property set to `space-between`. +O seletor `.calories-info` deve ter uma propriedade `justify-content` definida como `space-between`. ```js assert(new __helpers.CSSHelp(document).getStyle('.calories-info')?.justifyContent === 'space-between'); ``` -Your `.calories-info` selector should have a `align-items` property set to `flex-end`. +O seletor `.calories-info` deve ter a propriedade `align-items` definida como `flex-end`. ```js assert(new __helpers.CSSHelp(document).getStyle('.calories-info')?.alignItems === 'flex-end'); diff --git a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md index 49a3014b7bf..f15a8c6de8b 100644 --- a/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md +++ b/curriculum/challenges/portuguese/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a8b6536156c51500739b41.md @@ -7,7 +7,7 @@ dashedName: step-62 # --description-- -O array `locations` contém dois locais: a praça da cidade (em inglês, town square) e a loja (em inglês, store). Atualmente, você está passando esse array inteiro para as funções de atualização. Passe apenas o primeiro elemento do array `locations` adicionando `[0]` no final da variável. Por exemplo: `myFunction(arg[0]);`. +The `locations` array contains two locations: the `town square` and the `store`. Currently you are passing that entire array into the `update` function. Passe apenas o primeiro elemento do array `locations` adicionando `[0]` no final da variável. Por exemplo: `myFunction(arg[0]);`. Isso é chamado de notação de colchete. Valores em um array são acessados pelo índice. Índices são valores numéricos e começam em 0 – isto é chamado de indexação baseada em zero. `arg[0]` deve ser o primeiro elemento no array `arg`. diff --git a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/practice-comparing-different-values.md b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/practice-comparing-different-values.md index 2bf7df29e0d..27b3882b97d 100644 --- a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/practice-comparing-different-values.md +++ b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/practice-comparing-different-values.md @@ -1,6 +1,6 @@ --- id: 599a789b454f2bbd91a3ff4d -title: Вчіться порівнювати різні значення +title: Порівняння різних значень на практиці challengeType: 1 videoUrl: 'https://scrimba.com/c/cm8PqCa' forumTopicId: 301174 @@ -9,15 +9,15 @@ dashedName: practice-comparing-different-values # --description-- -В останніх двох задачах, ми вивчили оператор рівності (`==`) та оператор абсолютної рівності (`===`). Пригадаймо пройдену інформацію та спробуймо використати ці оператори знову. +В останніх двох завданнях ми вивчили оператор рівності (`==`) та оператор строгої рівності (`===`). Пригадаємо пройдену інформацію та попрактикуємо ці оператори знову. -Якщо ми порівнюємо значення різних типів, то оператор рівності спершу конвертує типи, а потім обраховує значення. Однак, оператор абсолютної рівності порівнюватиме, як тип даних, так і значення у вихідному вигляді, не конвертуючи типи. +Якщо ми порівнюємо значення різних типів, то оператор рівності спочатку конвертує їх, а потім вирахує значення. А ось оператор строгої рівності порівнюватиме тип даних та значення у вихідному вигляді, не конвертуючи їх. -**Наприклад:** +**Приклади** -`3 == '3'` повертає результат `true` тому, що JavaScript конвертує рядок у число. `3 === '3'` returns `false` because the types are different and type conversion is not performed. +`3 == '3'` повертає `true`, оскільки JavaScript конвертує рядок у число. `3 === '3'` повертає `false`, оскільки це різні типи і конвертація не виконується. -**Примітка:** В JavaScript, ви можете визначити тип змінної або значення за допомогою оператора `typeof`, наступним чином: +**Примітка:** у JavaScript можна визначити тип змінної або значення за допомогою оператора `typeof`, ось так: ```js typeof 3 @@ -28,7 +28,7 @@ typeof '3' # --instructions-- -Функція `compareEquality` в редакторі порівнює два значення за допомогою оператора рівності. Змініть функцію так, щоб вона повернула рядок `Equal` лише тоді, коли значення абсолютно рівні. +Функція `compareEquality` в редакторі порівнює два значення за допомогою оператора рівності. Змініть функцію так, щоб вона повернула рядок `Equal` лише тоді, коли значення строго рівні. # --hints-- diff --git a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/profile-lookup.md b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/profile-lookup.md index fd53cebbad6..03954acee4f 100644 --- a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/profile-lookup.md +++ b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/profile-lookup.md @@ -9,17 +9,17 @@ dashedName: profile-lookup # --description-- -У нас є безліч об'єктів, що представляють різних людей у наших списках контактів. +У нас є масив об'єктів, які представляють різних людей зі списку контактів. -Функція `lookUpProfile` яка приймає `name` та властивість (`prop`) як аргументи були попередньо записані для вас. +Функція `lookUpProfile`, яка приймає `name` та властивість (`prop`) як аргументи, вже записана для вас. -Функція має перевірити, чи `name` є фактичним контактом `firstName` і даний параметр (`prop`) є властивістю цього контакту. +Функція повинна перевірити, чи `name` дійсно є ім’ям (`firstName`) контакту і надана властивість (`prop`) є властивістю цього контакту. -Якщо обидва є правдою, то поверніть "значення" цієї власності. +Якщо обидва є істинними, то поверніть значення цієї власності. Якщо `name` не відповідає жодному контакту, поверніть рядок `No such contact`. -Якщо `prop` не відповідає жодним дійсним властивостям контакту, знайденим за відповідністю `name` потім поверніться на рядок `No such property`. +Якщо `prop` не збігається з жодною дійсною властивістю контакту, що відповідає `name`, поверніть рядок `No such property`. # --hints-- diff --git a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/quoting-strings-with-single-quotes.md b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/quoting-strings-with-single-quotes.md index cf4c208fffa..0717bf36f37 100644 --- a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/quoting-strings-with-single-quotes.md +++ b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/quoting-strings-with-single-quotes.md @@ -9,14 +9,14 @@ dashedName: quoting-strings-with-single-quotes # --description-- -Значення String у JavaScript може бути записане з одинарними чи подвійними лапками, якщо ті ж самі лапки використовуються на початку та в кінці. На відміну від інших мов програмування, одинарні і подвійні лапки працюють однаково в JavaScript. +Значення рядків у JavaScript можна записати в одинарних чи подвійних лапках: головне, щоб спочатку та вкінці використовувались ті самі лапки. На відміну від інших мов програмування, у JavaScript одинарні і подвійні лапки працюють однаково. ```js const doubleQuoteStr = "This is a string"; const singleQuoteStr = 'This is also a string'; ``` -Причиною використовувати один тип лапок поруч з іншим є використання обидвох типів лапок у рядку. Наприклад, коли ви хочете відтворити розмову у рядку і оформити цю розмову лапками. Або ж, коли ви зберігаєте тег `` з різними атрибутами в лапках і все в межах одного рядка. +Іноді можна використати обидва типи лапок в одному рядку. Наприклад, коли потрібно відтворити розмову в рядку і взяти її в лапки. Або ж, коли ви зберігаєте тег `` з різними атрибутами в лапках і все в межах одного рядка. ```js const conversation = 'Finn exclaims to Jake, "Algebraic!"'; @@ -29,21 +29,21 @@ const goodStr = 'Jake asks Finn, "Hey, let\'s go on an adventure?"'; const badStr = 'Finn responds, "Let's go!"'; ``` -В цього випадку `badStr` покаже помилку. +В такому випадку `badStr` покаже помилку. -У goodStr вище, можна спокійно використовувати лапки, додавши зворотну скісну риску `\` як екранований символ. +У goodStr вище можна спокійно використати лапки, додавши зворотну скісну риску `\` як екранований символ. -**Примітка:** Зворотну скісну риску `\` не слід плутати з скісною рискою `/`. Вони мають різні функції. +**Примітка:** не плутайте зворотну скісну риску `\` зі скісною рискою `/`. Вони мають різні функції. # --instructions-- -Змініть поданий рядок на рядок з одинарними лапками на початку і в кінці та не використовуйте екрановані символи. +Змініть поданий рядок на рядок з одинарними лапками спочатку і вкінці, не використовуючи екрановані символи. -Зараз тег `` у рядку може використовувати всюди подвійні лапки. Вам потрібно буде змінити зовнішні лапки на одинарні лапки, щоб видалити екрановані символи. +Наразі тег `` у рядку використовує подвійні лапки всюди. Вам потрібно буде змінити зовнішні лапки на одинарні лапки, щоб видалити екрановані символи. # --hints-- -Вам слід видалити усі зворотні скісні риски (`\`). +Ви повинні видалити всі зворотні скісні риски (`\`). ```js assert( @@ -54,7 +54,7 @@ assert( ); ``` -У вас повинні бути дві одинарні лапки `'` і чотири подвійні лапки `"`. +Ви повинні мати дві одинарні лапки `'` та чотири подвійні лапки `"`. ```js assert(code.match(/"/g).length === 4 && code.match(/'/g).length === 2); diff --git a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/record-collection.md b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/record-collection.md index b20db1b155d..6e872c248a9 100644 --- a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/record-collection.md +++ b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/record-collection.md @@ -1,6 +1,6 @@ --- id: 56533eb9ac21ba0edf2244cf -title: Збірка записів +title: Колекція музичних альбомів challengeType: 1 forumTopicId: 18261 dashedName: record-collection @@ -8,21 +8,21 @@ dashedName: record-collection # --description-- -Вам наданий літерал об'єкту, який є частиною вашої збірки музичних альбомів. Кожен альбом має свій унікальний ідентифікаційний номер та декілька інших властивостей. Не всі альбоми мають повну інформацію. +Вам надано літерал об'єкта, який представляє вашу колекцію музичних альбомів. Кожен альбом має унікальний id як свій ключ та декілька інших властивостей. Не всі альбоми мають повну інформацію. -Ви починаєте з функції `updateRecords`, яка приймає літерал об'єкту `records`, який містить колекцію музичного альбому, `id`, `prop` (такі як `artist` чи `tracks`), і `value`. Завершіть функцію, використовуючи правила нижче, щоб змінити об'єкт, переданий до функції. +Ви починаєте з функції `updateRecords`, що приймає літерал об'єкта `records`, який містить колекцію музичних альбомів, `id`, `prop` (типу `artist` чи `tracks`) та `value`. Завершіть функцію, використовуючи правила нижче, щоб змінити об'єкт, переданий до функції. -- Ваша функція повинна завжди повертати весь об'єкт збірки записів. -- Якщо `prop` це не `tracks` і `value` не є пустим рядком, то оновіть або встановіть `prop` альбому до `value`. -- Якщо `prop` є `tracks` але альбом немає властивості `tracks`, створіть пустий масив та додайте `value` до нього. -- Якщо `prop` є `tracks` та `value` не є пустим рядком, додайте `value` до кінця наявного масиву `tracks` у альбомі. +- Ваша функція завжди повинна повертати весь об'єкт-колекцію. +- Якщо `prop` не є `tracks`, а `value` не є пустим рядком, то оновіть або встановіть `prop` альбому на `value`. +- Якщо `prop` є `tracks`, але альбом не має властивості `tracks`, то створіть пустий масив та додайте `value` до нього. +- Якщо `prop` є `tracks` та `value` не є пустим рядком, то додайте `value` в кінець наявного масиву `tracks` в альбомі. - Якщо `value` є пустим рядком, видаліть дану властивість `prop` з альбому. -**Note:** Копія об'єкту `recordCollection` використовується для тестування. +**Примітка:** копія об'єкту `recordCollection` використовується для тестів. # --hints-- -Після `updateRecords(recordCollection, 5439, "artist", "ABBA")`, `artist` повинен бути рядок `ABBA` +Після `updateRecords(recordCollection, 5439, "artist", "ABBA")`, `artist` повинен стати рядком `ABBA` ```js assert( @@ -31,7 +31,7 @@ assert( ); ``` -After `updateRecords(recordCollection, 5439, "tracks", "Take a Chance on Me")`, `tracks` should have the string `Take a Chance on Me` as the last and only element. +Після `updateRecords(recordCollection, 5439, "tracks", "Take a Chance on Me")`, `tracks` повинен мати рядок `Take a Chance on Me` як останній та єдиний елемент. ```js assert( @@ -41,14 +41,14 @@ assert( ); ``` -Після `updateRecords(recordCollection, 2548, "artist", "")`, не потрібно встановлювати `artist` +Після `updateRecords(recordCollection, 2548, "artist", "")` не потрібно налаштовувати `artist` ```js updateRecords(_recordCollection, 2548, 'artist', ''); assert(!_recordCollection[2548].hasOwnProperty('artist')); ``` -Після `updateRecords(recordCollection, 1245, "tracks", "Addicted to Love")`, `tracks` повинні мати рядок `Addicted to Love` останнім елементом. +Після `updateRecords(recordCollection, 1245, "tracks", "Addicted to Love")`, `tracks` повинен мати рядок `Addicted to Love` як останній елемент. ```js assert( @@ -58,7 +58,7 @@ assert( ); ``` -Після `updateRecords(recordCollection, 2468, "tracks", "Free")`, `tracks` повинні мати рядок `1999` першим елементом. +Після `updateRecords(recordCollection, 2468, "tracks", "Free")`, `tracks` повинен мати рядок `1999` як перший елемент. ```js assert( @@ -68,14 +68,14 @@ assert( ); ``` -Після `updateRecords(recordCollection, 2548, "tracks", "")`, не потрібно встановлювати `tracks` +Після `updateRecords(recordCollection, 2548, "tracks", "")` не потрібно налаштовувати `tracks` ```js updateRecords(_recordCollection, 2548, 'tracks', ''); assert(!_recordCollection[2548].hasOwnProperty('tracks')); ``` -Після `updateRecords(recordCollection, 1245, "albumTitle", "Riptide")`, `albumTitle` повинно стати рядком `Riptide` +Після `updateRecords(recordCollection, 1245, "albumTitle", "Riptide")`, `albumTitle` повинен стати рядком `Riptide` ```js assert( diff --git a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/replace-loops-using-recursion.md b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/replace-loops-using-recursion.md index 66100684f2d..96f76ff65a5 100644 --- a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/replace-loops-using-recursion.md +++ b/curriculum/challenges/ukrainian/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`: +Рекурсія – це концепція того, що функція може бути виражена сама собою. Щоб краще зрозуміти, подумайте над наступним завданням: перемножте перші `n` елементи масиву, щоб отримати їх добуток. Ви могли б це зробити, використовуючи цикл `for`: ```js function multiply(arr, n) { @@ -22,7 +22,7 @@ dashedName: replace-loops-using-recursion } ``` -Проте, зверніть увагу, що `multiply(arr, n) == multiply(arr, n - 1) * arr[n - 1]`. Це означає, що ви можете перезаписати `multiply` саме по собі і ніколи не використовувати цикл. +Проте, зверніть увагу, що `multiply(arr, n) == multiply(arr, n - 1) * arr[n - 1]`. Це означає, що ви можете переписати `multiply` у самій функції і ніколи не використовувати цикл. ```js function multiply(arr, n) { @@ -34,13 +34,13 @@ dashedName: replace-loops-using-recursion } ``` -Рекурсивна версія `multiply` переривається таким чином. У base case, де `n <= 0`, повертає до 1. Для більших значень `n`, він викликає сам себе, але з `n - 1`. Цей виклик функції обчислюється так само, викликаючи `multiply` знову до `n <= 0`. На даному етапі, всі функції можуть повертати результат і початковий `multiply` повертає відповідь. +Рекурсивна версія `multiply` розбивається таким чином. У базовому випадку, де `n <= 0`, повертається 1. Функція викликає сама себе, якщо значення `n` більше, але `n - 1`. Цей виклик функції обчислюється так само, викликаючи `multiply` знову, доки `n <= 0`. На даному етапі всі функції можуть повертатися, а вихідна функція `multiply` повертає відповідь. -**Примітка:** Рекурсивні функції повинні мати базовий регістр, коли вони повертають результат, не викликаючи функцію знову (в цьому прикладі, коли `n <= 0`), інакше вони ніколи не зможуть закінчити виконання. +**Примітка:** рекурсивні функції повинні мати базовий випадок, коли вони повертаються без повторного виклику функції (у цьому прикладі, коли `n <= 0`), інакше вони ніколи не завершаться. # --instructions-- -Напишіть рекурсивну функцію, `sum(arr, n)`, що повертає суму перших `n` елементів масиву `arr`. +Напишіть рекурсивну функцію `sum(arr, n)`, яка повертає суму перших `n` елементів масиву `arr`. # --hints-- @@ -62,7 +62,7 @@ assert.equal(sum([2, 3, 4], 1), 2); assert.equal(sum([2, 3, 4, 5], 3), 9); ``` -Ваш код не має опиратися на жодні цикли (`for`, `while` або функції більш високої послідовності, такі як `forEach`, `map`, `filter` або `reduce`.). +Ваш код не повинен опиратися на жодні цикли (`for`, `while` або функції вищого порядку, як-от `forEach`, `map`, `filter` або `reduce`.). ```js assert( @@ -70,7 +70,7 @@ assert( ); ``` -Вам слід використати рекурсію, щоб вирішити цю проблему. +Ви повинні використати рекурсію, щоб розв’язати це завдання. ```js assert( diff --git a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/replacing-if-else-chains-with-switch.md b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/replacing-if-else-chains-with-switch.md index ae35d169df1..352f9038cf9 100644 --- a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/replacing-if-else-chains-with-switch.md +++ b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/replacing-if-else-chains-with-switch.md @@ -1,6 +1,6 @@ --- id: 56533eb9ac21ba0edf2244e0 -title: Заміна "if else" ланцюжка ключем +title: Заміна ланцюжків «if else» на switch challengeType: 1 videoUrl: 'https://scrimba.com/c/c3JE8fy' forumTopicId: 18266 @@ -9,7 +9,7 @@ dashedName: replacing-if-else-chains-with-switch # --description-- -Якщо ви маєте багато опцій, з яких можете вибирати, то твердження `switch` може бути легшим для написання, ніж багатоланцюгові `if`/`else if` твердження. Наступне: +Якщо ви маєте багато варіантів для вибору, простіше використати інструкцію `switch` замість багатьох ланцюжків `if`/`else if`. Наступне: ```js if (val === 1) { @@ -21,7 +21,7 @@ if (val === 1) { } ``` -можна замінити цим: +можна замінити на: ```js switch (val) { @@ -38,23 +38,23 @@ switch (val) { # --instructions-- -Змініть ланцюжкові `if`/`else if` твердження на `switch` твердження. +Змініть ланцюжки інструкцій `if`/`else if` на інструкцію `switch`. # --hints-- -Вам не слід використовувати будь-які `else` твердження будь-де в редакторі +Ви не повинні використовувати інструкцію `else` в редакторі ```js assert(!/else/g.test(code)); ``` -Вам не слід використовувати будь-які `if` твердження будь-де в редакторі +Ви не повинні використовувати інструкцію `if` в редакторі ```js assert(!/if/g.test(code)); ``` -Ви повинні мати хоча б чотири `break` твердження +Ви повинні мати принаймні чотири інструкції `break` ```js assert(code.match(/break/g).length >= 4); diff --git a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/return-a-value-from-a-function-with-return.md b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/return-a-value-from-a-function-with-return.md index 5cecb0778ae..505673d3de1 100644 --- a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/return-a-value-from-a-function-with-return.md +++ b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/basic-javascript/return-a-value-from-a-function-with-return.md @@ -1,6 +1,6 @@ --- id: 56533eb9ac21ba0edf2244c2 -title: Повернути значення за допомогою функції повернення +title: Повернення значення функції за допомогою return challengeType: 1 videoUrl: 'https://scrimba.com/c/cy87wue' forumTopicId: 18271 @@ -9,9 +9,9 @@ dashedName: return-a-value-from-a-function-with-return # --description-- -Ми можемо передати значення у функцію за допомогою аргументів. Ви можете використати команду `return`, щоб надіслати значення назад за межі фунції. +Ми можемо передати значення до функції за допомогою аргументів. Ви можете використати інструкцію `return`, щоб надіслати значення з фунції. -**Наприклад** +**Приклад** ```js function plusThree(num) { @@ -31,25 +31,25 @@ const answer = plusThree(5); # --hints-- -`timesFive` має бути функцією +`timesFive` повинна бути функцією ```js assert(typeof timesFive === 'function'); ``` -`timesFive(5)` має повернутися до `25` +`timesFive(5)` повинна повертати `25` ```js assert(timesFive(5) === 25); ``` -`timesFive(2)` має повернутися до `10` +`timesFive(2)` повинна повертати `10` ```js assert(timesFive(2) === 10); ``` -`timesFive(0)` має повернутися до `0` +`timesFive(0)` повинна повертати `0` ```js assert(timesFive(0) === 0); diff --git a/curriculum/challenges/ukrainian/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md b/curriculum/challenges/ukrainian/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md index 27a50dfe2e7..057d572668c 100644 --- a/curriculum/challenges/ukrainian/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md +++ b/curriculum/challenges/ukrainian/08-data-analysis-with-python/data-analysis-with-python-projects/sea-level-predictor.md @@ -28,7 +28,7 @@ dashedName: sea-level-predictor Використайте дані для виконання наступних завдань: - Використайте Pandas для імпорту даних з `epa-sea-level.csv`. -- Використайте matplotlib, щоб створити діаграму розсіювання, використовуючи стовпчик `Year` як вісь x та стовпчик `CSIRO Adjusted Sea Level` як вісь y. +- Use matplotlib to create a scatter plot using the `Year` column as the x-axis and the `CSIRO Adjusted Sea Level` column as the y-axis. - Використайте функцію `linregress` із `scipy.stats`, щоб отримати нахил та Y-перехоплення лінії, яка найкраще підходить. Нанесіть лінію, яка найкраще підходить, поверх діаграми розсіювання. Проведіть лінію через 2050 рік, щоб передбачити підвищення рівня моря в 2050 році. - Побудуйте нову лінію, яка найкраще підходить, просто використовуючи дані з 2000 року до найновішого року в наборі даних. Зробіть так, щоб лінія також проходила через 2050 рік, щоб передбачити підвищення рівня моря в 2050 році, якщо темпи підвищення триватимуть, як це було з 2000 року. - Міткою x повинна бути `Year`, міткою y повинна бути `Sea Level (inches)`, а назва повинна бути `Rise in Sea Level`. diff --git a/curriculum/challenges/ukrainian/10-coding-interview-prep/algorithms/implement-binary-search.md b/curriculum/challenges/ukrainian/10-coding-interview-prep/algorithms/implement-binary-search.md index 66080225901..d54e939ca81 100644 --- a/curriculum/challenges/ukrainian/10-coding-interview-prep/algorithms/implement-binary-search.md +++ b/curriculum/challenges/ukrainian/10-coding-interview-prep/algorithms/implement-binary-search.md @@ -10,9 +10,10 @@ dashedName: implement-binary-search Binary search is an **O(log(n))** efficiency algorithm for searching a sorted array to find an element. It operates using the following steps: -1. Find the middle `value` of a sorted array. If `value == target` return (found it!). +1. Find the middle `value` of a sorted array. If `value == target` return `true` (The value has been found and the search is complete). 1. If middle `value < target`, search right half of array in next compare. 1. If middle `value > target`, search left half of array in next compare. +1. If after searching the whole array the value is not present, return `false` (The array has been searched and the value is not in the array). As you can see, you are successively halving an array, which gives you the log(n) efficiency. For this challenge, we want you to show your work - how you got to the target value... the path you took! @@ -20,7 +21,7 @@ As you can see, you are successively halving an array, which gives you the log(n Write a function `binarySearch` that implements the binary search algorithm on an array, returning the path you took (each middle value comparison) to find the target in an array. -The function takes a sorted array of integers and a target value as input. It returns an array containing (in-order) the middle value you found at each halving of the original array until you found the target value. The target value should be the last element of the returned array. If value not is found, return the string `Value Not Found`. +The function takes a sorted array of integers and a target value as input. It returns an array containing (in-order) the middle value you found at each halving of the original array until you found the target value. The target value should be the last element of the returned array. If the value is not found, return the string `Value Not Found`. For example, `binarySearch([1,2,3,4,5,6,7], 5)` would return `[4,6,5]`. diff --git a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md index afb04c47b44..390a8a4087e 100644 --- a/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md +++ b/curriculum/challenges/ukrainian/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f7ecb09de9a938ef94756.md @@ -7,7 +7,7 @@ dashedName: step-55 # --description-- -Додайте ще один елемент `p` з текстом `Total Carbohydrate 37g 13%`. Як і раніше, використайте елементи `span`, щоб зробити шрифт текстів `Total Carbohydrate` та `13%` жирним. Також додайте додатковий елемент `span`, щоб обгорнути текст `Total Carbohydrate 37g` в елемент span, щоб вирівняти його за лівим краєм, а `13%` – за правим. +Додайте ще один елемент `p` з текстом `Total Carbohydrate 37g 13%`. Like before, use `span` elements to make the text `Total Carbohydrate` and `13%` bold. Також додайте додатковий елемент `span`, щоб обгорнути текст `Total Carbohydrate 37g` в елемент span, щоб вирівняти його за лівим краєм, а `13%` – за правим. # --hints-- 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 4ddb2bd4064..100f17affdf 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 @@ -7,7 +7,7 @@ dashedName: step-62 # --description-- -Масив `locations` містить дві локації: площа (town square) та магазин (store). Наразі ви передаєте цілий масив до оновлених функцій. Передайте лише перший елемент масиву `locations`, додавши `[0]` в кінці змінної. Наприклад: `myFunction(arg[0]);`. +The `locations` array contains two locations: the `town square` and the `store`. Currently you are passing that entire array into the `update` function. Передайте лише перший елемент масиву `locations`, додавши `[0]` в кінці змінної. Наприклад: `myFunction(arg[0]);`. Це називається дужковою нотацією. Значення в масиві доступні за індексом. Індекси є числовими значеннями та починаються з 0 – це називається індексуванням від нуля. Першим елементом у масиві `arg` був би `arg[0]`.