ã¯ããã« ãã©ã¤ãã¼ãã¡ã³ãã«ã¤ãã¦ã¡ã¢ä»£ããã«é©å½ãªãµã³ãã«ãæ¸ãã¦ã¿ã¾ããã ãµã³ã㫠以ä¸ã®CoffeeScriptããçæãããJavaScriptã®ã³ã¼ãã確èªãããã®ã§ããã°ãCoffeeScriptã®å ¬å¼ãã¼ã¸ã®TRY COFFEESCRIPTã«ä»¥ä¸ã®ã³ã¼ããè²¼ãã¤ãã¦ãã ããã class Person # ã¯ã©ã¹å¤æ° @DEAD = 0 @ALIVE = 1 # ã¤ã³ã¹ã¿ã³ã¹å¤æ°ã¯ã³ã³ã¹ãã©ã¯ã¿å¼æ°ã§ç´æ¥æå®ã§ãã constructor: (@name, _age, _state=Person.ALIVE) -> # ã¤ã³ã¹ã¿ã³ã¹å¤æ°ããããªã㯠# @name # ã¤ã³ã¹ã¿ã³ã¹å¤æ°ããã©ã¤ãã¼ã # _age, _state # ã¤ã³ã¹ã¿ã³ã¹ã¡ã½ããããã©ã¤ãã¼ããéå ±ç¨ _increment = -> ++_age # ã¤ã³ã¹ã¿ã³ã¹ã¡ã½ããããããªãã¯ãéå ±ç¨ @g
{{#tags}}- {{label}}
{{/tags}}