0% found this document useful (0 votes)
4 views2 pages

Task Sheet 1 - Javascript

ok

Uploaded by

Zara Imran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Task Sheet 1 - Javascript

ok

Uploaded by

Zara Imran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1

THE WESTMINSTER SCHOOL, DUBAI

TASK SHEET 2-Programming for Web


Year: 13 Name :………………………..
Worksheet No/Term: 2/1
Date:

Question SET-1
1. Create a program to display a sentence using JavaScript.
2. Create a program to create a variable to store name and age and display it.
3. Create a program to display the use of prompt box and alert box.
4. Create a program to use prompt box to display the name and age.
5. Create a program that stores the first name, second name and age of a person. Output
these in a sentence, for example Roberto Mantovani you are 20 years old.

Question SET-2
1. Create a program to find the perimeter of a rectangle.
2. Create a program to find the cube of a number.
3. Create a program to add three number and find the average of the number.
4. Create a program to find the area of a circle.

Question SET -3
1. Write a program to enter a number and find whether the input number is positive or
negative.
2. Write a program to check whether a number is odd or even.
3. Write a program to enter two numbers and fins the greatest of the two number.
4. Write a program to find input the age of a person and display the alert box “Eligible for
voting” if the age is above or equal to 18 otherwise display “Not eligible”.
5. Check whether the input number is divisible by 3 and divisible by 5.
6. Input an alphabet and check whether it is vowel ,consonant, letter, special character

Question SET -4
1. Write a program to display number 1 to 10.
2. Write a program to display number 20 to 0.
3. Write a program to display 0 to 50.
4. Write a program to display your name 25 times.
5. Write a program to show only even numbers between 0 and 30.
2

You might also like