top of page

Javascript Notes

mobiprep (6).png

JavaScript

mobiprep (6).png

Data Types

mobiprep (6).png

Variables

mobiprep (6).png

Operators

mobiprep (6).png

Functions

mobiprep (6).png

Conditional Statements and Loops

mobiprep (6).png

Arrays

mobiprep (6).png

Objects

mobiprep (6).png

DOM Elements

mobiprep (6).png

Cookies

mobiprep (6).png

Pop Up Box

mobiprep (6).png

Exception Handling

Heading

Q

1

What is DOM Programming Interface?

LRM_EXPORT_207556595493866_20190724_1939

Ans

The Document Object Model (DOM) connects web pages to scripts or programming languages by representing the structure of a document—such as the HTML representing a web page—in memory. Usually it refers to JavaScript, even though modeling HTML, SVG, or XML documents as objects are not part of the core JavaScript language.

LRM_EXPORT_207556595493866_20190724_1939

Q

2

Define DOM Methods.

LRM_EXPORT_207556595493866_20190724_1939

Ans

HTML DOM methods are actions you can perform (on HTML Elements).

LRM_EXPORT_207556595493866_20190724_1939

Q

3

Define DOM Properties.

LRM_EXPORT_207556595493866_20190724_1939

Ans

HTML DOM properties are values (of HTML Elements) that you can

LRM_EXPORT_207556595493866_20190724_1939

Q

4

What is Event Handling?

LRM_EXPORT_207556595493866_20190724_1939

Ans

Event Handling is a software routine that processes actions, such as keystrokes and mouse movements. It is the receipt of an event at some event handler from an event producer and subsequent processes.

LRM_EXPORT_207556595493866_20190724_1939

Q

5

What is Event Bubbling?

LRM_EXPORT_207556595493866_20190724_1939

Ans

While developing a webpage or a website via JavaScript, the concept of event bubbling is used where the event handlers are invoked when one element is nested on to the other element and are part of the same event. This technique or method is known as Event Bubbling. Thus, while performing event flow for a web page, event bubbling is used. We can understand event bubbling as a sequence of calling the event handlers when one element is nested in another element, and both the elements have registered listeners for the same event. So beginning from the deepest element to its parents covering all its ancestors on the way to top to bottom, calling is performed.

LRM_EXPORT_207556595493866_20190724_1939
bottom of page