Skip to content

Commit

Permalink
Add terminale JS
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliopedicone02 committed Jun 3, 2024
1 parent 25655ba commit 7dc825d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Esercizi/Terminale JavaScript/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ window.onload = () => {
if (contenuto.includes("weather") == true) {
var words = contenuto.split(" ");
contenuto = words[0];
city = words[1];
city = words.slice(1).join(" "); //Restituisce un nuovo array che inizia dall'indice 1 fino alla fine dell'array originale
}

switch (contenuto) {
Expand Down

0 comments on commit 7dc825d

Please sign in to comment.