How can I create a global object, attached to the window, and attach a string and a function to that object, in ClojureScript?
For example, an myobject that looks like:
{"foo": function () {..},
"bar": "somestring"}
myobject.foo => function () { .. }
myobject.bar => "somestring"
Here's the JavaScript that generates an object attached to the window. It has too properties.
foowhich is a function and.barwhich is a string.