Run with iocaml -js full <notebook>

A short demo showing that the LWT and Js_of_ocaml syntax extensions are active.


In [1]:
Firebug.console##log (Js.string "hello world!")


hello world!
Out[1]:
- : unit = ()

In [2]:
let a = 
    lwt b = Lwt.return 0 in 
    Lwt.return b


Out[2]:
val a : int Lwt.t = <abstr>

In [ ]: