xxxxxxxxxx
function greet() {
return 'hello world';
}
// ⛔️ Error: Expected 0 arguments, but got 1.ts(2554)
greet('James Doe');
// if you encounter this error you probably put an argument in a function which does not take any arguments
// You might want to fix this by calling greet(); without arguments or adding "..." before the arguments
// to take in an unlimited amount of args
function greet(args: any[]){
return args
}
greet("Hello");