Page 68 - PortGPT_V2.1_C8_Flipbook
P. 68
5 Introduction to
JavaScript
Let’s surf
JavaScript—A Scripting Language Features of JavaScript
Using JavaScript Creating a Web Page with Internal JavaScript
Creating a Web Page with
External JavaScript Statements in JavaScript
Input and Output in JavaScript Some More programs
Let’s PLug-in Critical Thinking
Write any six latest apps or devices.
1. ___________________________ 2. ___________________________
3. ___________________________ 4. ___________________________
5. ___________________________ 6. ___________________________
In the previous classes, we have learnt to create web pages using HTML. HTML uses many tags to tell
the browser how to display the content on web browsers. The web pages we have learnt to create
were static in nature which were not interactive. We need to use another scripting language along
with HTML to make web pages interactive and dynamic in nature. JavaScript is one of such types of
scripting languages.
JAVASCRIPT—A SCRIPTING LANGUAGE
JavaScript, often abbreviated as JS, is a client-side scripting language used for enhancing
users’ interaction with the web page by making web pages dynamic. The meaning of
client-side scripting language is that the code written in JavaScript is interpreted by the web browser
on which the web page is running. With the help of JavaScript, we can add different types of
functionalities in our web pages like taking input from the user, validating the user input, displaying
pop-up boxes, etc.
66 Premium Edition-VIII

