aboutsummaryrefslogtreecommitdiff
path: root/js/tests/stepA_mal.mal
blob: f785292d4868f375046990ee497f1d27cd9ca9b6 (plain)
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)