12 063
правки
(Новая страница: «<syntaxhighlight lang="js"> global.__proto__.myVar = 42; // now myVar - is a common variable for all scripts») |
(Новая страница: «// the variable can be accessed from other scripts as follows log("shared myVar: {}", myVar);») |
||
Строка 118: | Строка 118: | ||
global.__proto__.myVar = 42; // now myVar - is a common variable for all scripts | global.__proto__.myVar = 42; // now myVar - is a common variable for all scripts | ||
// | // the variable can be accessed from other scripts as follows | ||
log("shared myVar: {}", myVar); | log("shared myVar: {}", myVar); | ||
правки