Subj : SM: Define function and property of the same name? To : netscape.public.mozilla.jseng From : "JZ" Date : Mon Mar 17 2003 04:50 pm I'm working on replacing an old proprietary scripting engine with SpiderMonkey. In the old scripting language there are functions and variables of the same name, for example Year() and Year. Is it possible in the JS engine to define both a function and a property of the same name in the same object? Right now, I get the following returned when I get the property Year: function Year() { [native code] } JZ .