aboutsummaryrefslogtreecommitdiff
path: root/files/ar/glossary/scope/index.html
diff options
context:
space:
mode:
authorRyan Johnson <rjohnson@mozilla.com>2021-04-29 16:16:42 -0700
committerGitHub <noreply@github.com>2021-04-29 16:16:42 -0700
commit95aca4b4d8fa62815d4bd412fff1a364f842814a (patch)
tree5e57661720fe9058d5c7db637e764800b50f9060 /files/ar/glossary/scope/index.html
parentee3b1c87e3c8e72ca130943eed260ad642246581 (diff)
downloadtranslated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.gz
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.bz2
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.zip
remove retired locales (#699)
Diffstat (limited to 'files/ar/glossary/scope/index.html')
-rw-r--r--files/ar/glossary/scope/index.html44
1 files changed, 0 insertions, 44 deletions
diff --git a/files/ar/glossary/scope/index.html b/files/ar/glossary/scope/index.html
deleted file mode 100644
index 13d28ff8cc..0000000000
--- a/files/ar/glossary/scope/index.html
+++ /dev/null
@@ -1,44 +0,0 @@
----
-title: المجالات
-slug: Glossary/Scope
-translation_of: Glossary/Scope
-original_slug: Glossary/المجالات
----
-<p>تعبر عن سياق التنفيذ الحالي للبرنامج والذي يمكنك فيه الوصول لقيم المتغيرات والتوابع واستعمالها. فإذا تم البحث عن متغير او تابع خارج المجال (أو سياق التنفيذ) الحالي وتبين أنّه  غير موجود فلن تستطيع الوصول إليه واستعماله. وتتشكل هذه المجالات بشكل هرمي (أو دائري بشرط لايوجد دائرتين متقاطعتين وكل الدوائر محتواة في بعضها البعض) بحيث ان المجال الداخلي (أو الدائرة الداخلية) الابن يستطيع الوصول لمجال الأب (الدائرة التي تحتويه) ولكن العكس غير ممكن.</p>
-
-<p><img alt="nested scopes intro in javascript" src="https://mdn.mozillademos.org/files/16465/nestedScopesInJS.png" style="height: 498px; width: 461px;"></p>
-
-<p>التوابع  (<strong>{{glossary("function")}})</strong> في {{glossary("JavaScript")}} تستعمل لإنشاء مجالات جديدة (كل تابع يمثل مجال جديد خاص به) فعلى سبيل المثال,إن تعريف متغير داخل التابع لن يمكنك من استعماله داخل تابع آخر او من اي مجال خارج هذا التابع, وهذا مثال يوضح لك الفكرة:</p>
-
-<pre class="syntaxbox">function exampleFunction() {
-
-  // هذا المتغير لا يمكن استعماله إلا ضمن التابع الحالي فقط
- // او أي تابع محتوى داخله
-  var x = "متغير داخل التابع";
-  console.log("داخل التابع");
-  console.log(x);
-}
-
-console.log(x); // لا يمكن الوصول للمتغير من الخارج</pre>
-
-<p>بينما يستطيع التابع الوصول للمتغيرات المعرفة في مجال يقع خارجه او في المجال العام للبرنامج الخاص بك</p>
-
-<pre class="syntaxbox">var x = "انا متغير مُعرف خارج التابع";
-
-exampleFunction();
-
-function exampleFunction() {
- console.log("انا داخل التابع");
-    console.log(x); // يمكن لمجال داخلي ابن ان يصل لمتغيرات مجال خارجي أب
-}
-
-console.log("انا خارج التابع في المجال العام");
-console.log(x);</pre>
-
-<h2 id="Learn_more">Learn more</h2>
-
-<h3 id="General_knowledge">General knowledge</h3>
-
-<ul>
- <li>{{Interwiki("wikipedia", "Scope (computer science)")}} في ويكبيديا</li>
-</ul>