File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ function info ( ) {
3+ console . log ( "welcome to codeswithpankaj.com" ) ;
4+ }
5+
6+ // calling function
7+
8+ info ( ) ;
9+
10+ // Function With Parameters
11+
12+ function UserInfo ( Name , age , height ) {
13+ console . log ( `My Name is ${ Name } and I am ${ age } years old and my Height ${ height } ` ) ;
14+ }
15+
16+ // calling function
17+
18+ UserInfo ( "Nishant" , 12 , 4.5 ) ;
19+
20+ // return type
21+
22+ function set_tax ( ) {
23+ return 250 ;
24+ }
25+
26+ console . log ( ` this is tax {set_tax()}` ) ;
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+ < script src ="function.js "> </ script >
8+ </ head >
9+ < body >
10+
11+ </ body >
12+ </ html >
You can’t perform that action at this time.
0 commit comments