Is this an expected behavior with return keyword on JavaScript
<p>I was on the verge of pulling all of my hair today over a silly mistake. The thing is that I am not sure if this is an expected behavior.</p>

<p>With my habits on C#, I have written the following javascript code and tried to understand what is going wrong because it didn't return anything and even didn't write any error into the console:</p>

<pre><code>this.fullName = ko.computed(function () {

    return
        this.firstName() + " " + this.lastName();

}, this);
</code></pre>

<p>Then (after half an hour), I changed the code a below and it worked:</p>

<pre><code>this.fullName = ko.computed(function () {

    return this.firstName() + " " + this.lastName();

}, this);
</code></pre>

<p>Is this an expected behavior?</p>
