Created
September 12, 2018 18:23
-
-
Save JeromeBATAILLE/2c9df4a6a5c08acc362ec885336e432e to your computer and use it in GitHub Desktop.
js-1 découverte du langage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* hello-wilder.js */ | |
// Define some variables | |
const favouritMovy = 'The Matrix Reloaded'; | |
const year = 2003; | |
const director = 'The Wachowski'; | |
const message = favouritMovy + ', réalisé par ' + director + ', est sorti en ' + year; | |
// Display a popup | |
alert(message); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="fr"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Hello Wilder</title> | |
</head> | |
<body> | |
<script src="hello-wilder.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment