13 lines
288 B
Text
13 lines
288 B
Text
grade = (student, period=(if b? then 7 else 6)) ->
|
|
if student.excellentWork
|
|
"A+"
|
|
else if student.okayStuff
|
|
if student.triedHard then "B" else "B-"
|
|
else
|
|
"C"
|
|
|
|
class Animal extends Being
|
|
constructor: (@name) ->
|
|
|
|
move: (meters) ->
|
|
alert @name + " moved #{meters}m."
|