*print-fn*

dynamic varsince v0.0-927Edit

A var representing the function used to print output, which may differ between runtime environments. Use enable-console-print! to set it to print to console/stdout.

(enable-console-print!)
(println "printed to stdout in Node, or to browser console")

See Also:


Source docstring:
Each runtime environment provides a different way to print output.
Whatever function *print-fn* is bound to will be passed any
Strings which should be printed.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defonce
  ^{:dynamic true}
  *print-fn* nil)