diff --git a/guide/arabic/certifications/coding-interview-prep/algorithms/inventory-update/index.md b/guide/arabic/certifications/coding-interview-prep/algorithms/inventory-update/index.md
index 06d54e2a4c..8822a66efb 100644
--- a/guide/arabic/certifications/coding-interview-prep/algorithms/inventory-update/index.md
+++ b/guide/arabic/certifications/coding-interview-prep/algorithms/inventory-update/index.md
@@ -48,7 +48,7 @@ localeTitle: تحديث المخزون
// A helper method to return the index of a specified product (undefined if not found)
var getProductIndex = function (name) {
for (var i = 0; i < this.length; i++) {
- if (thisi][1] === name) {
+ if (this[i][1] === name) {
return i;
}
}
@@ -131,7 +131,7 @@ localeTitle: تحديث المخزون
// All inventory must be accounted for or you're fired!
var index;
- var arrCurInvName = ]; // Names of arr1's items
+ var arrCurInvName = []; // Names of arr1's items
var arrNeInvName = []; // Names of arr2's items
// Same as using two for loops, this takes care of increasing the number of stock quantity.
@@ -288,4 +288,4 @@ localeTitle: تحديث المخزون
* تصنيف الحل في واحدة من الفئات التالية - **الأساسي** **والمتوسط** **والمتقدم** . 
* الرجاء إضافة اسم المستخدم الخاص بك فقط إذا قمت بإضافة أي **محتويات رئيسية ذات صلة** . (  **_لا_** _تزيل أي أسماء مستخدمين حالية_ )
-> نرى  [**`Wiki Challenge Solution Template`**](http://forum.freecodecamp.com/t/algorithm-article-template/14272) كمرجع.
\ No newline at end of file
+> نرى  [**`Wiki Challenge Solution Template`**](http://forum.freecodecamp.com/t/algorithm-article-template/14272) كمرجع.
diff --git a/guide/chinese/certifications/coding-interview-prep/algorithms/inventory-update/index.md b/guide/chinese/certifications/coding-interview-prep/algorithms/inventory-update/index.md
index af2d6408d2..d84ed031e9 100644
--- a/guide/chinese/certifications/coding-interview-prep/algorithms/inventory-update/index.md
+++ b/guide/chinese/certifications/coding-interview-prep/algorithms/inventory-update/index.md
@@ -49,7 +49,7 @@ localeTitle: 库存更新
// A helper method to return the index of a specified product (undefined if not found)
var getProductIndex = function (name) {
for (var i = 0; i < this.length; i++) {
- if (thisi][1] === name) {
+ if (this[i][1] === name) {
return i;
}
}
@@ -133,7 +133,7 @@ localeTitle: 库存更新
// All inventory must be accounted for or you're fired!
var index;
- var arrCurInvName = ]; // Names of arr1's items
+ var arrCurInvName = []; // Names of arr1's items
var arrNeInvName = []; // Names of arr2's items
// Same as using two for loops, this takes care of increasing the number of stock quantity.
@@ -291,4 +291,4 @@ localeTitle: 库存更新
* 将解决方案分为以下类别之一 - **基本** , **中级**和**高级** 。 
* 如果您添加了任何**相关的主要内容,**请仅添加您的用户名。 (  **_不要_** _删除任何现有的用户名_ )
-> 看到 [**`Wiki Challenge Solution Template`**](http://forum.freecodecamp.com/t/algorithm-article-template/14272)供参考。
\ No newline at end of file
+> 看到 [**`Wiki Challenge Solution Template`**](http://forum.freecodecamp.com/t/algorithm-article-template/14272)供参考。
diff --git a/guide/english/certifications/coding-interview-prep/algorithms/inventory-update/index.md b/guide/english/certifications/coding-interview-prep/algorithms/inventory-update/index.md
index f6cbd7ec9e..b2b0ea4aca 100644
--- a/guide/english/certifications/coding-interview-prep/algorithms/inventory-update/index.md
+++ b/guide/english/certifications/coding-interview-prep/algorithms/inventory-update/index.md
@@ -48,7 +48,7 @@ Return the completed inventory in alphabetical order.
// A helper method to return the index of a specified product (undefined if not found)
var getProductIndex = function (name) {
for (var i = 0; i < this.length; i++) {
- if (thisi][1] === name) {
+ if (this[i][1] === name) {
return i;
}
}
@@ -132,7 +132,7 @@ Return the completed inventory in alphabetical order.
// All inventory must be accounted for or you're fired!
var index;
- var arrCurInvName = ]; // Names of arr1's items
+ var arrCurInvName = []; // Names of arr1's items
var arrNeInvName = []; // Names of arr2's items
// Same as using two for loops, this takes care of increasing the number of stock quantity.
diff --git a/guide/portuguese/certifications/coding-interview-prep/algorithms/inventory-update/index.md b/guide/portuguese/certifications/coding-interview-prep/algorithms/inventory-update/index.md
index 02795ddf7e..631188ec41 100644
--- a/guide/portuguese/certifications/coding-interview-prep/algorithms/inventory-update/index.md
+++ b/guide/portuguese/certifications/coding-interview-prep/algorithms/inventory-update/index.md
@@ -49,7 +49,7 @@ Retorne o inventário completo em ordem alfabética.
// A helper method to return the index of a specified product (undefined if not found)
var getProductIndex = function (name) {
for (var i = 0; i < this.length; i++) {
- if (thisi][1] === name) {
+ if (this[i][1] === name) {
return i;
}
}
@@ -133,7 +133,7 @@ Retorne o inventário completo em ordem alfabética.
// All inventory must be accounted for or you're fired!
var index;
- var arrCurInvName = ]; // Names of arr1's items
+ var arrCurInvName = []; // Names of arr1's items
var arrNeInvName = []; // Names of arr2's items
// Same as using two for loops, this takes care of increasing the number of stock quantity.
@@ -291,4 +291,4 @@ Retorne o inventário completo em ordem alfabética.
* Categorize a solução em uma das seguintes categorias - **Básica** , **Intermediária** e **Avançada** . 
* Por favor, adicione seu nome de usuário somente se você adicionou qualquer **conteúdo principal relevante** . (  **_NÃO_** _remova nenhum nome de usuário existente_ )
-> Vejo  [**`Wiki Challenge Solution Template`**](http://forum.freecodecamp.com/t/algorithm-article-template/14272) para referência.
\ No newline at end of file
+> Vejo  [**`Wiki Challenge Solution Template`**](http://forum.freecodecamp.com/t/algorithm-article-template/14272) para referência.
diff --git a/guide/russian/certifications/coding-interview-prep/algorithms/inventory-update/index.md b/guide/russian/certifications/coding-interview-prep/algorithms/inventory-update/index.md
index c5c245a477..b624874005 100644
--- a/guide/russian/certifications/coding-interview-prep/algorithms/inventory-update/index.md
+++ b/guide/russian/certifications/coding-interview-prep/algorithms/inventory-update/index.md
@@ -49,7 +49,7 @@ localeTitle: Обновление инвентаря
// A helper method to return the index of a specified product (undefined if not found)
var getProductIndex = function (name) {
for (var i = 0; i < this.length; i++) {
- if (thisi][1] === name) {
+ if (this[i][1] === name) {
return i;
}
}
@@ -133,7 +133,7 @@ localeTitle: Обновление инвентаря
// All inventory must be accounted for or you're fired!
var index;
- var arrCurInvName = ]; // Names of arr1's items
+ var arrCurInvName = []; // Names of arr1's items
var arrNeInvName = []; // Names of arr2's items
// Same as using two for loops, this takes care of increasing the number of stock quantity.
@@ -291,4 +291,4 @@ localeTitle: Обновление инвентаря
* Классифицируйте решение в одной из следующих категорий - **Basic** , **Intermediate** и **Advanced** . 
* Пожалуйста, добавьте свое имя пользователя, только если вы добавили **соответствующее основное содержимое** . (  **_НЕ_** _удаляйте существующие имена пользователей_ )
-> Видеть  [**`Wiki Challenge Solution Template`**](http://forum.freecodecamp.com/t/algorithm-article-template/14272) для [**`Wiki Challenge Solution Template`**](http://forum.freecodecamp.com/t/algorithm-article-template/14272) для справки.
\ No newline at end of file
+> Видеть  [**`Wiki Challenge Solution Template`**](http://forum.freecodecamp.com/t/algorithm-article-template/14272) для [**`Wiki Challenge Solution Template`**](http://forum.freecodecamp.com/t/algorithm-article-template/14272) для справки.
diff --git a/guide/spanish/certifications/coding-interview-prep/algorithms/inventory-update/index.md b/guide/spanish/certifications/coding-interview-prep/algorithms/inventory-update/index.md
index 096582744d..05bdcbb777 100644
--- a/guide/spanish/certifications/coding-interview-prep/algorithms/inventory-update/index.md
+++ b/guide/spanish/certifications/coding-interview-prep/algorithms/inventory-update/index.md
@@ -49,7 +49,7 @@ Devuelve el inventario completado en orden alfabético.
// A helper method to return the index of a specified product (undefined if not found)
var getProductIndex = function (name) {
for (var i = 0; i < this.length; i++) {
- if (thisi][1] === name) {
+ if (this[i][1] === name) {
return i;
}
}
@@ -133,7 +133,7 @@ Devuelve el inventario completado en orden alfabético.
// All inventory must be accounted for or you're fired!
var index;
- var arrCurInvName = ]; // Names of arr1's items
+ var arrCurInvName = []; // Names of arr1's items
var arrNeInvName = []; // Names of arr2's items
// Same as using two for loops, this takes care of increasing the number of stock quantity.
@@ -291,4 +291,4 @@ Devuelve el inventario completado en orden alfabético.
* Categorice la solución en una de las siguientes categorías: **Básica** , **Intermedia** y **Avanzada** . 
* Agregue su nombre de usuario solo si ha agregado algún **contenido principal relevante** . (  **_NO_** _elimine ningún nombre de usuario existente_ )
-> Ver  [**`Wiki Challenge Solution Template`**](http://forum.freecodecamp.com/t/algorithm-article-template/14272) para referencia.
\ No newline at end of file
+> Ver  [**`Wiki Challenge Solution Template`**](http://forum.freecodecamp.com/t/algorithm-article-template/14272) para referencia.