返回值就是函数的执行结果,js中函数可以没有返回值
使用return语句后,返回值后面的语句不会执行
<script>/* 返回值就是函数的执行结果,js中函数可以没有返回值使用return语句后,返回值后面的语句不会执行*/function show(){return "hello world"console.log(3) //无返回值}console.log(show()) //hello worldfunction go(x){console.log(x)}</script>
