随笔分类 - CoffeeScript
摘要:Classes - Part ICreate aCoffeeclass that will produce coffee objects. In that class, create aconstructorthat takesnameandlevelas arguments and sets th...
阅读全文
摘要:jQuery & Object NotationConvert the existing JavaScript code to CoffeeScript.# jQuery(function($){# $('.drink a').click(function(){# var newStyl...
阅读全文
摘要: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...
阅读全文
摘要:ConditionalsMake sure thealertfunction is called onlyif caffeineLevel > 5.alert 'High Caffeine Level' if caffeineLevel > 5Conditionals - Part IICoffee...
阅读全文
摘要:JS to Coffee IConvert the commented jQuery code below to CoffeeScript.# jQuery(function($) {# $('#newCoffee a').click(function() {# alert('New c...
阅读全文
摘要://Variable message = "Ready for some Coffee?"alert(message)/*//in Javascriptvar message = "Ready for some Coffee?";alert(message);*//** We can see ...
阅读全文