Fork me on GitHub

I'm reading Learn Clojurescript and an exercise asks to: "Create a JavaScript object from the REPL and make it available as `window.myVar`." I am struggling with how to make a global var. Everything I try is creating a namespaced var like cljs-practice.core.myVar . How do I make them global?


Hey there! Take a look at the set! function


Ahh, thank you. I don't know why I was thinking set! was only to alter an already existing js var.