Skip to content

Instantly share code, notes, and snippets.

@m-mujica
Last active December 20, 2015 00:29
Show Gist options
  • Select an option

  • Save m-mujica/6042405 to your computer and use it in GitHub Desktop.

Select an option

Save m-mujica/6042405 to your computer and use it in GitHub Desktop.

Revisions

  1. Manuel Mujica revised this gist Jul 19, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion falsy_values.js
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    function sum(x,y) {
    var sum = function sum(x, y) {
    if (!x) {
    x = 200;
    }
  2. Manuel Mujica created this gist Jul 19, 2013.
    11 changes: 11 additions & 0 deletions falsy_values.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    function sum(x,y) {
    if (!x) {
    x = 200;
    }

    if (!y) {
    y = 300;
    }

    return x + y;
    }