When using console.log(variable: any) in Typescript, I am concerned about potential errors and avoiding the need for try{}catch blocks throughout my code. Will console.log(any) trigger any errors or will it successfully print any input provided?
public displayInfo(data:any){
console.log(data);
}