repo.or.cz
/
tinyjs-rewrite.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
formatting 90% done; encapsulated everything in the TinyJS namespace, and renamed...
[tinyjs-rewrite.git]
/
.svn
/
pristine
/
e1
/
e1e742ca5e4f1854d7f2e66a4d3c6b70b37a47da.svn-base
blob
51b892d7ff64195176712e29ed8ee9d1f8f4b68b
1
function Person(name) {
2
this.name = name;
3
this.kill = function() { this.name += " is dead"; };
4
}
5
6
var a = new Person("Kenny");
7
a.kill();
8
result = a.name == "Kenny is dead";
9