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 JavaScript Operators

JavaScript provides different type of operations same as other programming languages. There are some additional operators which make javascript more suitable for programming. Javascript supports the following types of operators: 1) Arithmetic Operators They are used to perform different arithmetic operations between two or more variables. Operator Description Example: (here m = 8, n = […]

PHP String Functions

1] The addcslashes() function: This function puts a backslash in front of a specific character in the string. Example: Note: This function is case sensitive. 2] The addslashes() function: This function puts a backslash in front of some predefined characters. For example, a single quote, double quote, backslash, and NULL character. Example: 3] The bin2hex() […]

Remove Element JavaScript

With JavaScript, We can easily remove different HTML elements. Also Read: Create Element JavaScript Example 1 Suppose we want to remove <li> element inside <ul> elements using javascript. Here, we remove <li> elements using javascript as follows: Explanation: We select <div> tag using id container. We select <ul> tag using getElementsByTagName() function. We select <li> […]