welsonjs/helloworld.coffee
2022-11-29 14:42:34 +09:00

29 lines
500 B
CoffeeScript

fortune = require "lib/fortune.coffee"
song = ["do", "re", "mi", "fa", "so"]
singers = {Jagger: "Rock", Elvis: "Roll"}
bitlist = [
1, 0, 1
0, 0, 1
1, 1, 0
]
kids =
brother:
name: "Max"
age: 11
sister:
name: "Ida"
age: 9
main = (args) ->
console.log song.join(',')
console.log JSON.stringify(singers)
console.log bitlist.join(',')
console.log JSON.stringify(kids)
console.log "Hello world, CoffeeScript"
fortune.sayFortune("foutune!")
exports.main = main