当前位置:网站首页>Coffee script unmatched outent error

Coffee script unmatched outent error

2022-06-25 06:37:00 Rich in starch

problem :

I'm getting the error SyntaxError: Unmatched OUTDENT on line 9 when I try to compile the following coffeescript code. When I try to compile the following coffeescript Code , I SyntaxError: Unmatched OUTDENT on line 9 Received error SyntaxError: Unmatched OUTDENT on line 9 OUTDENT.I'm not sure what I'm doing wrong. I'm not sure what I did wrong .the indentation seems to be right, and I have everything where I want it. Indentation seems to be correct , I have everything I want .

row_possibilities = (grid) ->  for rows in [0..8] by 1    for columns in [0..8] by 1      if(Array.isArray(grid[rows][columns])        for possible_val in grid[rows][columns] by 1          grid = unique_row_possibility(grid, rows, columns, possible_val)          if(Array.isArray(grid[rows][columns]) == false)            break  return grid

What the code is supposed to do is run the three for loops and breaks the innermost for loop if a certain condition happens. What the code should do is run three for loop , If something happens , To break the innermost for loop .

After all the for loops run. In all for After the cycle .I want to return the variable grid. I want to return to the variable grid .I've double checked the spacing, and I tried it out on repl.it, but I can't figure it out. I've checked the spacing carefully , I am here repl.it Have a try , But I can't figure it out .


Solution :

Reference resources : https://stackoom.com/en/question/xs9h
原网站

版权声明
本文为[Rich in starch]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202201234260280.html