Practice2

 function calcAvg(a,b,c)

{
    let avg=(a+b+c)/3;
    console.log(avg);
}
calcAvg(3,5,6);
calcAvg(12,45,67);


function PrintTable(n) {
  for (let i = 1; i <= 10; i++) {
    console.log(n * i);
  }
}PrintTable(17);



Comments

Popular posts from this blog

Callback Hell

TODO list with DOM

Refactoring callback hell code