File tree 3 files changed +16
-1
lines changed
3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 45
45
| Problem - 41 | [ Find month name. ] ( https://github.com/anasmak04/Problem-solving-with-JavaScript/blob/master/problem-41.js ) |
46
46
| Problem - 42 | [ Multiplication table. ] ( https://github.com/anasmak04/Problem-solving-with-JavaScript/blob/master/problem-42.js ) |
47
47
| Problem - 43 | [ Fibonacci ] ( https://github.com/anasmak04/Problem-solving-with-JavaScript/blob/master/problem-43.js ) |
48
+ | Problem - 44 | [ swap ] ( https://github.com/anasmak04/Problem-solving-with-JavaScript/blob/master/problem-44.js ) |
49
+ | Problem - 45 | [ max two numbers ] ( https://github.com/anasmak04/Problem-solving-with-JavaScript/blob/master/problem-45.js ) |
48
50
49
- <!-- | Problem - 44 | | -->
51
+
52
+ <!-- | Problem - 46 | | -->
Original file line number Diff line number Diff line change
1
+ let a = 1 ;
2
+ let b = 2 ;
3
+ let c = a ;
4
+ a = b
5
+ b = c
6
+ console . log ( a , b )
Original file line number Diff line number Diff line change
1
+ function maxN ( a , b ) {
2
+ return a > b ? `max numbers : ${ a } ` : `max numbers : ${ b } `
3
+ }
4
+
5
+ const result = maxN ( - 1 , 4 ) ; //// OUTPUT SHOULD BE A
6
+ console . log ( result )
You can’t perform that action at this time.
0 commit comments