Return vs Not return

Edit on GitHub

Setup

Tests

  • Return

    (function() {
    return console.log('hi mom!');
    })();
  • Not return

    (function() {
    console.log('hi mom!');
    })();