I want to use an object as function argument. When I define an object outside fucntion and then pass it as an argument, it works fine:
var obj = { a: 0 } fun