JavaScript for beginners - Chapter 6 - Inline vs external JavaScript

Опубликовано: 08 Сентябрь 2016
на канале: Ankpro Training
714
6

Inline Vs External JavaScript :
JavaScript can be placed either Inline on the page or in an external .js file.
Advantages of external javascript over inline javascript :
Maintainability :
Writing javascript in external files can be referenced on multiple pages without having to duplicate the code inline on every page.

If something has to change, you have to change at one place only.

Finally external JavaScript code can be reused and maintenance will be easier.

Separation of Concerns :
Storing JavaScript in a separate external .js file strong follows Separation of concerns design principle.
It is a good practice to separate HTML, CSS and JavaScript as it makes easier working with them.
Also allows multiple developers to work simultaneously.
Performance :
An external JavaScript file can be cached by the browser .
An inline JavaScript on the page is loaded every time the page loads.





ankpro
ankpro training
Asp.net MVC
C#
C sharp
Bangalore
Rajajinagar
Selenium
Coded UI
Mobile automation testing
Mobile testing
JQuery
JavaScript
.Net
Components of the .Net framework
Hello World
Literal
Keywords
Variable
Data types
Operators
Branching
Loops
Arrays

Creating a custom exceptions class.


На этой странице сайта вы можете посмотреть видео онлайн JavaScript for beginners - Chapter 6 - Inline vs external JavaScript длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Ankpro Training 08 Сентябрь 2016, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 714 раз и оно понравилось 6 зрителям. Приятного просмотра!