Here is the snippet of my code along with the error message I am encountering.
quicksort(low:number,high:number){
if(low<high){
let pi=this.partition(low,high);
this.quicksort(low,pi-1);
}
}
partition(low:number,high:number){
/* implementing partition logic here */
}
https://i.sstatic.net/G50IE.png
What steps should I take to resolve this issue? Is it not feasible to define local number variables in TypeScript?