In an “If” statement, is it better to use a return statement to end the code, or use “else” instead?

后端 未结 0 1208
闹比i
闹比i 2020-12-18 08:58

just curious as I believe both of these functions do the same thing... I just am curious which is better/ more optimized.

fetch("AN API").then((resp         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题