The description is Unreachable code,中文意思就是无法达到的代码. This means that this code will never run.
Look at the specific code you wrote. Behind this debugger放在了return 0, it will definitely not work.
There are two solutions. One is to verify your debugger语句放到return 0前面,要么就修改掉eslintabout this entry. It even gives you a link to the detailed description of this item: no-unreachable
This is an error reported by eslint. There will be no problems in executing your code, but you will not get the results you expected. The reason is as shown in the picture. The debugger line is after return and can never be executed. You should change the break point.
Hey...look at the error report in English...
The description is
Unreachable code
,中文意思就是无法达到的代码
.This means that this code will never run.
Look at the specific code you wrote. Behind this
debugger
放在了return 0
, it will definitely not work.There are two solutions. One is to verify your
debugger
语句放到return 0
前面,要么就修改掉eslint
about this entry. It even gives you a link to the detailed description of this item:no-unreachable
This is an error reported by eslint. There will be no problems in executing your code, but you will not get the results you expected. The reason is as shown in the picture. The debugger line is after return and can never be executed. You should change the break point.