File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-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 > Document</ title >
7+ < script >
8+ //const functionName = (parameters) => {
9+ // function body
10+ //};
11+
12+ // Arrow function
13+
14+ const msg = ( ) => {
15+ console . log ( "welcome to codeswithpankaj.com" )
16+ }
17+
18+ msg ( ) ;
19+
20+ // Arrow function to calculate the sum of two numbers
21+ const sum = ( a , b ) => {
22+ console . log ( a + b )
23+ } ;
24+
25+ sum ( 78 , 90 ) ;
26+
27+ // return
28+ // Arrow function to calculate the sum of two numbers
29+ const mul = ( a , b ) => {
30+ return a * b ;
31+ } ;
32+
33+ console . log ( mul ( 34 , 56 ) )
34+
35+
36+ </ script >
37+ </ head >
38+ < body >
39+
40+ </ body >
41+ </ html >
You can’t perform that action at this time.
0 commit comments