Exécuter
❯
Exécuter le code
Ctrl+Alt+R
Enregistrer le code
Ctrl+Alt+A
Changer d'orientation
Ctrl+Alt+O
Changer de thème
Ctrl+Alt+D
<!DOCTYPE html> <html> <body> <h1>Tableaux JavaScript</h1> <h2>La méthode findLast()</h2> <p id="demo"></p> <script> const temp = [27, 28, 30, 40, 42, 35, 30]; let high = temp.findLast(x => x > 40); document.getElementById("demo").innerHTML = "La dernière température supérieure à 40 était " + high; </script> </body> </html>