aboutsummaryrefslogtreecommitdiff
path: root/files/ja/glossary/local_variable
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/glossary/local_variable')
-rw-r--r--files/ja/glossary/local_variable/index.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/files/ja/glossary/local_variable/index.html b/files/ja/glossary/local_variable/index.html
new file mode 100644
index 0000000000..2ebec4cb7a
--- /dev/null
+++ b/files/ja/glossary/local_variable/index.html
@@ -0,0 +1,30 @@
+---
+title: Local variable (ローカル変数)
+slug: Glossary/Local_variable
+tags:
+ - CodingScripting
+ - Glossary
+ - NeedsContent
+ - 用語集
+translation_of: Glossary/Local_variable
+---
+<p>{{glossary("variable", "変数")}}のうち、その{{glossary("value","値")}}を指す名前が{{Glossary("local scope","ローカルスコープ")}}内にのみあるものです。</p>
+
+<h2 id="Example" name="Example">例</h2>
+
+<pre class="brush: js">var global = 5; //is a global variable
+
+function fun(){
+ var local = 10; //is a local variable
+}
+</pre>
+
+<section class="Quick_links" id="Quick_Links">
+<ol>
+ <li>一般知識
+ <ol>
+ <li>Wikipedia 上の{{interwiki("wikipedia", "ローカル変数")}}</li>
+ </ol>
+ </li>
+</ol>
+</section>