File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 > Document</ title >
7+
8+ <!-- add external js file -->
9+
10+ < script src ="index.js "> </ script >
11+
12+ < script >
13+ console . log ( "www.codeswithpankaj.com" ) ;
14+ document . write ( "codeswithpankaj.com" )
15+
16+ </ script >
17+
18+ </ head >
19+ < body >
20+
21+ </ body >
22+ </ html >
Original file line number Diff line number Diff line change 1+ console . log ( "p4n.in" )
Original file line number Diff line number Diff line change 77 < script >
88
99 var name = "joy"
10- document . write ( name + "<br>" )
11- let age = 23
12- document . write ( age + "<br>" )
10+ var age = 12
11+ var height = 4.5
1312
14- height = 4.5 ;
15- document . write ( height + "<br>" )
16-
17- height = 3.4 ;
18- document . write ( height + "<br>" )
19- const number = 9.8
20- document . write ( number + "<br>" )
21- number = 9.6
22- document . write ( number + "<br>" )
13+ console . log ( "your name is : " , name ) ;
14+ console . log ( "your age is : " , age ) ;
15+ console . log ( "your height is : " , height ) ;
2316
2417 </ script >
2518</ head >
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 > @p4n.in</ title >
7+ < script >
8+
9+ name = "joy"
10+ age = 12
11+ height = 4.5
12+
13+ console . log ( "your name is : " , name ) ;
14+ console . log ( "your age is : " , age ) ;
15+ console . log ( "your height is : " , height ) ;
16+
17+ </ script >
18+ </ head >
19+ < body >
20+
21+ </ body >
22+ </ 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 > @p4n.in</ title >
7+ < script >
8+
9+ let name = "joy"
10+ let age = 12
11+ let height = 4.5
12+
13+ console . log ( "your name is : " , name ) ;
14+ console . log ( "your age is : " , age ) ;
15+ console . log ( "your height is : " , height ) ;
16+
17+
18+ </ script >
19+ </ head >
20+ < body >
21+
22+ </ body >
23+ </ 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 > Document</ title >
7+
8+ < script >
9+
10+ number = 90
11+
12+ console . log ( number )
13+
14+ number = 900
15+
16+ console . log ( number )
17+
18+ // constant variable.
19+
20+ const num = 450 ;
21+
22+ console . log ( num )
23+
24+ num = 900
25+
26+
27+
28+ </ script >
29+
30+ </ head >
31+ < body >
32+
33+
34+
35+
36+ </ body >
37+ </ html >
You can’t perform that action at this time.
0 commit comments