JS的数字类型

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script>
var num1 = 3.14
var num2 = 100
console.log(typeof num1,typeof num2)

</script>
</head>
<body>
<h1>welcome to JS!</h1>
</body>
</html>

 

posted @ 2022-05-31 20:47  呼长喜  阅读(19)  评论(0编辑  收藏  举报