函数((a,b)=>a*b)(6,2)

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			console.log(((a,b)=>a*b)(6,2))//匿名函数,输出12
			// 等于
			function fun11(a,b)
			{
     
     
				return a*b;
			}
			console.log(fun11(6,2));//输出12
		</script>
	</body>
</html>

在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_45688164/article/details/109157794
ab