You ask for links - for primitive values, this is not directly possible in Javascript. Possible w / r / t objects:
C:\WINDOWS>jsdb
js>a = []
js>b = {refToA: a}
[object Object]
js>b.refToA.push(3)
1
js>a
3
js>a.push(4)
2
js>b.refToA
3,4
js>
b refToA, a; , b.refToA a . , b.refToA, a. :
js>x = {y: 3, toString: function() { return 'y='+this.y; }}
y=3
js>a = [x]
y=3
js>b = [3,x]
3,y=3
js>a[0].y = 22
22
js>b
3,y=22
js>b[1].y = 45
45
js>a
y=45
a[0] b[1] , .
, , , , ( ) , . , . (, ) , .