JavaScript isArray() Function

What is isArray() function in Javascript ? The isArray() is a predefined function of javascript. It is used for checking wheater the input value is string or not. Syntax: Array.isArray(object) Explanation: An object parameter is a required field of function. Example 1 var social = [“facebook”,”Whatsapp”,”Instagram”]; console.log(Array.isArray(social)); Explanation: We first declare one array in variable […]

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