In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "You'll see that the clause of the
if statement does not need be enclosed within parentheses".
A block of code is set as follows:
gpaScoreAverage = (scores...) -> total = scores.reduce (a, b) -> a + b total / scores.length
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
create: (e) -> $input = $(event.target) val = ($.trim $input.val())
Any command-line input or output is written as follows:
coffee -co public/js -w src/
New terms and important ...