Skip to content
Advertisement

Tag: global

Javascript – make function in object global

Let’s say I have an object obj with a function f1 that accept two parameters a and b. The function is called as follows: Now I want to make f1 accessible without calling obj as follows: Is this possible? If so, how may I achieve this? Edit: If yes, is there a way to make all functions in the object

Advertisement