+ 1

Why my code is giving uncaught syntax error- undefined label 'recurs'

I labelled a loop recurs.. recurs: loop I am trying to break this loop using break keyword when a certain condition is satisfied.....but it is giving me error "undefined label 'recurs' " https://code.sololearn.com/WHW72EAY5qM3/?ref=app

9th Aug 2018, 5:46 PM
Sanjeev Kumar
Sanjeev Kumar - avatar
2 ответов
+ 4
Sorry but there's a lot messed up. In permute function you have one parameter but you give two arguments on click event. break statements doesn't take any value. I have no idea why you have "recurs:" and "condtn:" Your syntax is very annoying but when i cleaned it a bit I noticed you were missing parentheses.
9th Aug 2018, 7:33 PM
Toni Isotalo
Toni Isotalo - avatar
+ 2
Toni Isotalo Sorry for the messed up code.... Did the problem get resolved ?. Can you please tell me the line no....where parentheses is missed..?
9th Aug 2018, 7:53 PM
Sanjeev Kumar
Sanjeev Kumar - avatar