2 ms·
CoffeeScript isn't particular about the specific number of spaces, as long as you're consistent. For example: book.save title: "The Book of the Thous
by jashkenas 16y ago
CoffeeScript isn't particular about the specific number of spaces, as long as you're consistent. For example:
book.save
title: "The Book of the Thousand Nights and One Night"
length: 45
chapters:
"The Fisherman and the Jinni": 1
"The Tale Of The Ensorceled Prince": 13
"The First Kalandar's Tale": 27
Compiles into this JavaScript:
book.save({
title: "The Book of the Thousand Nights and One Night",
length: 45,
chapters: {
"The Fisherman and the Jinni": 1,
"The Tale Of The Ensorceled Prince": 13,
"The First Kalandar's Tale": 27
}
});