Skip to content

Instantly share code, notes, and snippets.

View hodbby's full-sized avatar

Hod hodbby

  • 04:53 (UTC +03:00)
View GitHub Profile
@hodbby
hodbby / gist:2922600
Created June 13, 2012 07:44
Address book
<html>
<head><title>Address Book</title></head>
<body>
<script type="text/javascript">
var contacts = [];
function printPerson (person) {
document.write("First Name is: " + person.firstName)
document.write("</br>Last Name is: " + person.lastName)
@hodbby
hodbby / gist:2922681
Created June 13, 2012 08:04
Blackjack-1
<html>
<head><title>Blackjack</title></head>
<body>
<script type="text/javascript">
document.write ("This is Balckjack game.</br>");
document.write ("The points are as follow:</br>");
document.write ("Ace(1) = 11.</br>");
document.write ("King(12), Queen(11) and Prince(10) = 10.</br>");
document.write ("The rest by their own number values.</br></br>");
@hodbby
hodbby / gist:2930375
Created June 14, 2012 13:42
cashRegister
<html>
<head><title>cashRegister</title></head>
<body>
<script type="text/javascript">
function StaffMember(name,discountPercent){
this.name = name;
this.discountPercent = discountPercent;
}