mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
29 lines
500 B
CoffeeScript
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 |