Our volunteers haven't translated this article into ไทย yet. Join us and help get the job done!
You can also read the article in English (US).

A variable whose name is bound to its value only within a local scope.


var global = 5; //is a global variable 

function fun(){
    var local = 10; //is a local variable  

Learn more

General knowledge

Document Tags and Contributors

ผู้มีส่วนร่วมกับหน้านี้: mdnwebdocs-bot, Llamaless, Jeremie, lpiot, sap, Andrew_Pfeiffer, klez, kscarfone, panaggio
อัปเดตล่าสุดโดย: mdnwebdocs-bot,