返回值就是函数的执行结果,js中函数可以没有返回值
    使用return语句后,返回值后面的语句不会执行

    1. <script>
    2. /* 返回值就是函数的执行结果,js中函数可以没有返回值
    3. 使用return语句后,返回值后面的语句不会执行
    4. */
    5. function show(){
    6. return "hello world"
    7. console.log(3) //无返回值
    8. }
    9. console.log(show()) //hello world
    10. function go(x){
    11. console.log(x)
    12. }
    13. </script>