var var1 =12;
(function SelfExecutedTestFun(){
console.log("value of var1 is:" + var1);
var var2 = 500;
})();
console.log("value of var1 from out side is:" + var1);
console.log("value of var2 from out side is:" + var2);
What will be printed to the console?
@basimdev32 thanks for a feedback! can you tell, please, how did you achieve such result?
2018 Feb 4, 6:13:41 PM
Ввійдіть щоб вподобати
Ввійдіть щоб прокоментувати