We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49c7e63 commit 63c1e21Copy full SHA for 63c1e21
1 file changed
README.md
@@ -20,8 +20,40 @@ console.log(addition(10, 90)); // 100
20
21
```js
22
function addition(a, b) {
23
- let add = a + b;
24
- return (add)
+ let add = a + b;
+ return (add)
25
+};
26
+```
27
+
28
+</details>
29
30
+---
31
+**[⬆ Back to Top](#header)**
32
33
34
35
36
+##### 02. Converts hours into seconds.
37
38
+```js
39
40
+function howManySeconds(hours) {
41
+ //Write Your solution Here
42
43
44
45
+console.log(howManySeconds(12)); // 43200
46
+console.log(howManySeconds(8)); // 28800
47
+console.log(howManySeconds(3)); // 10800
48
49
50
51
+<details><summary style="cursor:pointer">Solution</summary>
52
53
54
55
+ let hoursToSeconds = (hours*3600);
56
+ return(hoursToSeconds)
57
};
58
```
59
0 commit comments