Sunday 15 July 2012

Clojure Values in Clojurescript -


I am testing Ohm () and I did not understand what happens here:

I have a closing code that uses an API and puts data into a vector. Then in my cloverscript script I try:

  (DRF URL (map (FN [C] (C: URL)) BILLINGS (DEAF ANN (FIRST URL)) (printline N) ;; Correct value (.log js / console n);; can anyone explain this behavior?  

thanks

If you are using REPL, then println assumes that you have not released (enable-console-print!) - Usually print in your RPL However, console.log goes to your browser's console output.

When you call (.log js / console n), then REPL prints Return value of console.log , so that you can see zero .


No comments:

Post a Comment