diff options
Diffstat (limited to 'files/de/glossary/local_variable/index.html')
-rw-r--r-- | files/de/glossary/local_variable/index.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/files/de/glossary/local_variable/index.html b/files/de/glossary/local_variable/index.html new file mode 100644 index 0000000000..d0fcecb97b --- /dev/null +++ b/files/de/glossary/local_variable/index.html @@ -0,0 +1,29 @@ +--- +title: Local variable +slug: Glossary/Local_variable +tags: + - Gültigkeitsbereich + - Locale variable + - Lokale Variable +translation_of: Glossary/Local_variable +--- +<p>Eine {{glossary("variable")}} deren Namen an ihren {{glossary("value")}} – Wert – nur innerhalb eines {{Glossary("local scope")}} – lokalen Gültigkeitsbereichs – gebunden ist.</p> + +<h2 id="Example">Example</h2> + +<pre class="brush: js">var global = 5; //ist eine globale Variable + +function fun(){ + var local = 10; //ist eine lokale Variable +} +</pre> + +<section class="Quick_links" id="Quick_Links"> +<ol> + <li>General knowledge + <ol> + <li>{{interwiki("wikipedia", "Local variable", "Local variable")}} on Wikipedia</li> + </ol> + </li> +</ol> +</section> |