What is Java Script? JavaScript is an object-based scripting language designed primarily for HTML (Hypertext Markup Language), It supports both IE (internet Explorer) and Netscape Navigator and all other major web browser. Java script can be used for both client side as well as server side in web development. It is not a programming language it can not create executable code while compiling, it is embed in document and while pursing the html document it executes the script, it is an object-based scripting language, while reasonably simple in syntax, construction, and features, the object-based nature of JavaScript still offers programmers significant power and flexibility through the ability to create functions and new objects. | ||
An object in the context of JavaScript, is a collection of properties and methods consisting a set of defined characteristics that you can view and modify, and which you can interact. Methods are the techniques that are used to perform action involving objects and properties. For example statement like Document. Write("Welcome to Javascript") here Document is the object, Write is the method of Document object, JavaScript follows event driven sequence. the events determine the program flow and event handlers determine what happen when these event occurs.
You can write javascript in body or head section depend on your requirement or you can write java script in a sepeate file with extension ".js" and includes it in your HTML document with
No comments:
Post a Comment