It's hard to write console.log
every time so I created a function for it,
function showi(input){
console.log(input);
}
showi('hello');
But the problem is that, It can't pass multiple arguments. For example:
function showi(input){
console.log(input);
}
let array1 = ['a', 'b', 'c'];
for(const [index, value] of array1.entries()){
showi(index, value);
}
//value will also print if I use console.log instead of `showi` function
How can I pass multiple values in showi
function?