Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4498223
test_obj_closure.cjs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
169 B
Referenced Files
None
Subscribers
None
test_obj_closure.cjs
View Options
// Test object literal with method closure
let x = 100;
let obj = {
method: function() {
return x;
}
};
Ant.println(obj.method()); // Should print 100
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 3, 7:34 AM (6 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
530689
Default Alt Text
test_obj_closure.cjs (169 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment