Skip to content

Commit 3b0aafc

Browse files
authoredJul 9, 2024
Add files via upload
add
1 parent a2b85c5 commit 3b0aafc

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
 

‎Number.html

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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>Number</title>
7+
</head>
8+
<body>
9+
<script>
10+
var a = 100;
11+
var b = 2000;
12+
var c = 3000;
13+
var d = new Number(10000);
14+
document.write(a +"<br>");
15+
document.write(b +"<br>");
16+
document.write(c +"<br>");
17+
document.write(d +"<br>");
18+
</script>
19+
20+
</body>
21+
</html>

‎isNaN() method.html

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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>isNaN()</title>
7+
</head>
8+
<body>
9+
<script>
10+
var a = "Hello";
11+
if(isNaN(a)){
12+
document.write("Not a Number");
13+
14+
}
15+
else{
16+
document.write("legal Number");
17+
}
18+
</script>
19+
20+
</body>
21+
</html>

0 commit comments

Comments
 (0)