12 063
правки
(Новая страница: «// the variable can be accessed from other scripts as follows log("shared myVar: {}", myVar);») |
(Новая страница: «// or like this, which is a bit more accurate, because it clearly shows where the variable is defined log("shared myVar: {}", global.__proto__.myVar); </syntaxhig…») |
||
Строка 121: | Строка 121: | ||
log("shared myVar: {}", myVar); | log("shared myVar: {}", myVar); | ||
// | // or like this, which is a bit more accurate, because it clearly shows where the variable is defined | ||
log("shared myVar: {}", global.__proto__.myVar); | log("shared myVar: {}", global.__proto__.myVar); | ||
</syntaxhighlight> | </syntaxhighlight> |
правки