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>Fonctions JavaScript</h1> <h2>La fonction fléchée</h2> <p>Cet exemple montre une fonction fléchée avec un paramètre.</p> <p id="demo"></p> <script> let hello = (val) => "Bonjour " + val; document.getElementById("demo").innerHTML = hello("Univers !"); </script> </body> </html>