01—Hbuilder—js—除法、取余数
程序员文章站
2022-03-22 10:18:09
<!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