JavaScript Join two strings | Example of concat() and operator

There are many ways to Join two strings in JavaScript, like the operator and concat() method. Mostly The concat() method is used to join two or more strings. JavaScript Join two strings Ways + operator. += operator concat() method Examples of Join two strings in JS Let’s see the one one example of each ways. 1. + Read More…


JavaScript array join method | Join the elements of an array into a string

JavaScript array join method is used to join the elements of an array into a string. You can use specified separators like space or other special characters etc. But the separator default value is a comma (,). Note: this method will not change the original array. Syntax

Parameter Values Its and optional and default value Read More…


JavaScript parseint function| Convert a string to an integer Example

The javaScript parseint() method is to Convert a string to an integer (Number). The parseInt() is an inbuilt function in JavaScript, it accepts the string, radix parameter and converts it into an integer. If the given string doesn’t contain numbers, it returns Nan( not a number) Syntax

Parameter Values string: A given value want to parse to Read More…


Split and join in JavaScript | Examples and Use in Array/Strings

Split and Join method can use to a string with an array or useful for static find-and-replace. As per name indicates split() function breaks up a string at the specified separator and the joint() function is joined by the string separator.  Read this tutorial:- Python Split() Function | Split String Example Python Join Function | Join Read More…


JavaScript includes method | Array and String example

JavaScript includes() method work with Array and String. Where it used with String to determines whether a string contains the characters of a specified string. And in Array determines whether an array contains a specified element. Examples of JavaScript includes Let’s the example of includes() method with Array and Strings. JavaScript array includes an example check if an Read More…


JavaScript array includes method | check if a value exists

JavaScript array includes is used to check an element is exists in the array or not. It’s an inbuilt function and returns true if the element is present in Array. Syntax

Parameter element:- A element value want to search. start:- Array position to start the search given element. Optional and the default value is 0. Read More…


JavaScript String includes method | Search one string into another string

JavaScript String includes a method used to determines whether a searching string contains found within another string. It will return a true if the string contains the characters otherwise false. Note: The JS includes() method is case sensitive Syntax

Parameter Values searchvalue: The string to search for. start: At which position to start the search, Read More…


Number isinteger JavaScript Method | check var/value is an integer or not

Number isinteger JavaScript Method is used to know whether a value an integer or not? You have to pass the value into an isinteger() function and its return boolean value, true if the value is of the type Number. Otherwise, it returns false. Syntax

Parameter Values A single parameter value value to be tested. Return Read More…



JavaScript number function | Convert the data type to number

JavaScript number function is used to convert the data type to number. It can Convert different object values (Strings, boolean, etc) to their numbers. Syntax

Parameter Values Input variable, But its optional. If no argument is provided, it returns 0. Return value It returns the number (integer) format for any type of the JavaScript Read More…