Last active
August 29, 2015 14:09
-
-
Save mr-fool/0ee5aafa747d4bb3b943 to your computer and use it in GitHub Desktop.
javascript greeting fun
This file contains hidden or 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
| <html><body><pre><script src="greeting.js"> | |
| </script></pre></body></html> |
This file contains hidden or 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
| var name = prompt("Please enter your name") | |
| function greet(who) { | |
| document.writeln("Hello " + who +"<br>"); | |
| } | |
| greet(name); | |
| document.writeln("Bye"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment