UrbanPro

Learn Web Development from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is the significance of, and the reason for, wrapping the entire content of a JavaScript source file in a function block?

Asked by Last Modified  

Follow 1
Answer

Please enter your answer

In javascript, only functions create local scope. It is possible you may accidently declare variables with same name as being used on other libraries or your own code cause errnaneous results in your code or third party code. To avoid such global scope pollution, it is recommended to enclose your code...
read more

In javascript, only functions create local scope. It is possible you may accidently declare variables with same name as being used on other libraries or your own code cause errnaneous results in your code or third party code. To avoid such global scope pollution, it is recommended to enclose your code in IIF (Immediatly invoked functions) or also called Self Invoking Functions, you can avoid global scope issues.

read less
Comments

Related Questions

Is it better to be a Web Designer or Web Developer?
However, there is a lot of variation based on experience and types of sites worked. Experienced designers working on large enterprise websites may make considerably more. Developers tend to make more money...
Asif
0 0
7
How can I learn web design?
start basics from YouTube tutorial and if you feel the need of any tutor then join
Harish
0 0
5
Difference between bind and live method in jquery?
The .live() method uses the concept of event delegation to perform its so called "magic". The way you call .live() looks just like how you might call .bind(), which is very convenient. However, under the...
Sr
0 1
7
What is website designing and development?
Web design and development is an umbrella term that describes the process of creating a website. Like the name suggests, it involves two major skill sets: web design and web development. Web design determines...
Tarun
0 0
8
What software do professional web designers use?
WordPress, Adobe Dreamweaver, Sublime Text and openElement.
Neetu
0 0
5

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

web scrapping using scrapy Python
Overview of Scrapy Scrapy is a Python framework for large scale web scraping. It gives you all the tools you need to efficiently extract data from websites, process them as you want, and store them in...
S

Sharma academy

0 0
0

Always keep learning
If you are in IT, in order to survive you have keep reading and keep polishing your skillsets and this you can do everyday by taking small steps like learning and implementing them. There are so many...

What Is Web Designing Or Composition?
What is web Designing or composition? Quickly, web designing implies arranging, creation and refreshing of websites. Web composition likewise includes data engineering, site structure, UI, route ergonomics,...

Introduction to Programming Languages
What is a Programming Language? A programming language is a formal computer language or constructed language designed to communicate instructions to a machine, particularly a computer. Programming languages...

5 Tips On How To Become A Web Developer
1. Have A Goal: Always first decide what you want to create. 2. Learn To Code : You should be passinate about coding. As you know practice makes a Man Perfect. 3. Google for Solutions : Someone once...

Recommended Articles

Today, no business can exist without having its own website to interact with its customer base. Having a website is no more restricted to the big MNCs. With the advancement in technology and global business, even the small enterprises are spending on having their own websites and development teams. The person works on web...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Looking for Web Development Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Web Development Classes?

The best tutors for Web Development Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Web Development with the Best Tutors

The best Tutors for Web Development Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more