JavaScript - Introduction (Part 1)

JavaScript - Introduction 


JavaScript is a dynamic computer programming language. It is lightweight and most commonly used as a part of web pages, whose implementations allow client-side script to interact with the user and make dynamic pages. It is an interpreted programming language with object-oriented capabilities. 

JavaScript was first known as Live Script, but Netscape changed its name to JavaScript, possibly because of the excitement being generated by Java. JavaScript made its first appearance in Netscape 2.0 in 1995 with the name Live Script. The general-purpose core of the language has been embedded in Netscape, the Internet Explorer, and other web browsers.

  • JavaScript is a lightweight, interpreted programming language. 
  • Designed for creating network-centric applications.
  • Complementary to and integrated with Java.
  • Complementary to and integrated with HTML.
  • Open and cross-platform. 
Modern JavaScript depends on the idea of the modern browser. What is the modern browser? Different organizations describe it in different ways. Google says that their applications support the current and previous major versions of browsers. (Fascinating, as Gmail still works on IE9, as far as we can tell!) In an interesting article, the people behind the British Broadcasting Company (BBC) website revealed that they define a modern browser as one that supports the following capabilities: 
1. document.querySelector() / document.querySelectorAll() 
2. window.addEventListener() 
3. The Storage API (localStorage and sessionStorage)

 

Advantages of JavaScript

1. JavaScript is a client-side language.

2.JavaScript is an easy language to learn.

3. JavaScript is comparatively fast for the end-user.

4. Extended functionality to web pages.

5.No compilation needed.

6.Easy to debug and test.

7.Event-Based Programming language.

8.Procedural programming capabilities


Disadvantages of JavaScript

  • Client-Side Security - Since JavaScript code is executed on the client-side, bugs and oversights can sometimes be exploited for malicious purposes. Because of this, some people choose to disable JavaScript entirely.
  • Browser Support - While server-side scripts always produce the same output, different browsers sometimes interpret JavaScript code differently. These days the differences are minimal, and you shouldn't have to worry about it as long as you test your script in all major browsers.

Comments

Popular posts from this blog

Machine learning and artificial intelligence

SALESFORCE

Test Tools