Page 51 - TrackpadV5.1_class8
P. 51
5. Think and answer.
a. What is JavaScript? Describe some of its features.
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
b. Explain how to include external JavaScript in an HTML document.
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
c. What are JavaScript keywords? Give two examples.
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
d. What is the purpose of the prompt() method in JavaScript?
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
6. Differentiate between the following:
a. Client-Side JavaScript Server-Side JavaScript
________________________________ ________________________________
________________________________ ________________________________
b. Internal JS External JS
________________________________ ________________________________
________________________________ ________________________________
21 st #Critical Thinking
7. Competency-based/Application-based questions. Century
Skills #Technology Literacy
a. Riya wants to store her name so she can use it later in her JavaScript code. Which JavaScript keyword
should she use to declare a variable for her name?
b. After Ankit submits his username on a registration form, he wants to receive immediate
feedback with a pop-up message saying, "Registration successful, Ankit!" Which
JavaScript function should he use to show this message?
21 st #Communication
GROUP DISCUSSION Century #Social Interaction
Skills
Divide the students into two groups and organise a group discussion on Internal JavaScript and
External JavaScript.
Dynamic Web Pages in HTML5 49

