Advantages of JavaScript

Up to this point, you may not have seen any big reasons where and why JavaScript can help you. It is object based, can be interpreted within a browser, and there are security measures in place—but so is Java. Now that browsers support plug-ins and ActiveX controls, it is possible to design client-side functionality with more common languages like C++ or Visual Basic. So what does JavaScript really give you?

For starters, it is platform independent. This is a major advantage over ActiveX controls and plug-ins because they have to be recompiled and potentially rewritten for the various platforms out there today. Netscape Navigator, for example, runs on nearly 20 platforms and even though most of these are various flavors ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.