Multi-line / Block comments are used when you need to comment on multiple lines that are placed together.
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
<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