Skip to content

Commit 6a39d17

Browse files
committed
script learning
1 parent 7103bd6 commit 6a39d17

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// console.log(1 + "1")
2+
3+
a = "1"
4+
5+
b = "2"
6+
7+
console.log(+a + +b)

index2.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
<script src="script.js"></script>
10+
</body>
11+
</html>

script.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"use strict"
2+
3+
currentUserName = prompt("What's your name?", "")
4+
5+
alert(currentUserName)

0 commit comments

Comments
 (0)