In this typescript example, let us modify the previous multiplication example a little bit by changing the type of one of its parameters to any type instead of a number type.
function multiply(a:any, b:number, c:number) : number {
return a * b * c
}
console.log(multiply("hello",3,5))
As you can see that after the changes from type number to type any, you can then enter any type of variable into the first parameter and will not get any error.
The downside of this is it will also create unwanted outcomes from the program!
NaN
Thus it is better to avoid using the any type if possible and stick to the correct type instead in your program.