For this Question: Complete the given <code>printMultiplesOfThree</code> function. You will be given two arguments <code>beginNum</code>, and <code>endNum</code>. Your task is to loop from <code>beginNum</code> to <code>endNum</code>, and if a number is a multiple of 3, print that number to the console.

Note: While looping through the numbers, <code>beginNum</code> and <code>endNum</code> must not be excluded.The <code>printMultiplesOfThree</code> function takes in two arguments, both numberThe <code>printMultiplesOfThree</code> function should print numbers to the console that lie in the range and is also a multiple of 3.<strong>Example 1:</strong>
let beginNum = 3;
let endNum = 12;

printMultiplesOfThree(beginNum, endNum);

// prints
3
6
9
12

<strong>Example 2:</strong>
let beginNum = 2;
let endNum = 7;

printMultiplesOfThree(beginNum, endNum);

// prints
3
6, I have written this Solution Code: function printMultiplesOfThree(beginNum, endNum) {
  // write your code here
  for (let i = beginNum; i <= endNum; i++) {
    if (i % 3 === 0) {
      console.log(i);
    }
  }
}, In this Programming Language: JavaScript, Now tell me if this Code is compilable or not?