Why doesn't a Javascript return statement work when the return value is on a new line?

前端 未结 3 1488
隐瞒了意图╮
隐瞒了意图╮ 2020-11-22 12:35

Consider the following JavaScript:

3条回答
  •  耶瑟儿~
    2020-11-22 13:07

    The command line of the javascript can not be broken by line breaks. But arguments of functions can be broken, not highly recommended (done in your example).

提交回复
热议问题