Sha256: fd6368727b885f495d71233476463aaa65c3d34d52fc5008f53154b0d7f09595

Contents?: true

Size: 471 Bytes

Versions: 4

Compression:

Stored size: 471 Bytes

Contents

//Written using Nila. Visit http://adhithyan15.github.io/nila
(function() {
  var container, fill, liquid;

  // This is a demo of default parameters

  fill = function(container,liquid) {
    if (container == null) {
      container = "cup";
    }
    if (liquid == null) {
      liquid = "coffee";
    }
    return console.log("Filling " + (container) + " with " + (liquid));
  };

  fill();

  fill("cup");

  fill("bowl","soup");

}).call(this);

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nilac-0.0.4.3.3 shark/test_files/correct_default_parameters.js
nilac-0.0.4.3.0 shark/test_files/correct_default_parameters.js
nilac-0.0.4.2.9 shark/test_files/correct_default_parameters.js
nilac-0.0.4.2.8 shark/test_files/correct_default_parameters.js