1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
;; Testing basic bash interop (js* "7") ;=>7 (js* "'7'") ;=>"7" (js* "[7,8,9]") ;=>(7 8 9) (js* "console.log('hello');") ; hello ;=>nil (js* "foo=8;") (js* "foo;") ;=>8 (js* "['a','b','c'].map(function(x){return 'X'+x+'Y'}).join(' ')") ;=>"XaY XbY XcY" (js* "[1,2,3].map(function(x){return 1+x})") ;=>(2 3 4)