[Solved] Javascript – Uncaught TypeError:string is not a function


You’ve called the method the same name as a parameter, so when you make the recursive call you’re calling the parameter which is either “O” or “X” – not the function. Rename one of them and it should resolve this problem

EDIT: should have said which method. it’s ‘insertMarker’

1

solved Javascript – Uncaught TypeError:string is not a function