diff --git a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/add-elements-at-a-specific-index-in-a-linked-list.arabic.md b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/add-elements-at-a-specific-index-in-a-linked-list.arabic.md index cd5937c1da..b058337256 100644 --- a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/add-elements-at-a-specific-index-in-a-linked-list.arabic.md +++ b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/add-elements-at-a-specific-index-in-a-linked-list.arabic.md @@ -56,7 +56,7 @@ function LinkedList() { if(head === null){ head = node; } else { - currentNode = head; + var currentNode = head; while(currentNode.next){ currentNode = currentNode.next; diff --git a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/remove-elements-from-a-linked-list-by-index.arabic.md b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/remove-elements-from-a-linked-list-by-index.arabic.md index 26c7568df5..76d8c0359d 100644 --- a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/remove-elements-from-a-linked-list-by-index.arabic.md +++ b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/remove-elements-from-a-linked-list-by-index.arabic.md @@ -60,7 +60,7 @@ function LinkedList() { if(head === null){ head = node; } else { - currentNode = head; + var currentNode = head; while(currentNode.next){ currentNode = currentNode.next; diff --git a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/remove-elements-from-a-linked-list.arabic.md b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/remove-elements-from-a-linked-list.arabic.md index 7e2555fcfb..da08be7205 100644 --- a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/remove-elements-from-a-linked-list.arabic.md +++ b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/remove-elements-from-a-linked-list.arabic.md @@ -58,7 +58,7 @@ function LinkedList() { if(head === null){ head = node; } else { - currentNode = head; + var currentNode = head; while(currentNode.next){ currentNode = currentNode.next; diff --git a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/search-within-a-linked-list.arabic.md b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/search-within-a-linked-list.arabic.md index 09a315a1a6..c8116e9773 100644 --- a/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/search-within-a-linked-list.arabic.md +++ b/curriculum/challenges/arabic/08-coding-interview-prep/data-structures/search-within-a-linked-list.arabic.md @@ -60,7 +60,7 @@ function LinkedList() { if(head === null){ head = node; } else { - currentNode = head; + var currentNode = head; while(currentNode.next){ currentNode = currentNode.next;