Responding to a Programming Meme

I just read about Eric Florenzano’s programming meme, and it seemed pretty funny. Then I noticed that there is no JavaScript implementation yet - unacceptable! So here it is.

var name = prompt(“Please enter your name:”);
var age = parseInt(prompt(“Please enter your age:”));
 
for (var i = 0; i < age; i++) {
document.write(i + ") Hello, " + name + "<br />&#8220;);
}

Update: Here are a few very cool implementations:

Comments (3)

Speak Your Mind

  • Your address won't be shown, it will be used for Gravatar icons if available.

  • Markdown is allowed.

Header 1    Header 2
========    --------

*italic*    **bold**

> A single level blockquote
>> A nested quote

A link: [example](http://url.com "title")
Or a quick URL: <http://url.com>

1. Numbered list item 1
2. Numbered list item 2

* Unordered list item 1
* Unordered list item 2

Any paragraph with 4 spaces to 
the left is a preformatted code block

Language specific code blocks with 
syntax highlighting are supported too:

@@ python
import antigravity
@@ end