Page 77 - Trackpad_V5_Book 8
P. 77
21 st #Communication
GROUP DISCUSSION Century #Social Interaction
Skills
Divide the students in two groups and organise a group discussion on Internal JavaScript and
External JavaScript.
21 st #Technology Literacy
LAB ACTIVITY Century #Interdisciplinary
Skills
Visit your computer lab and perform the following actions.
Write a program in HTML and use JavaScript to display the virtual alert box which displays your
name. Use both Internal JS and External JS for the same program.
Write a program in HTML and use statements to calculate the product of two numbers and display
the result. Take the values as input from the user.
Write a JavaScript program to swap the value of two variables without using a third variable. Take
the values of both variables from the user.
Write a JavaScript program to calculate the area of a squire.
Write a JavaScript program to convert Kilometres to centimetres.
COding Zone COding Zone {} = COding Zone COding Zone
{C ding z ne}
21 st
[]
#Computational Thinking
Century
Skills
</>
1. What will be the value of x, y, and z after executing the following code in JavaScript:
var x = 8 + 8;
var y = "8" + 8;
var z = "Thanks" + 8;
2. If a = 10, b = 2, and c = 20, then write a code in JavaScript to display the result of the following
expression:
d = a + 2 (b + c) - c/5
CAREER HERE
People who are expert in JavaScript may pursue their career as a JavaScript Developer.
FOR THE TEACHER
1. Discuss about some more statements of JavaScript with the students.
2. Explain the features of JavaScript in detail to the students.
Dynamic Web Pages in HTML5 75

