1. Make the following table using HTML and CSS for monthly
salary paid to some employee. Create a javascript function which will be called
on onclick event of the following button and the function will calculate the
total paid salary for each employee and show at the last cell of the
corresponding row.
Showing posts with label Javascript. Show all posts
Showing posts with label Javascript. Show all posts
Tuesday, May 26, 2015
Wednesday, May 20, 2015
Some Javascript homework related to iteration statement and common knowledge of function
- Write a Javascript function which will show the sum of the following series-
a) 1 + 2 + 3 +…………………………………….+ 100 = ?
b) 2 + 4 + 6 +.....................................................+ 100 = ?
c) 1 + 3 + 5 +.......................................................+ 100 = ?
- Write a javascript function which will show the product of the following series-
a) 1 * 2 * 3 *……………………………………. * 10= ?
b) 2 * 4 * 6 *..................................................... * 10 = ?
c) 1 * 3 * 5 *....................................................... * 9 = ?
- Write a javascript function which will take first number & last number of a series from user using prompt() function or two text boxes whose general difference is 1 and show the sum of the series.
- Write a javascript function which will take the the base and height of a triangle from user and show the area of the triangle.
- Area of a square.
- Area of a circle.
Subscribe to:
Posts (Atom)