The JavaScript replace method is used on strings to replace one or more values. The syntax is therefore the following: string.replace (value, newValue). Then the…
replace JavaScript
The JavaScript lastIndexOf method can be used, as well as indexOf, with both arrays and strings. In this lesson we will study it by applying…
lastIndexOf in JavaScript
The JavaScript indexOf method can be used with both arrays and strings. indexOf in this lesson is applied to strings. The syntax of this JavaScript…
indexOf in JavaScript
The JavaScript split method iallows you to split a string based on a separator, save the sub-strings obtained in an array and then return the…
split JavaScript
JavaScript trim method is used to remove whitespace from the beginning and end of a string. Then the trim() method cleans the string of any…
trim JavaScript
JavaScript substring method applies to strings to extrapolate a portion of them. substring follows the syntax: string.substring(start, end); Where start indicates from which character it…
Substring JavaScript
The toLowerCase in JavaScript is a method useful for converting a string to lowercase and has the following syntax: string.toLowerCase(); Where string represents the string…
toLowerCase in JavaScript
JavaScript toUpperCase is a method when it is useful to want to turn all text into uppercase. This method can be applied to a string…
JavaScript toUpperCase
In JavaScript the console.log () method displays a message in the browser console. This message can be a simple text string or one or more…
console log javascript
In JavaScript the if statement is used to execute different statements based on conditions. It is possible, but it is not mandatory to insert the…
JavaScript if statement