aboutsummaryrefslogtreecommitdiff
path: root/files/ja/glossary/local_variable
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/glossary/local_variable
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
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>