Latest Articles

JavaScript insertBefore() Method

Sometimes we need to insert an element at a specific position, or we need to insert an element before any particular element. At that time we can use JavaScript insert before method. JavaScript insertBefore() method inserts a node at the specified position between HTML DOM elements. Also Read: JavaScript appendChild() Method Example Let’s consider we […]

JavaScript appendChild() Method

JavaScript appendChild() method appends the new HTML node as the last child of another HTML node. This method is used with JavaScript createElement() method. So if you don’t know how to use createElement() method in JavaScript Please read JavaScript createElement() method. Example 1 If we have a list in HTML and we want to add […]

What is JavaScript Hoisting

JavaScript provides the feature of using a variable before the declaration. In other words, we can use javascript variables without a declaration. JavaScript Hoisting JavaScript hoisting is the behavior of JavaScript, which moves all the declarations of javaScript variables to the top of the scope. In other words, JavaScript hoisting moves all the variable declarations […]

List of PHP Operators

Operators indicate compiler which operation to perform. Operators help to perform various calculations on the given data. Operators In PHP PHP provides different types of operators, similar to other programming languages. They are divided into the following categories. Arithmetic operators Logical operators Comparison operators Increment / Decrement operators Conditional operators Assignment operators Array operators String […]