I need to have an object called Map() but it appears there is some function in JavaScript with the same name and when I override it I'm unable to use console (or maybe it's just Opera browser thing). What would be the best way around it? I know I could just use some namespace, but Map is kinda my namespace by itself, so it'd be just too chaotic.
@edit: So I came across this module pattern and I think it may be the best way to use it in my case. Thanks for all the comments anyway.
lowercase_with_underscoresfor normal variables,UPPERCASE_WITH_UNDERSCORESfor constants (whether they are a property of an object or not), and UpperCamelCase for namespaces (I only ever use one root namespace and properties of that object may also be UpperCamelCase subnamespaces).(function(Map){ /* ... */ })( MyOwnMap );