Signs of Uber Nerd/Geek-dom:
I am trying to teach myself JavaScript from a book. About 10 pages in, I got bored of the generic book examples. My notes started to look like this:
Example of Prompt:
Example of Conditional:
To which a friend added:
It's nice to know I'm not alone.
Example of Prompt:
var ans = prompt("Air speed velocity of an unladen swallow?","");
if (ans) {
alert("You said " + ans);
}
else {
alert("You have been cast into the Gorge of Eternal Peril.");
}
Example of Conditional:
if(confirm("Are you sure you want to meddle in the affairs of the dragon?")) {
alert ("You said yes, probably unwise.");
}
else {
alert ("Backing off NOW, you big snivelling wussy?!");
}
To which a friend added:
Dragon.out.println("Mmmmmm, crunchy! Needs ketchup...")
It's nice to know I'm not alone.
My reply should have been more along the lines of
ReplyDeleteDragon.reply
{
if(person.ans=true)
{then (System.out.println("Mmmmmm, crunchy! Needs ketchup..."))
} else {
(System.out.println("Come back you yellow belly and fight like a man!"))
}
}
...or something... JAVA is HARD!
(formatting FAIL!... stupid computers...)
lol . . .
ReplyDeleteI was actually finding it surprisingly understandable. And then Bri said it sounded a lot like ActionScript (Flash scripting stuff).
*sigh* I was hoping I was just clever. ;)