diff --git a/curriculum/challenges/chinese-traditional/01-responsive-web-design/applied-visual-design/use-the-u-tag-to-underline-text.md b/curriculum/challenges/chinese-traditional/01-responsive-web-design/applied-visual-design/use-the-u-tag-to-underline-text.md index fe935b6852..c2b9f69460 100644 --- a/curriculum/challenges/chinese-traditional/01-responsive-web-design/applied-visual-design/use-the-u-tag-to-underline-text.md +++ b/curriculum/challenges/chinese-traditional/01-responsive-web-design/applied-visual-design/use-the-u-tag-to-underline-text.md @@ -13,7 +13,7 @@ dashedName: use-the-u-tag-to-underline-text # --instructions-- -`u` 標籤包裹的文本內容應爲 `Ph.D. students`。 +給文本 `Ph.D. students` 添加 `u` 標籤。 **注意:** 如果使用 `u` 標籤添加下劃線,可能混淆文本和鏈接,則應避免使用它。 錨標籤也有默認的下劃線格式。 @@ -25,7 +25,7 @@ dashedName: use-the-u-tag-to-underline-text assert($('u').length === 1); ``` -`u` 標籤的文本內容應爲 `Ph.D. students`。 +`u` 標籤的內容文本應爲 `Ph.D. students`。 ```js assert($('u').text() === 'Ph.D. students'); diff --git a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-the-plus-equals-operator.md b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-the-plus-equals-operator.md index 6435e028a8..6dbbe18f7a 100644 --- a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-the-plus-equals-operator.md +++ b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-the-plus-equals-operator.md @@ -20,7 +20,7 @@ var ourStr = "I come first. "; ourStr += "I come second."; ``` -`ourStr` 現在內容爲字符串 `I come first. I come second.` +`ourStr` 的值爲字符串 `I come first. I come second.` # --instructions-- @@ -28,7 +28,7 @@ ourStr += "I come second."; # --hints-- -`myStr` 的值應該是 `This is the first sentence. This is the second sentence.` +`myStr` 的值應該是字符串 `This is the first sentence. This is the second sentence.` ```js assert(myStr === 'This is the first sentence. This is the second sentence.'); diff --git a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/basic-javascript/use-the-conditional-ternary-operator.md b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/basic-javascript/use-the-conditional-ternary-operator.md index f21c47bfed..cfbc2d661f 100644 --- a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/basic-javascript/use-the-conditional-ternary-operator.md +++ b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/basic-javascript/use-the-conditional-ternary-operator.md @@ -10,7 +10,7 @@ dashedName: use-the-conditional-ternary-operator 條件運算符( conditional operator,)(也稱爲三元運算符( ternary operator))的就像寫成一行的 if-else 表達式 -語法是 `a ? b: c`,其中 `a` 是條件,`b` 是條件返回 `true` 時要運行的代碼,`c` 是條件返回 `false` 時要運行的代碼。 +語法是:`a ? b : c`, where `a` 是條件,當條件返回 `true` 的時候運行代碼 `b`,當條件返回 `false` 的時候運行代碼 `c`。 以下函數使用 `if/else` 語句來檢查條件: diff --git a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/es6/set-default-parameters-for-your-functions.md b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/es6/set-default-parameters-for-your-functions.md index e02bc73736..52502e247c 100644 --- a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/es6/set-default-parameters-for-your-functions.md +++ b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/es6/set-default-parameters-for-your-functions.md @@ -25,7 +25,7 @@ console.log(greeting()); # --instructions-- -給函數 `increment` 加上默認參數,使得在 `value` 沒有被賦值的時候,默認給 `number` 加上 1。 +給函數 `increment` 傳入默認參數,使得在 `value` 沒有被賦值的時候,默認給 `number` 加上 1。 # --hints-- diff --git a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md index 0ad1d55612..0c36d08a20 100644 --- a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md +++ b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md @@ -37,7 +37,7 @@ console.log(names); # --instructions-- -`watchList` 數組保存了包含一些電影信息的對象。 使用 `map` 從 `watchList` 中提取標題(`title`)和評分(`rating`),並將新數組保存在 `ratings` 變量裏。 目前編輯器中的代碼是使用 `for` 循環實現,使用 `map` 表達式替換循環功能。 +`watchList` 數組保存了包含一些電影信息的對象。 在 `watchList` 上使用 `map`,將一個新的對象數組賦值給 `ratings` 變量。 新數組中的每個電影都只能有一個值爲電影名稱的 `title` 鍵,和一個值爲 IMDB 評級的 `rating` 鍵。 目前編輯器中的代碼是使用 `for` 循環實現,你應該使用 `map` 表達式替換循環功能。 # --hints-- diff --git a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/palindrome-checker.md b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/palindrome-checker.md index fc5a19b8e7..75fbd433a3 100644 --- a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/palindrome-checker.md +++ b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/palindrome-checker.md @@ -50,7 +50,7 @@ assert(palindrome('race car') === true); assert(palindrome('not a palindrome') === false); ``` -`palindrome("A man, a plan, a canal. Panama")` 應返回 `true`。 +`palindrome("A man, a plan, a canal. Panama")` 應該返回 `true`。 ```js assert(palindrome('A man, a plan, a canal. Panama') === true); diff --git a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-zero-or-more-times.md b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-zero-or-more-times.md index 55842b0cb5..cfeeccf21a 100644 --- a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-zero-or-more-times.md +++ b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-zero-or-more-times.md @@ -54,7 +54,7 @@ assert(result[0] === 'Aaaaaaaaaaaaaaaa'); assert(result[0].length === 16); ``` -你的正則表達式不應該有任何匹配,在字符 `He made a fair move. Screaming about it can't help you.` +你的正則表達式不應該匹配字符串 `He made a fair move. Screaming about it can't help you.` 中的任何字符。 ```js assert( @@ -62,7 +62,7 @@ assert( ); ``` -你的正則表達式不應該有任何匹配,在字符 `Let him have it. It's not wise to upset a Wookiee.` +你的正則表達式不應該匹配字符串 `Let him have it. It's not wise to upset a Wookiee.` 中的任何字符。 ```js assert( diff --git a/curriculum/challenges/chinese-traditional/03-front-end-libraries/react/render-conditionally-from-props.md b/curriculum/challenges/chinese-traditional/03-front-end-libraries/react/render-conditionally-from-props.md index 2afa16d83a..5ae10a6372 100644 --- a/curriculum/challenges/chinese-traditional/03-front-end-libraries/react/render-conditionally-from-props.md +++ b/curriculum/challenges/chinese-traditional/03-front-end-libraries/react/render-conditionally-from-props.md @@ -8,7 +8,7 @@ dashedName: render-conditionally-from-props # --description-- -到目前爲止,已經看到了如何使用 `if/else`、`&&`和三元運算符(`condition ? expressionIfTrue : expressionIfFalse`)對渲染什麼和何時渲染做出有條件的判定。 然而,還有一個重要的話題需要討論,將這些概念中的任何一個或所有概念與另一個強大的 React 功能結合起來:props。 使用 props 有條件地渲染代碼在 React 開發人員中很常見 -- 也就是說:他們使用給定 prop 的值來自動決定渲染什麼。 +到目前爲止,你已經看到如何使用 `if/else`、`&&` 以及三元運算符(`condition ? expressionIfTrue : expressionIfFalse`)在不同條件下運行不同的代碼。 然而,還有一個重要的話題需要討論,將這些概念中的任何一個或所有概念與另一個強大的 React 功能 props 結合起來。 使用 props 有條件地渲染代碼在 React 開發人員中很常見——也就是說:他們使用給定 prop 的值來自動決定渲染什麼。 在這個挑戰中,將設置一個子組件來根據 props 做出渲染決定。 可以使用三元運算符,但是可以看到過去幾個挑戰中涵蓋的其他幾個概念在這種情況下可能同樣有用。 diff --git a/curriculum/challenges/chinese/01-responsive-web-design/applied-visual-design/use-the-u-tag-to-underline-text.md b/curriculum/challenges/chinese/01-responsive-web-design/applied-visual-design/use-the-u-tag-to-underline-text.md index 35e8401994..3e1360b387 100644 --- a/curriculum/challenges/chinese/01-responsive-web-design/applied-visual-design/use-the-u-tag-to-underline-text.md +++ b/curriculum/challenges/chinese/01-responsive-web-design/applied-visual-design/use-the-u-tag-to-underline-text.md @@ -13,7 +13,7 @@ dashedName: use-the-u-tag-to-underline-text # --instructions-- -`u` 标签包裹的文本内容应为 `Ph.D. students`。 +给文本 `Ph.D. students` 添加 `u` 标签。 **注意:** 如果使用 `u` 标签添加下划线,可能混淆文本和链接,则应避免使用它。 锚标签也有默认的下划线格式。 @@ -25,7 +25,7 @@ dashedName: use-the-u-tag-to-underline-text assert($('u').length === 1); ``` -`u` 标签的文本内容应为 `Ph.D. students`。 +`u` 标签的内容文本应为 `Ph.D. students`。 ```js assert($('u').text() === 'Ph.D. students'); diff --git a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-the-plus-equals-operator.md b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-the-plus-equals-operator.md index f570dcc435..bed5941a94 100644 --- a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-the-plus-equals-operator.md +++ b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-the-plus-equals-operator.md @@ -20,7 +20,7 @@ var ourStr = "I come first. "; ourStr += "I come second."; ``` -`ourStr` 现在内容为字符串 `I come first. I come second.` +`ourStr` 的值为字符串 `I come first. I come second.` # --instructions-- @@ -28,7 +28,7 @@ ourStr += "I come second."; # --hints-- -`myStr` 的值应该是 `This is the first sentence. This is the second sentence.` +`myStr` 的值应该是字符串 `This is the first sentence. This is the second sentence.` ```js assert(myStr === 'This is the first sentence. This is the second sentence.'); diff --git a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/basic-javascript/use-the-conditional-ternary-operator.md b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/basic-javascript/use-the-conditional-ternary-operator.md index eedbb0fc48..fe7bc08602 100644 --- a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/basic-javascript/use-the-conditional-ternary-operator.md +++ b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/basic-javascript/use-the-conditional-ternary-operator.md @@ -10,7 +10,7 @@ dashedName: use-the-conditional-ternary-operator 条件运算符( conditional operator,)(也称为三元运算符( ternary operator))的就像写成一行的 if-else 表达式 -语法是 `a ? b: c`,其中 `a` 是条件,`b` 是条件返回 `true` 时要运行的代码,`c` 是条件返回 `false` 时要运行的代码。 +语法是:`a ? b : c`, where `a` 是条件,当条件返回 `true` 的时候运行代码 `b`,当条件返回 `false` 的时候运行代码 `c`。 以下函数使用 `if/else` 语句来检查条件: diff --git a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/es6/set-default-parameters-for-your-functions.md b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/es6/set-default-parameters-for-your-functions.md index 753d97b180..078cfc8341 100644 --- a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/es6/set-default-parameters-for-your-functions.md +++ b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/es6/set-default-parameters-for-your-functions.md @@ -25,7 +25,7 @@ console.log(greeting()); # --instructions-- -给函数 `increment` 加上默认参数,使得在 `value` 没有被赋值的时候,默认给 `number` 加上 1。 +给函数 `increment` 传入默认参数,使得在 `value` 没有被赋值的时候,默认给 `number` 加上 1。 # --hints-- diff --git a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md index 2e512ac302..d4ae65a8ee 100644 --- a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md +++ b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md @@ -37,7 +37,7 @@ console.log(names); # --instructions-- -`watchList` 数组保存了包含一些电影信息的对象。 使用 `map` 从 `watchList` 中提取标题(`title`)和评分(`rating`),并将新数组保存在 `ratings` 变量里。 目前编辑器中的代码是使用 `for` 循环实现,使用 `map` 表达式替换循环功能。 +`watchList` 数组保存了包含一些电影信息的对象。 在 `watchList` 上使用 `map`,将一个新的对象数组赋值给 `ratings` 变量。 新数组中的每个电影都只能有一个值为电影名称的 `title` 键,和一个值为 IMDB 评级的 `rating` 键。 目前编辑器中的代码是使用 `for` 循环实现,你应该使用 `map` 表达式替换循环功能。 # --hints-- diff --git a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/palindrome-checker.md b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/palindrome-checker.md index bac2fbf13c..5443a90f4b 100644 --- a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/palindrome-checker.md +++ b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/palindrome-checker.md @@ -50,7 +50,7 @@ assert(palindrome('race car') === true); assert(palindrome('not a palindrome') === false); ``` -`palindrome("A man, a plan, a canal. Panama")` 应返回 `true`。 +`palindrome("A man, a plan, a canal. Panama")` 应该返回 `true`。 ```js assert(palindrome('A man, a plan, a canal. Panama') === true); diff --git a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-zero-or-more-times.md b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-zero-or-more-times.md index 08199ee77e..d89ca8de61 100644 --- a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-zero-or-more-times.md +++ b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-zero-or-more-times.md @@ -54,7 +54,7 @@ assert(result[0] === 'Aaaaaaaaaaaaaaaa'); assert(result[0].length === 16); ``` -你的正则表达式不应该有任何匹配,在字符 `He made a fair move. Screaming about it can't help you.` +你的正则表达式不应该匹配字符串 `He made a fair move. Screaming about it can't help you.` 中的任何字符。 ```js assert( @@ -62,7 +62,7 @@ assert( ); ``` -你的正则表达式不应该有任何匹配,在字符 `Let him have it. It's not wise to upset a Wookiee.` +你的正则表达式不应该匹配字符串 `Let him have it. It's not wise to upset a Wookiee.` 中的任何字符。 ```js assert( diff --git a/curriculum/challenges/chinese/03-front-end-libraries/react/render-conditionally-from-props.md b/curriculum/challenges/chinese/03-front-end-libraries/react/render-conditionally-from-props.md index 28cc87511d..bcd87fcf88 100644 --- a/curriculum/challenges/chinese/03-front-end-libraries/react/render-conditionally-from-props.md +++ b/curriculum/challenges/chinese/03-front-end-libraries/react/render-conditionally-from-props.md @@ -8,7 +8,7 @@ dashedName: render-conditionally-from-props # --description-- -到目前为止,已经看到了如何使用 `if/else`、`&&`和三元运算符(`condition ? expressionIfTrue : expressionIfFalse`)对渲染什么和何时渲染做出有条件的判定。 然而,还有一个重要的话题需要讨论,将这些概念中的任何一个或所有概念与另一个强大的 React 功能结合起来:props。 使用 props 有条件地渲染代码在 React 开发人员中很常见 -- 也就是说:他们使用给定 prop 的值来自动决定渲染什么。 +到目前为止,你已经看到如何使用 `if/else`、`&&` 以及三元运算符(`condition ? expressionIfTrue : expressionIfFalse`)在不同条件下运行不同的代码。 然而,还有一个重要的话题需要讨论,将这些概念中的任何一个或所有概念与另一个强大的 React 功能 props 结合起来。 使用 props 有条件地渲染代码在 React 开发人员中很常见——也就是说:他们使用给定 prop 的值来自动决定渲染什么。 在这个挑战中,将设置一个子组件来根据 props 做出渲染决定。 可以使用三元运算符,但是可以看到过去几个挑战中涵盖的其他几个概念在这种情况下可能同样有用。 diff --git a/curriculum/challenges/espanol/01-responsive-web-design/applied-visual-design/use-the-u-tag-to-underline-text.md b/curriculum/challenges/espanol/01-responsive-web-design/applied-visual-design/use-the-u-tag-to-underline-text.md index 744030e235..18817c8008 100644 --- a/curriculum/challenges/espanol/01-responsive-web-design/applied-visual-design/use-the-u-tag-to-underline-text.md +++ b/curriculum/challenges/espanol/01-responsive-web-design/applied-visual-design/use-the-u-tag-to-underline-text.md @@ -13,7 +13,7 @@ Para subrayar texto, puedes usar la etiqueta `u`. Esto se utiliza a menudo para # --instructions-- -Envuelve la etiqueta `u` solo alrededor del texto `Ph.D. students `. +Envuelve la etiqueta `u` solo alrededor del texto `Ph.D. students`. **Nota:** Trata de evitar el uso de la etiqueta `u`, puesto que podría confundirse con un enlace. Las etiquetas de enlaces tienen un formato subrayado por defecto. @@ -25,7 +25,7 @@ Tu código debe agregar una etiqueta `u` al lenguaje de marcado. assert($('u').length === 1); ``` -Envuelve la etiqueta `u` solo alrededor del texto `Ph.D. students` . +La etiqueta `u` debe envolver alrededor del texto `Ph.D. students`. ```js assert($('u').text() === 'Ph.D. students'); diff --git a/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md b/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md index 1b0c9a5508..d587f42847 100644 --- a/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md +++ b/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md @@ -37,7 +37,7 @@ La consola mostraría el valor `[ 'John', 'Amy', 'camperCat' ]`. # --instructions-- -El arreglo `watchList` contiene objetos con información sobre varias películas. Usa `map` en `watchList` para asignar un nuevo arreglo de objetos con solo `title` y `rating` claves a la variable `ratings`. El código en el editor utiliza actualmente un bucle `for` para hacer esto, por lo que debería reemplazar la funcionalidad del bucle con su expresión `map`. +El arreglo `watchList` contiene objetos con información sobre varias películas. Usa `map` en `watchList` para asignar un nuevo arreglo de objetos a la variable `ratings`. Cada película en el nuevo arreglo debe tener solo una tecla `title` con el nombre de la película, y una tecla `rating` con la calificación IMDB. El código en el editor utiliza actualmente un bucle `for` para hacer esto, por lo que debes reemplazar la funcionalidad del bucle con tu expresión `map`. # --hints-- diff --git a/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-zero-or-more-times.md b/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-zero-or-more-times.md index 5a2a7dc7c7..b80d07aac2 100644 --- a/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-zero-or-more-times.md +++ b/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-zero-or-more-times.md @@ -54,7 +54,7 @@ Tu expresión regular `chewieRegex` debe coincidir con 16 caracteres en `chewieQ assert(result[0].length === 16); ``` -Tu expresión regular no debe coincidir con ningún carácter con la cadena `He made a fair move. Screaming about it can't help you.` +Tu regex no debe coincidir con ningún carácter en la cadena `He made a fair move. Screaming about it can't help you.` ```js assert( @@ -62,7 +62,7 @@ assert( ); ``` -Tu expresión regular no debe coincidir con ningún carácter con la cadena `Let him have it. It's not wise to upset a Wookiee.` +Tu regex no debe coincidir con ningún carácter en la cadena `Let him have it. It's not wise to upset a Wookiee.` ```js assert( diff --git a/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md b/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md index 77c0cb7e9d..4560004153 100644 --- a/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md +++ b/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.md @@ -37,7 +37,7 @@ La console visualizzerà il valore `[ 'John', 'Amy', 'camperCat' ]`. # --instructions-- -L'array `watchList` contiene oggetti con informazioni su diversi film. Usa `map` su `watchList` per assegnare un nuovo array di oggetti con le sole chiavi `title` e `rating` alla variabile `ratings`. Il codice nell'editor al momento utilizza un ciclo `for` per farlo, quindi dovresti sostituire il ciclo con la tua espressione `map`. +L'array `watchList` contiene oggetti con informazioni su diversi film. Usa `map` su `watchList` per assegnare un nuovo array di oggetti alla variabile `ratings`. Ogni film nel nuovo array dovrebbe avere una key `title` con il nome del fil, e una key `rating` con il voto da IMDB. Il codice nell'editor al momento utilizza un ciclo `for` per farlo, quindi dovresti sostituire il ciclo con la tua espressione `map`. # --hints-- diff --git a/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/search-and-replace.md b/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/search-and-replace.md index d9ef5fceff..35c3330861 100644 --- a/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/search-and-replace.md +++ b/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/search-and-replace.md @@ -47,7 +47,7 @@ assert.deepEqual( ); ``` -`myReplace("This has a spellngi error", "spellngi", "spelling")` should return the string `This has a spelling error`. +`myReplace("This has a spellngi error", "spellngi", "spelling")` dovrebbe restituire `This has a spelling error`. ```js assert.deepEqual( diff --git a/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-zero-or-more-times.md b/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-zero-or-more-times.md index 6d7ed9e20a..bd55a9c407 100644 --- a/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-zero-or-more-times.md +++ b/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-zero-or-more-times.md @@ -54,7 +54,7 @@ La tua espressione regolare `chewieRegex` dovrebbe riconoscere 16 caratteri in ` assert(result[0].length === 16); ``` -La tua espressione regolare non dovrebbe riconoscere nessun carattere nella stringa `He made a fair move. Screaming about it can't help you.` +Il tuo regex non dovrebbe trovare nessun carattere nella stringa `He made a fair move. Screaming about it can't help you.` ```js assert( @@ -62,7 +62,7 @@ assert( ); ``` -La tua espressione regolare non dovrebbe riconoscere nessun carattere nella stringa `Let him have it. It's not wise to upset a Wookiee.` +Il tuo regex non dovrebbe corrispondere a nessun carattere nella stringa `Let him have it. It's not wise to upset a Wookiee.` ```js assert( diff --git a/curriculum/challenges/italian/03-front-end-libraries/react/render-conditionally-from-props.md b/curriculum/challenges/italian/03-front-end-libraries/react/render-conditionally-from-props.md index 2d30baa034..da6aaa7193 100644 --- a/curriculum/challenges/italian/03-front-end-libraries/react/render-conditionally-from-props.md +++ b/curriculum/challenges/italian/03-front-end-libraries/react/render-conditionally-from-props.md @@ -8,7 +8,7 @@ dashedName: render-conditionally-from-props # --description-- -Finora, hai visto come usare `if/else`, `&&`, e l'operatore ternario (`condition ? expressionIfTrue : expressionIfFalse`) per prendere decisioni condizionali su cosa presentare e quando. Tuttavia, c'è ancora un argomento importante da discutere che consente di combinare uno o tutti questi concetti con un'altra potente funzionalità di React: le props. Usare le proprietà (props) per presentare il codice condizionalmente è molto comune tra gli sviluppatori di React — cioè essi usano il valore di una determinata proprietà per prendere automaticamente delle decisioni su cosa presentare. +Fino ad ora hai visto come usare `if/else`, `&&`, e l'operatore ternario (`condition ? expressionIfTrue : expressionIfFalse`) per fare decisioni condizionali su cosa e quando presentare. Tuttavia, c'è ancora un argomento importante da discutere che consente di combinare uno o tutti questi concetti con un'altra potente funzionalità di React: le props. Usare le proprietà (props) per presentare il codice condizionalmente è molto comune tra gli sviluppatori di React — cioè essi usano il valore di una determinata proprietà per prendere automaticamente delle decisioni su cosa presentare. In questa sfida, configurerai un componente figlio per prendere decisioni di rendering basate sulle props. Utilizzerai anche l'operatore ternario, ma puoi vedere come molti degli altri concetti che sono stati trattati nelle ultime sfide potrebbero essere altrettanto utili in questo contesto. diff --git a/curriculum/challenges/italian/03-front-end-libraries/react/use--for-a-more-concise-conditional.md b/curriculum/challenges/italian/03-front-end-libraries/react/use--for-a-more-concise-conditional.md index 9f939453d3..03123b23b7 100644 --- a/curriculum/challenges/italian/03-front-end-libraries/react/use--for-a-more-concise-conditional.md +++ b/curriculum/challenges/italian/03-front-end-libraries/react/use--for-a-more-concise-conditional.md @@ -1,6 +1,6 @@ --- id: 5a24c314108439a4d4036185 -title: Use && for a More Concise Conditional +title: Usare && per un condizionale più conciso challengeType: 6 forumTopicId: 301413 dashedName: use--for-a-more-concise-conditional diff --git a/curriculum/challenges/italian/04-data-visualization/data-visualization-with-d3/add-a-hover-effect-to-a-d3-element.md b/curriculum/challenges/italian/04-data-visualization/data-visualization-with-d3/add-a-hover-effect-to-a-d3-element.md index beb4f34992..e9d4cf8cc1 100644 --- a/curriculum/challenges/italian/04-data-visualization/data-visualization-with-d3/add-a-hover-effect-to-a-d3-element.md +++ b/curriculum/challenges/italian/04-data-visualization/data-visualization-with-d3/add-a-hover-effect-to-a-d3-element.md @@ -1,6 +1,6 @@ --- id: 587d7faa367417b2b2512bd4 -title: Add a Hover Effect to a D3 Element +title: Aggiungere un effetto hover a un elemento D3 challengeType: 6 forumTopicId: 301469 dashedName: add-a-hover-effect-to-a-d3-element @@ -8,17 +8,17 @@ dashedName: add-a-hover-effect-to-a-d3-element # --description-- -It's possible to add effects that highlight a bar when the user hovers over it with the mouse. So far, the styling for the rectangles is applied with the built-in D3 and SVG methods, but you can use CSS as well. +È possibile aggiungere effetti che evidenziano una barra quando l'utente le passa sopra con il mouse. Finora, lo stile per i rettangoli viene applicato con i metodi D3 e SVG integrati, ma è possibile utilizzare anche CSS. -You set the CSS class on the SVG elements with the `attr()` method. Then the `:hover` pseudo-class for your new class holds the style rules for any hover effects. +Hai impostato la classe CSS sugli elementi SVG con il metodo `attr()`. Quindi la pseudo-classe `:hover` per la tua nuova classe contiene le regole di stile per qualsiasi effetto hover. # --instructions-- -Use the `attr()` method to add a class of `bar` to all the `rect` elements. This changes the `fill` color of the bar to brown when you mouse over it. +Usa il metodo `attr()` per aggiungere una classe `bar` a tutti gli elementi `rect`. Questo cambia il colore di riempimento (`fill`) della barra in marrone quando le si passa sopra con il mouse. # --hints-- -Your `rect` elements should have a class of `bar`. +I tuoi elementi `rect` dovrebbero essere di classe `bar`. ```js assert($('rect').attr('class').trim().split(/\s+/g).includes('bar')); diff --git a/curriculum/challenges/italian/04-data-visualization/json-apis-and-ajax/access-the-json-data-from-an-api.md b/curriculum/challenges/italian/04-data-visualization/json-apis-and-ajax/access-the-json-data-from-an-api.md index 50b0ee7a2f..69d8f89b9a 100644 --- a/curriculum/challenges/italian/04-data-visualization/json-apis-and-ajax/access-the-json-data-from-an-api.md +++ b/curriculum/challenges/italian/04-data-visualization/json-apis-and-ajax/access-the-json-data-from-an-api.md @@ -1,6 +1,6 @@ --- id: 587d7fae367417b2b2512be4 -title: Access the JSON Data from an API +title: Accedere ai dati JSON da un'API challengeType: 6 forumTopicId: 301499 dashedName: access-the-json-data-from-an-api @@ -8,37 +8,37 @@ dashedName: access-the-json-data-from-an-api # --description-- -In the previous challenge, you saw how to get JSON data from the freeCodeCamp Cat Photo API. +Nella sfida precedente, hai visto come ottenere i dati JSON dall'API Cat Photo di freeCodeCamp. -Now you'll take a closer look at the returned data to better understand the JSON format. Recall some notation in JavaScript: +Ora daremo un'occhiata più da vicino ai dati restituiti per comprendere meglio il formato JSON. Ricorda alcune notazioni in JavaScript: -
[ ] -> Square brackets represent an array
{ } -> Curly brackets represent an object
" " -> Double quotes represent a string. They are also used for key names in JSON
+
[ ] -> Le parentesi quadre rappresentano un array
{ } -> Le parentesi graffe rappresentano un oggetto
" " -> Le virgolette doppie rappresentano una stringa. Vengono utilizzati anche per i nomi delle chiavi in JSON
-Understanding the structure of the data that an API returns is important because it influences how you retrieve the values you need. +Capire la struttura dei dati che un'API restituisce è importante perché influisce su come recuperare i valori di cui hai bisogno. -On the right, click the `Get Message` button to load the freeCodeCamp Cat Photo API JSON into the HTML. +Sulla destra, fai click sul pulsante `Get Message` per caricare il JSON dell'API Cat Photo di freeCodeCamp nell'HTML. -The first and last character you see in the JSON data are square brackets `[ ]`. This means that the returned data is an array. The second character in the JSON data is a curly `{` bracket, which starts an object. Looking closely, you can see that there are three separate objects. The JSON data is an array of three objects, where each object contains information about a cat photo. +Il primo e l'ultimo carattere che vedi nei dati JSON sono parentesi quadre `[ ]`. Ciò significa che i dati restituiti sono un array. Il secondo carattere dei dati JSON è una parentesi graffa `{`, che dà inizio a un oggetto. Guardando da vicino, si può vedere che ci sono tre oggetti separati. I dati JSON sono una serie di tre oggetti, in cui ogni oggetto contiene informazioni su una foto di un gatto. -You learned earlier that objects contain "key-value pairs" that are separated by commas. In the Cat Photo example, the first object has `"id":0` where `id` is a key and `0` is its corresponding value. Similarly, there are keys for `imageLink`, `altText`, and `codeNames`. Each cat photo object has these same keys, but with different values. +Hai imparato in precedenza che gli oggetti contengono "coppie chiave-valore" separate da virgole. Nell'esempio della Cat Photo, il primo oggetto ha `"id":0` dove `id` è una chiave e `0` è il suo valore corrispondente. Allo stesso modo, ci sono chiavi per `imageLink`, `altText` e `codeNames`. Ogni oggetto relativo alla foto di un gatto ha queste stesse chiavi, ma con valori diversi. -Another interesting "key-value pair" in the first object is `"codeNames":["Juggernaut","Mrs. Wallace","ButterCup"]`. Here `codeNames` is the key and its value is an array of three strings. It's possible to have arrays of objects as well as a key with an array as a value. +Un'altra interessante "coppia chiave-valore" nel primo oggetto è `"codeNames":["Juggernaut","Mrs. Wallace","ButterCup"]`. Qui `codeNames` è la chiave e il suo valore è un array di tre stringhe. È possibile avere array di oggetti, così come una chiave con un array come valore. -Remember how to access data in arrays and objects. Arrays use bracket notation to access a specific index of an item. Objects use either bracket or dot notation to access the value of a given property. Here's an example that prints the `altText` property of the first cat photo - note that the parsed JSON data in the editor is saved in a variable called `json`: +Ricorda come accedere ai dati in array e oggetti. Gli array utilizzano la notazione tra parentesi per accedere a un indice specifico di un elemento. Gli oggetti utilizzano la notazione tra parentesi o con il punto per accedere al valore di una data proprietà. Ecco un esempio che stampa la proprietà `altText` della prima foto di gatto - nota che i dati JSON analizzati nell'editor sono salvati in una variabile chiamata `json`: ```js console.log(json[0].altText); ``` -The console would display the string `A white cat wearing a green helmet shaped melon on its head.`. +La console mostrerà la stringa `A white cat wearing a green helmet shaped melon on its head.`. # --instructions-- -For the cat with the `id` of 2, print to the console the second value in the `codeNames` array. You should use bracket and dot notation on the object (which is saved in the variable `json`) to access the value. +Per il gatto con l'`id` di 2, stampa sulla console il secondo valore nell'array `codeNames`. Per accedere al valore dovresti usare sull'oggetto la notazione tra parentesi e con il punto (che viene salvata nella variabile `json`). # --hints-- -Your code should use bracket and dot notation to access the proper code name, and print `Loki` to the console. +Il tuo codice dovrebbe utilizzare la notazione tra parentesi e con il punto per accedere al codeName corretto e stampare `Loki` sulla console. ```js assert( diff --git a/curriculum/challenges/italian/04-data-visualization/json-apis-and-ajax/change-text-with-click-events.md b/curriculum/challenges/italian/04-data-visualization/json-apis-and-ajax/change-text-with-click-events.md index 4550322262..c65d773e25 100644 --- a/curriculum/challenges/italian/04-data-visualization/json-apis-and-ajax/change-text-with-click-events.md +++ b/curriculum/challenges/italian/04-data-visualization/json-apis-and-ajax/change-text-with-click-events.md @@ -1,6 +1,6 @@ --- id: 587d7fad367417b2b2512be2 -title: Change Text with click Events +title: Cambiare il testo con un evento click challengeType: 6 forumTopicId: 301500 dashedName: change-text-with-click-events @@ -8,11 +8,11 @@ dashedName: change-text-with-click-events # --description-- -When the click event happens, you can use JavaScript to update an HTML element. +Quando l'evento click accade, puoi usare JavaScript per cambiare un elemento HTML. -For example, when a user clicks the `Get Message` button, it changes the text of the element with the class `message` to say `Here is the message`. +Per esempio, quando un utente clicca il pulsante `Get Message`, il testo dell'elemento con classe `message` cambia per dire `Here is the message`. -This works by adding the following code within the click event: +Perché questo accada bisogna aggiungere il seguente codice all'evento click: ```js document.getElementsByClassName('message')[0].textContent="Here is the message"; @@ -20,11 +20,11 @@ document.getElementsByClassName('message')[0].textContent="Here is the message"; # --instructions-- -Add code inside the `onclick` event handler to change the text inside the `message` element to say `Here is the message`. +Aggiungi codice dentro il gestore di eventi `onclick` per cambiare il testo dentro l'elemento `message` per dire `Here is the message`. # --hints-- -Your code should use the `document.getElementsByClassName` method to select the element with class `message` and set its `textContent` to the given string. +Il tuo codice dovrebbe usare il metodo `document.getElementsByClassName` per selezionare l'elemento con classe `message` e cambiare il suo `textContent` alla stringa data. ```js assert( diff --git a/curriculum/challenges/italian/04-data-visualization/json-apis-and-ajax/convert-json-data-to-html.md b/curriculum/challenges/italian/04-data-visualization/json-apis-and-ajax/convert-json-data-to-html.md index 8678469f29..8f99e9702c 100644 --- a/curriculum/challenges/italian/04-data-visualization/json-apis-and-ajax/convert-json-data-to-html.md +++ b/curriculum/challenges/italian/04-data-visualization/json-apis-and-ajax/convert-json-data-to-html.md @@ -1,6 +1,6 @@ --- id: 587d7fae367417b2b2512be5 -title: Convert JSON Data to HTML +title: Convertire dati JSON ad HTML challengeType: 6 forumTopicId: 16807 dashedName: convert-json-data-to-html @@ -8,15 +8,15 @@ dashedName: convert-json-data-to-html # --description-- -Now that you're getting data from a JSON API, you can display it in the HTML. +Ora che stai ricevendo dati da un'API JSON, puoi mostrarlo nell'HTML. -You can use a `forEach` method to loop through the data since the cat photo objects are held in an array. As you get to each item, you can modify the HTML elements. +Puoi usare un metodo `forEach` per iterare sui dati visto che gli oggetti di foto per gatti sono immagazzinati in un array. Iterando su ogni elemento, puoi modificare gli elementi HTML. -First, declare an html variable with `let html = "";`. +Come prima cosa, dichiara una variabile html con `let html = "";`. -Then, loop through the JSON, adding HTML to the variable that wraps the key names in `strong` tags, followed by the value. When the loop is finished, you render it. +Poi, itera sul JSON, aggiungendo HTML alla variabile con le chiavi degli oggetti racchiuse in tag `strong`, seguite dal valore. Quando il ciclo ha finito, lo presenti. -Here's the code that does this: +Ecco il codice che lo fa: ```js let html = ""; @@ -30,13 +30,13 @@ json.forEach(function(val) { }); ``` -**Note:** For this challenge, you need to add new HTML elements to the page, so you cannot rely on `textContent`. Instead, you need to use `innerHTML`, which can make a site vulnerable to cross-site scripting attacks. +**Nota:** per questa sfida devi aggiungere nuovi elementi HTML alla pagina quindi non puoi usare `textContent`. Invece, devi usare `innerHTML`, il quale può rendere i siti vulnerabili ad attacchi di cross-site scripting. # --instructions-- -Add a `forEach` method to loop over the JSON data and create the HTML elements to display it. +Aggiungi un metodo `forEach` per iterare sui dati JSON e creare gli elementi HTML per mostrarli. -Here is some example JSON: +Ecco alcuni esempi di JSON: ```json [ @@ -52,19 +52,19 @@ Here is some example JSON: # --hints-- -Your code should store the data in the `html` variable +Il tuo codice dovrebbe salvare i dati nella variabile `html` ```js assert(__helpers.removeWhiteSpace(code).match(/html(\+=|=html\+)/g)) ``` -Your code should use a `forEach` method to loop over the JSON data from the API. +Il tuo codice dovrebbe usare un metodo `forEach` per iterare sui dati JSON ricevuti dalla API. ```js assert(code.match(/json\.forEach/g)); ``` -Your code should wrap the key names in `strong` tags. +Il tuo codice dovrebbe racchiudere i nomi delle proprietà in tag `strong`. ```js assert(code.match(/.+<\/strong>/g)); diff --git a/curriculum/challenges/italian/04-data-visualization/json-apis-and-ajax/get-geolocation-data-to-find-a-users-gps-coordinates.md b/curriculum/challenges/italian/04-data-visualization/json-apis-and-ajax/get-geolocation-data-to-find-a-users-gps-coordinates.md index bed1c43e98..98709f803e 100644 --- a/curriculum/challenges/italian/04-data-visualization/json-apis-and-ajax/get-geolocation-data-to-find-a-users-gps-coordinates.md +++ b/curriculum/challenges/italian/04-data-visualization/json-apis-and-ajax/get-geolocation-data-to-find-a-users-gps-coordinates.md @@ -1,6 +1,6 @@ --- id: 587d7faf367417b2b2512be8 -title: Get Geolocation Data to Find A User's GPS Coordinates +title: Ottenere dati di geolocazione per trovare le coordinate GPS di un utente challengeType: 6 forumTopicId: 18188 dashedName: get-geolocation-data-to-find-a-users-gps-coordinates @@ -8,15 +8,15 @@ dashedName: get-geolocation-data-to-find-a-users-gps-coordinates # --description-- -Another cool thing you can do is access your user's current location. Every browser has a built in navigator that can give you this information. +Un'altra cosa speciale che puoi fare è accedere alla posizione attuale del tuo utente. Ogni browser ha integrato un navigatore che può dare questa informazione. -The navigator will get the user's current longitude and latitude. +Il navigatore ottiene la longitudine e latitudine attuali. -You will see a prompt to allow or block this site from knowing your current location. The challenge can be completed either way, as long as the code is correct. +Vedrai un prompt per permettere o negare l'accesso di un sito alla tua posizione. La sfida può essere completata con entrambe le opzioni, se il codice è corretto. -By selecting allow, you will see the text on the output phone change to your latitude and longitude. +Se lo permetti, vedrai il testo del telefono nell'output cambiare con la tua latitudine e longitudine. -Here's code that does this: +Ecco il codice che lo fa: ```js if (navigator.geolocation){ @@ -26,33 +26,33 @@ if (navigator.geolocation){ } ``` -First, it checks if the `navigator.geolocation` object exists. If it does, the `getCurrentPosition` method on that object is called, which initiates an asynchronous request for the user's position. If the request is successful, the callback function in the method runs. This function accesses the `position` object's values for latitude and longitude using dot notation and updates the HTML. +Come prima cosa, controlla che l'oggetto `navigator.geolocation` esista. Se esiste, il metodo `getCurrentPosition` è chiamato su quell'oggetto, iniziando la richiesta asincrona per la posizione dell'utente. Se la richiesta ha successo, la funzione callback nel metodo viene eseguita. La funzione ha accesso ai valori di latitudine e longitutine nell'oggetto `position` usando la notazione a punto, e aggiorna l'HTML. # --instructions-- -Add the example code inside the `script` tags to check a user's current location and insert it into the HTML. +Aggiungi il codice di esempio nel tag `script` per controllare la posizione attuale dell'utente e inserirla nell'HTML. # --hints-- -Your code should use `navigator.geolocation` to access the user's current location. +Il tuo codice dovrebbe usare `navigator.geolocation` per accedere alla posizione attuale dell'utente. ```js assert(code.match(/navigator\.geolocation\.getCurrentPosition/g)); ``` -Your code should use `position.coords.latitude` to display the user's latitudinal location. +Il tuo codice dovrebbe usare `position.coords.latitude` per mostrare la latitudine della posizione dell'utente. ```js assert(code.match(/position\.coords\.latitude/g)); ``` -Your code should use `position.coords.longitude` to display the user's longitudinal location. +Il tuo codice dovrebbe usare `position.coords.longitude` per mostrare la longitudine della posizione dell'utente. ```js assert(code.match(/position\.coords\.longitude/g)); ``` -You should display the user's position within the `div` element with `id="data"`. +Dovresti mostrare la posizione dell'utente all'interno dell'elemento `div` con `id="data"`. ```js assert(