Given an array write a function to print every third element of the array .
function printEveryThirdElement(arr){
// write your code here
}
printEveryThirdElement([2,4,5,6,6,7,7,10,101,0,1]);// 5 7 101
printEveryThirdElement([2,4,5,6,6,7,7,10,101,0,107,55]);// 5 7 101 55