toUpperCase
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 and has the following syntax:…
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 and has the following syntax:…
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 variables or even a 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 else, as I will explain…
In this lesson we study the instruction if else in JavaScript and we will do some pratical examples of use. Recall that conditional statements allow you to check a condition,…
In this article we will talk about variables in JavaScript and we will also introduce the concept of constant. These are some basic concepts that are important to learn right…
Learn javascript by studying the basic concepts. JavaScript is a language used in client-side web programming. This means that the scripts are interpreted by the web browser on each user’s…
This lesson is an introduction to JavaScript language with propose numerous scripts for each topic covered. Learning the basics of JavaScript with this tutorial will therefore be very simple, creative…
The JavaScript parseInt function is generally used to convert its first argument to an integer. The syntax is therefore the following: parseInt(string, root). Where string represents the string to convert,…
The Math.random function in JavaScript allows you to generate a pseudo-random decimal number between 0 inclusive and 1 excluded. Let’s immediately make an example of using the following function. JavaScript…
JavaScript array includes method allows you to check if an element is present in an array or even in a text string, as explained in this lesson: https://www.codingcreativo.it/en/javascript-includes/. The syntax…
The JavaScript includes method on String allows you to check if a text is contained in a string. This method can also be applied to arrays, as we’ll see later…
In this tutorial we will learn how to create the 15 puzzle game with JavaScript. Click on the play button and start moving the numbers, simply by passing over them,…
In this tutorial I propose a simple version of the JavaScript Slot Machine. The game consists of clicking on a button and trying to win, bringing out 3 identical symbols,…
In this lesson we will analyze some algorithmsin Python to check if a number belongs to the Fibonacci sequence. In the previous lesson we studied how to print a Fibonacci…
In questa lezione analizzeremo alcuni algoritmi per verificare se un numero appartiene alla successione di Fibonacci. Nella lezione precedente abbiamo studiato come stampare una successione di Fibonacci di lunghezza variabile,…
Fibonacci sequence in Python can have different implementation algorithms. Recall that the Fibonacci sequence is a sequence of positive integers in which each number starting from the third is the…
How to generate random numbers in Python? Random numbers are used for many purposes, let’s take some examples to better understand how are work. First example about how to generate…
In this lesson we study ho to generate a Python random number. Random numbers in Python, i.e. pseudorandom numbers, are used by first importing the random module. Then we just…