Im trying a very basic recursion question but while running it on VS code, its throwing all kinds of syntax errors but it works perfectly fine on replit, any reason why this is happening? I think the code i correct but why does VS code throw the errors?
The code on VS:(https://i.sstatic.net/I94NVrWk.png)
New contributor
Yashita Mandavilli is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.