1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { createValFromCljs } from "https://esm.town/v/liamdanielduffy/createValFromCljs";
const cljs = `
(defn fizz-buzz [n]
(condp (fn [a b] (zero? (mod b a))) n
15 "fizzbuzz"
3 "fizz"
5 "buzz"
n))
(println (fizz-buzz 10))
`;
await createValFromCljs("fizzBuzz.clj", cljs);
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
February 26, 2024