Question
Q1) Fill in the blanks 1. Javascript is called client side programming because it runs on the __________________ not on the web server. 2. Write
Q1) Fill in the blanks 1. Javascript is called client side programming because it runs on the __________________ not on the web server. 2. Write the script tag that will execute an alert with message Hello from Javascript!, no need to include a script file. Just complete the following javascript code
Q2)
a. What is the main function of DOM?
b. What is the purpose of HTML DOM Node Tree?
Q3) Complete the following code by adding:
(1) A function called AreaBox that takes two arguments, the length and width of the rectangle and returns the Area of a rectangle.
(2) A function called PerimeterBox that takes two arguments, the length and width of the rectangle and returns the perimeter of a rectangle.
(3) A Function called Rectangle that gets the length and the width of the rectangle from the user and displays the area and the perimeter of the corresponding rectangle.
chead>
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started