File tree 2 files changed +42
-0
lines changed
2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change
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 >
You can’t perform that action at this time.
0 commit comments