JavaScript is an interpreted programming language developed in 1995, originally for client-side web scripting but now also used for game development and desktop applications. It is standardized by ECMA Script and supports both client-side and server-side scripting, enabling dynamic web content and interaction with databases. Key features include cross-platform compatibility, object-oriented programming, and the ability to enhance user experience through multimedia elements and form validation.
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
2 views
Part 1 - Web Scripting -Java Script (1)
JavaScript is an interpreted programming language developed in 1995, originally for client-side web scripting but now also used for game development and desktop applications. It is standardized by ECMA Script and supports both client-side and server-side scripting, enabling dynamic web content and interaction with databases. Key features include cross-platform compatibility, object-oriented programming, and the ability to enhance user experience through multimedia elements and form validation.
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 6
Web Scripting -Java Script
● Javascript is an interpreted computer programming
language. ● It was originally part of web browsers as a client-side scripting language. But they are also useful as a game development program and desktop widgets. ● It was developed in 1995 by Brendan Eich at Netscape and was released with Netscape 2 in 1996. It was initially called Livescript. ● The language was standardized by the ECMA Script language. ● This language is now supported by all web browsers. Review of the language ● It is a cross-platform, object-oriented scripting language that can be embedded in other products and applications such as web browsers but not suitable as a standalone language. ● In a host environment it can be connected to the objects of the host environment to provide a programmatic control over them. ● The core javascript contains A) a set of objects such as Arrays, Date, Math B) a set of language elements such as operators, control structures and statements. ● Client side JavaScript extends the core language by supplying objects to control the browser. (like placing an element in Html form, respond to user events such a form input and page navigation) ● Server side scripting extends the core language by supplying objects to control the server (such as an application to communicate with the database, provide continuity of the invocation of the application, perform file manipulation on the server side) Applications ● Use JavaScript to add multimedia elements in web pages. ● Customize the web pages according to user’s choice or preferences. ● Validate the form inputs in the web pages. Features of JavaScript 1. Almost all browsers support JavaScript 2. It can be used in client and server side. 3. In JavaScript function can be assigned to variables and also a function can be passed as a parameter to a function.It supports functional programming. 4. Supports object oriented programming features. 5. JavaScript relies on the runtime environment to provide objects and methods to interact with outside world. Client-Side JavaScript vs. Server-Side JavaScript
Client-side JavaScript runs on the user's web browser and is used to
create interactive elements on websites. It enhances user experience by allowing dynamic content updates without reloading the entire page. Examples include form validation, animations, and pop-up alerts.
Server-side JavaScript, on the other hand, runs on the web server. It is
used to process requests, interact with databases, and generate dynamic content before sending it to the client's browser. Server-side JavaScript is commonly used in backend development for tasks like handling user authentication, data storage, and server communication.
In summary, client-side JavaScript focuses on enhancing user interactions
within the browser, while server-side JavaScript manages the behind-the- scenes processes on the server to deliver dynamic content to the client.