DISQUS

DISQUS Hello! Life is grand is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

Functional objects

Started by paulmwatson · 10 months ago

It is obvious when you think about it but functions are objects in JavaScript. So a function can have members. e.g.
var f = function()
{
    return 2;
}
f.g = function(x)
{
    return x + f( ... Continue reading »

1 comment

Add New Comment

Returning? Login