Using conditionals inside a loop
<p>I am trying to achieve a check with the <code>if...else</code> statement that only squares the odd numbers between 100 and 150, otherwise the number is just printed.</p>

<p>How can I revise my <code>if</code> statement to achieve this please? An educated guess is that an operator or combination of operators are used.</p>

<pre><code> for (i=100; i&lt;=150; i++)
    {
        if (i === 0)
        {
            console.log(i * i);
        }
        else
        {
            console.log(i);
        }
    }
</code></pre>
