How to Convert Str to Int in PHP

Sometimes you require to convert the string into the number like int, float, or any other type. It is needed when you get a number as a string; then, it is necessary to convert this string into a number for performing further operations on that string type number. Convert Str to Int in PHP In […]

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 = […]

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> […]