随笔分类 -  CoffeeScript

摘要:Classes - Part ICreate aCoffeeclass that will produce coffee objects. In that class, create aconstructorthat takesnameandlevelas arguments and sets th... 阅读全文
posted @ 2014-10-02 14:25 Zhentiw 编辑
摘要:jQuery & Object NotationConvert the existing JavaScript code to CoffeeScript.# jQuery(function($){# $('.drink a').click(function(){# var newStyl... 阅读全文
posted @ 2014-10-01 19:08 Zhentiw 编辑
摘要:Coffee on the RangeCreate an array with numbers 1 until 10 using the inclusive (two dot) range syntax.[1..10]Coffee on the Range IICreate an array wit... 阅读全文
posted @ 2014-09-30 20:44 Zhentiw 编辑
摘要:ConditionalsMake sure thealertfunction is called onlyif caffeineLevel > 5.alert 'High Caffeine Level' if caffeineLevel > 5Conditionals - Part IICoffee... 阅读全文
posted @ 2014-09-30 19:36 Zhentiw 编辑
摘要:JS to Coffee IConvert the commented jQuery code below to CoffeeScript.# jQuery(function($) {# $('#newCoffee a').click(function() {# alert('New c... 阅读全文
posted @ 2014-09-30 04:30 Zhentiw 编辑
摘要://Variable message = "Ready for some Coffee?"alert(message)/*//in Javascriptvar message = "Ready for some Coffee?";alert(message);*//** We can see ... 阅读全文
posted @ 2014-08-14 03:41 Zhentiw 编辑

点击右上角即可分享
微信分享提示