File tree Expand file tree Collapse file tree 3 files changed +61
-9
lines changed
Expand file tree Collapse file tree 3 files changed +61
-9
lines changed Original file line number Diff line number Diff line change @@ -66,15 +66,15 @@ JavaScript Closures.html
6666javascript Comparing For and While.html
6767JavaScript constructor Property.html
6868javascript Converting Numbers to Strings.html
69- # JavaScript Date Output.html
70- # JavaScript Declarations are Hoisted.html
71- # JavaScript DoWhile Loop.html
72- # JavaScript Error Handling.html
73- # JavaScript ForIn Loop.html
74- JavaScript ForOf Loop.html
75- JavaScript Function or Getter.html
76- javascript Function Sequence.html
77- JavaScript Functions.html
69+ JavaScript Date Output.html
70+ JavaScript Declarations are Hoisted.html
71+ JavaScript DoWhile Loop.html
72+ JavaScript Error Handling.html
73+ JavaScript ForIn Loop.html
74+ # JavaScript ForOf Loop.html
75+ # JavaScript Function or Getter.html
76+ # javascript Function Sequence.html
77+ # JavaScript Functions.html
7878JavaScript Getter (The get Keyword).html
7979JavaScript in Head.html
8080JavaScript Initializations are Not Hoisted.html
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+
4+ < body >
5+
6+ < h2 > JavaScript Functions</ h2 >
7+
8+ < p > This example calls a function which performs a calculation, and returns the result:</ p >
9+
10+ < p id ="demo "> </ p >
11+
12+ < script >
13+ function myFunction ( p1 , p2 ) {
14+ return p1 * p2 ;
15+ }
16+ document . getElementById ( "demo" ) . innerHTML = myFunction ( 4 , 3 ) ;
17+ </ script >
18+
19+ </ body >
20+
21+ </ html >
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+
4+ < body >
5+
6+ < h2 > JavaScript Function Sequence</ h2 >
7+
8+ < p > JavaScript functions are executed in the sequence they are called.</ p >
9+
10+ < p id ="demo "> </ p >
11+
12+ < script >
13+ function myDisplayer ( some ) {
14+ document . getElementById ( "demo" ) . innerHTML = some ;
15+ }
16+
17+ function myFirst ( ) {
18+ myDisplayer ( "Hello" ) ;
19+ }
20+
21+ function mySecond ( ) {
22+ myDisplayer ( "Goodbye" ) ;
23+ }
24+
25+ myFirst ( ) ;
26+ mySecond ( ) ;
27+ </ script >
28+
29+ </ body >
30+
31+ </ html >
You can’t perform that action at this time.
0 commit comments