Functioins With Arguments

 function printInfo(name, age) {

  console.log(`${name}'s age is ${age}`);
}
printInfo("abhi", 20);
printInfo("steve", 43);
printInfo("bill");


Comments

Popular posts from this blog

Callback Hell

TODO list with DOM

Refactoring callback hell code