January 2018
Intermediate to advanced
678 pages
20h 16m
English
All the JavaScript function definitions you’ve seen so far have been positioned within web page head containers. In the real world, web programmers will often use external files to hold their JavaScript function definitions and then have their web pages link to those external JavaScript file(s).
There are several advantages of positioning a web page’s JavaScript function definitions in an external file:
▸ If another web page needs the functionality provided by one of the functions, the second web page can link to the external file and share the function. By using the already-written function, the second web page doesn’t have to “reinvent the wheel.”
▸ If an external JavaScript file and its functions are shared ...
Read now
Unlock full access