Skip to content

Instantly share code, notes, and snippets.

@essamamdani
Created April 21, 2020 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save essamamdani/823fe0868d726f393b8e374b8846eb5f to your computer and use it in GitHub Desktop.
Save essamamdani/823fe0868d726f393b8e374b8846eb5f to your computer and use it in GitHub Desktop.
Multi-line / Block comments are used when you need to comment on multiple lines that are placed together.
<script>
/* initialize and call a function
which takes users name in a variable
and welcome them on page */
function greetingMessage() {
var name = promp("Type your first name.");
document.write("Welcome to our page " + name + "!");
}
greetingMessage();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment