01—Hbuilder—js—除法、取余数

2022-07-29,,,

	<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>哐一下,你就知道</title>
		<link rel="shortcut icon" href="//www.baidu.com/favicon.ico" type="image/x-icon"/>
	</head>
	<body>
	</body>
</html>
<script type="text/javascript">
	var a = prompt("今年多大了?")
	console.log(a);
	/*判断变量a的类型*/
	console.log(typeof a); 
	/*除法*/
	console.log(6/3.14);
	/*取余数*/
	console.log(3%4);
	console.log(5%4);
</script>

本文地址:https://blog.csdn.net/weixin_45515187/article/details/109249991

《01—Hbuilder—js—除法、取余数.doc》

下载本文的Word格式文档,以方便收藏与打印。