Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // IIF function, зарежда се първа и се изпълнява без да се вика
- (function () {
- console.log('a1')
- }());
- //-------------------------------------------
- function a () {
- console.log('a');
- }
- var a = function() {
- console.log('a1');
- }
- a();
- //result a1, защото var a =.... презаписва function a()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement