Triangle

Triangle

Area(A): 0.5 X b X h
b=3cm h=7cm
cm cm
Rectangle

Rectangle

Area(A): w X l
w=4cm l=6cm
cm cm
Parallelogram

Parallelogram

Area(A): 0.5 X b X h
b=2cm h=7cm
cm cm
Rhombus

Rhombus

Area(A): 0.5 X d1 X d2
b=2cm h=7cm
cm cm
Pentagone

Pentagon

Area(A): 0.5 X p X b
b=2cm h=7cm
cm cm
Ellipse

Ellipse

Area(A): ℼ X b X h
b=2cm h=7cm
cm cm

Area Calculation


What is Dom and what is the purpose of DOM?

DOM stands for Document Object Model which is also a cross-platform interface that represents an HTML document as a tree structure.Moreover, any programming language can use DOM to modify web pages.

How will you select HTML elements using DOM?

When we will use DOM to select HTML elements,we can follow 5 ways to select HTML elements. Such as,
1.getElementsByTagName()
2.getElementsByClassName()
3. getElementById()
4.querySelector()
5.querySelectorAll()

What is event bubble?

Event bubbling is a process that starts with the element that arouses the event and bubbles up the containing elements in order. The main thing of the event bubbling is, when an event happens on another element, it first runs on the handlers and then on its parent element.

What is a callback function and why will you use it?

A callback function is function that passed into another function as a parameter.Which can also return into another function. we use it in Javascript.By mapping or filtering functions that call your callback for every element in an array, list, or other container