I want to have a function with infinite parameters but I don’t want to declare them How do I do this?
function func(){
for(let i = 0; i < params.length; i++){
console.log(param[i]);
}
}
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
I want to have a function with infinite parameters but I don’t want to declare them How do I do this?
function func(){
for(let i = 0; i < params.length; i++){
console.log(param[i]);
}
}