Javascript elseif/if else help needed
<p>I'm quite new to coding and I've never understood what's the proper way to do the following:</p>

<pre><code>if (something == true) {
    DoSomething();
} else {
    if (something2 == true) {
        DoSomething2();
    }
    DoSomethingAnyways();
}
</code></pre>

<p>I've heard using <code>else if</code> is the right way to do this, but how can I execute the <code>DoSomethingAnyways();</code> if I use <code>else if</code>?</p>

<p>Basically what I'm asking is how can I write this using else if and have the exact same effect?</p>

<pre><code>if (something == true) {
    DoSomething();
} else if (something2 == true) {
    DoSomething2();
    DoSomethingAnyways(); //&lt;-- Where do I put this line of code?
}
</code></pre>