Introducing to JavaScript (2)
It's important to understand the difference between Java and JavaScript . Java is a full programming language developed by Sun Microsystems with formal structures, etc. JavaScript is a scripting language developed by Netscape that is used to modify web pages. Most JavaScript must be written in the HTML document between tags.You open with a tag, write your JavaScript, and write a closing tag. Sometimes, as an attribute to script, you may add “ Language=JavaScript ” because there are other scripting languages as well as JavaScript that can be used in HTML. We’ll go through some examples to demonstrate the syntax of JavaScript. To understand the workings of JavaScript, it is essential to understand a few basic programming concepts. JavaScript is object-oriented. An Object in JavaScript is a resource that has specific characteristics known as properties and provides several services known as methods and events . An example of an object is document , which represents t...