In this article we will talk about confirm in JavaScript, that is, how to create a window where the user can make a choice. With…
javascript confirm
In this lesson we will talk about alert in JavaScript, i.e. window.alert(), used to communicate a message to the user. Alert () is therefore a…
javascript alert
JavaScript functions are fundamental blocks of code, consisting of one or more instructions, which perform one or more actions. A function in JavaScript is defined…
funzioni in javascript
In this lesson we will talk about JavaScript for loop and we do some usage examples to better understand how it works. The for loop…
JavaScript for
In JavaScript the do while loop, as well as in other languages ​​where this construct exists, allows you to execute instructions at least once. If…
do while javascript
In this lesson we will talk about the JavaScript while loop and we will also do some very simple examples to understand how it works.…
While JavaScript
The length of a string in JavaScript is calculated with the length property, that count the amount of characters in that string. The syntax is…
Proprietà length di JavaScript
JavaScript charCodeAt method, to be used on strings, takes an index as an optional parameter. This method returns the Unicode character of the corresponding character…
charCodeAt JavaScript
The JavaScript charAt method used on strings returns one character from a string. The position of the character is indicated in the index between round…
charAt JavaScript
JavaScript search method looks for a string and returns the location of its match. The value to search for can be a string or a…
search JavaScript