How can I improve this JavaScript code? : <pre><code>for(var i = 1; i &lt;= 20; i++){
    switch (i) {
        case 3:
        case 6:
        case 9:
        case 12:
        case 18:
            console.log("Fizz");
            break;

        case 5:
        case 10:
        case 20:
            console.log("Buzz");
            break;

        case 15:
            console.log("FizzBuzz");
            break;

        default:
        console.log(i);
    }
}
</code></pre>

<p>I am supposed to print numbers from 1-20.</p>

<p>These are the conditions.</p>

<p>if a number is divisible by 3, then i need to print "Fizz"</p>

<p>If a number is divisible by 5, then I need to print "Buzz"</p>

<p>if a number is divisible by both 3 and 5, then I need to print "FizzBuzz".</p>

<p>I came up with the aforementioned code, but I think it can be improved.</p>
