Skip to content

Commit e16a462

Browse files
committed
lotto
1 parent ee78ad9 commit e16a462

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

app.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
console.log("hello Prame")
2+
console.log("hello Prame")
3+
console.log("hello Prame")
4+
var age = (4+2*2/2*2+4+1-5+19)+91
5+
var name = "Prame"
6+
var FirstName = "Utcha"
7+
var LastName = "Kruepunsak"
8+
console.log(age)
9+
console.log(typeof age)
10+
console.log(FirstName)
11+
console.log(LastName)
12+
//alert(FirstName +" "+ LastName)
13+
var x = 20
14+
{
15+
var x = 2
16+
}
17+
let lotto_number = prompt("กรอกเลขที่ต้องการซื้อ")
18+
document.getElementById("result").innerHTML = Math.floor(Math.random()*100)

index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Document</title>
8+
9+
</head>
10+
<body>
11+
<h1>Hello Prame</h1>
12+
<p>เลขที่ถูกรางวัลคือ</p>
13+
<p id = "result"></p>
14+
<script src="app.js"></script>
15+
</body>
16+
</html>

0 commit comments

Comments
 (0)