mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
documentation waypoint
This commit is contained in:
parent
dcc70e5ab0
commit
c7fa9c320a
42 changed files with 1026 additions and 53 deletions
12
documentation/js/expressions.js
Normal file
12
documentation/js/expressions.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
(function(){
|
||||
var grade = function(student) {
|
||||
if (student.excellent_work) {
|
||||
return "A+";
|
||||
} else if (student.okay_stuff) {
|
||||
return "B";
|
||||
} else {
|
||||
return "C";
|
||||
}
|
||||
};
|
||||
var eldest = 24 > 21 ? "Liz" : "Ike";
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue