Martin Kavalar / Jan 15 2021
ClojureScript + JavaScript
js/window
ClojureScript
→
console.log("hello")
Javascript
→
(.log js/console "hello")
ClojureScript
→
window.location.host
Javascript
→
(.-host (.-location js/window))
ClojureScript
→
(-> js/window .-location .-host)
ClojureScript
→
(.. js/window -location -host)
ClojureScript
→