/documentation/js/expressions.js
http://github.com/jashkenas/coffee-script · JavaScript · 18 lines · 15 code · 2 blank · 1 comment · 6 complexity · b67b469a9a5714ac706e6c24ab48617a MD5 · raw file
- // Generated by CoffeeScript 1.10.0
- var eldest, grade;
- grade = function(student) {
- if (student.excellentWork) {
- return "A+";
- } else if (student.okayStuff) {
- if (student.triedHard) {
- return "B";
- } else {
- return "B-";
- }
- } else {
- return "C";
- }
- };
- eldest = 24 > 21 ? "Liz" : "Ike";