<!doctype html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<input type="button" value="按钮" onclick="alert('行内js');">
<script>
//输出10个helloWord
/*var i = 1;
while(i <= 10){
i++;
console.log("hello word");
}*/
/*var i = 1;
do{
console.log("hello word")
i++;
}
while(i <= 10);
*/
/*for(var i = 1;i <= 10; i++){
console.log("hello word");
}*/
/* var i = 1;
var str = "";
while(i <= 10){
i++;
str += "helloword\n";
}
console.log(str);
*/
//输出1~100的奇数
/* var i = 1;
while(i <= 100){
if(i % 2){
console.log(i + "");
}
i++;
}
*/
/* var i = 1;
while(i <= 100){
if(i % 2 == 0){