Bases de JavaScript 1 - Découverte du langage
/* hello-wilder.js */
// Define some variables
const myMovie = 'Pulp Fiction';
const mDate = '1994';
const mReal = 'Quentin Tarantino ';
const message = 'My favorite movie is ' + myMovie + ' release on ' + mDate + ' realized by '+ mReal;
// Display a popup
alert(message);
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Hello Wilder</title>
</head>
<body>
<script src="hello-wilder.js"></script>
</body>
</html>