An exception signifies the presence of an abnormal condition which requires special operable techniques. In programming terms, an exception is the anomalous code that breaks the normal flow of the code. Such exceptions require specialized programmi...
What Is JavaScript Events ? The change in the state of an object is known as an Event. In html, there are various events which represents that some activity is performed by the user or by the browser. When javascript code is included in HTML, js r...
JavaScript Constructor : A JavaScript constructor method is a special type of method Constructor is used to initialize and create an object. It is called when memory is allocated for an object. Points to remember : The constructor keyword is us...
What Is Object-oriented Programming? Object-oriented Programming treats data as a crucial element in program development and doesn't allow it to flow freely around the system. It ties data more securely to the function that operates on it and prote...
document.getElementById() method : The getElementById() method returns an element with a specified value. The getElementById() method returns null if the element does not exist. The getElementById() method is one of the most common methods in the ...
Document Object Model : The document object represents the whole html document. HTML DOM (Document Object Model) is a hierarchical representation of HTML documents. When html document is loaded in the browser, it becomes a document object. It is ...
JavaScript Objects : A javaScript object is an entity having state and behavior (properties and method). For example: car, pen, bike, chair, glass, keyboard, monitor etc. JavaScript is an object-based language. Everything is an object in JavaScri...
There are mainly two types of loops. Entry Controlled loops: In this type of loop, the test condition is tested before entering the loop body. For Loop and While Loops are entry-controlled loops. Exit Controlled Loops: In this type of loop the ...
JavaScript Comment : The JavaScript comments are meaningful way to deliver message. It is used to add information about the code, warnings or suggestions so that end user can easily interpret the code. The JavaScript comment is ignored by the Java...
CSS Color property: The color property in CSS is used to set the color of HTML elements. This property is used to set the background color or the font color of an element. In CSS, we use color values for specifying the color. We can also use this...