* Nashorn * Nashorn x2 * Nashorn added trailing newlines * Cleanup * Formatted script lines * Change system outs to asserts * Change Nashorn to be Junit tests * Remove empty test
16 lines
189 B
JavaScript
16 lines
189 B
JavaScript
var first = {
|
|
name: "Whiskey",
|
|
age: 5
|
|
};
|
|
|
|
var second = {
|
|
volume: 100
|
|
};
|
|
|
|
Object.bindProperties(first, second);
|
|
|
|
print(first.volume);
|
|
|
|
second.volume = 1000;
|
|
print(first.volume);
|