Skip to content

Commit fed2bd4

Browse files
committed
Add new para
1 parent d82238d commit fed2bd4

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

Index.html

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Document</title>
7+
</head>
8+
<body>
9+
<button onclick="
10+
const randomNumber=Math.random();
11+
12+
if(randomNumber<0.5){
13+
result='Head';
14+
}else {
15+
result='Tail';
16+
} console.log('Computer chooses'result);
17+
18+
let guess='Head';
19+
if(guess===result){
20+
console.log('You win.');
21+
}else {
22+
console.log('You lose.');
23+
}
24+
">Head</button>
25+
<button onclick="
26+
const randomNumber =Math.random();
27+
28+
if(randomNumber <0.5){
29+
result='Head';
30+
}else {
31+
result='Tail';
32+
} console.log('Computer chooses'result);
33+
34+
let guess ='Tail';
35+
if(guess ===result){
36+
console.log('You win.');
37+
}else{
38+
console.log('You lose.');
39+
}
40+
">Tail</button>
41+
</body>
42+
</html>

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
# https-file
1+
# https-file
2+
My some works

0 commit comments

Comments
 (0)