Skip to content

Instantly share code, notes, and snippets.

@ConnorFM
Created April 22, 2019 15:27
Show Gist options
  • Save ConnorFM/41dec2e75b37fd0f488b232eff5b202d to your computer and use it in GitHub Desktop.
Save ConnorFM/41dec2e75b37fd0f488b232eff5b202d to your computer and use it in GitHub Desktop.
JS Basics
// Define some variables
const movieName = 'The Boondock Saints';
const releaseYear = '1999';
const director = 'Troy Duffy'
const message = 'The movie ' + movieName + ' ,directed by' + director + ' and released in ' + releaseYear + ' is my favourite movie' ;
// Display a popup
alert(message);
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>The Boondock Saints</title>
</head>
<body>
<script src="boondock.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment