2.2 Scope Control

January 22, 2015 - II. Advanced Howto
Learn how RapydScript protects your variables without the ‘var’ keyword.

JavaScript has a nasty habit of leaking your code into global scope when you forget to use ‘var’ keyword. It also has a nasty habit of overwriting a global should you modify the variable without declaring it as local first. RapydScript has neither of these habits.

Back to JavaScript and DOM
Continue to Modules and Imports