Answer the question
In order to leave comments, you need to log in
How do I install the .Msixbundle file?
How do I install the .Msixbundle file?
Answer the question
In order to leave comments, you need to log in
On fresh (supported) builds, Windows 10 should be installed without problems and so on. If on Windows 7 - install MSIX Core . What kind of Windows do you have?
And, yes, if you have a build of Windows 10 lower than 2004, you also need to enable sideloading in order to install applications not only from the Store.
function declaration rises to the top of the scope, declarations too, and var declares a local variable.
Your code in the javascript interpreter view:
function f() { console.log(2) }
(function() {
var f;
f(); // f локальная и сейчас undefined
f = function() { console.log(1) } // и только тут в нее пишется ссылка на функцию
})();
f();
function f() { console.log(2) }
(function() {
f(); // f функция из родительского скоупа
f = function() { console.log(1) } // а тут она просто перезаписывается
})();
f();
By declaring a variable through var, you tell the interpreter that your own variable is used inside this block, overlapping an external variable of the same name.
In the first case, the variable f is local and at the time of the call to f() it is only declared, but not yet defined.
In the second, the variable is global and is explicitly defined as function f().
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question