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
/
5e
/
5ea0f09eaad0b7500c98a5d824bde54e4ab0a9ba.svn-base
blob
1432de00da4bd9b5540102fc0ce6fd5e09d83dc1
1
// references with functions
2
3
var a = 42;
4
var b = [];
5
b[0] = 43;
6
7
function foo(myarray) {
8
myarray[0]++;
9
}
10
11
function bar(myvalue) {
12
myvalue++;
13
}
14
15
foo(b);
16
bar(a);
17
18
result = a==42 && b[0]==44;