Skip to content

Commit

Permalink
Merge pull request #1 from anshuman9999/tsc
Browse files Browse the repository at this point in the history
change to typescript
  • Loading branch information
pandeymangg committed Dec 1, 2021
2 parents 44e5674 + 0319ac4 commit 3b5d638
Show file tree
Hide file tree
Showing 5 changed files with 408 additions and 107 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
*.env
*.env
index.js
9 changes: 5 additions & 4 deletions index.js → index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ async function getResponse() {
}

let [minutes, seconds] = [
parseInt(totalSeconds / 60),
parseInt(totalSeconds % 60),
Math.floor(totalSeconds / 60),
Math.floor(totalSeconds % 60),
];

let hours = parseInt(minutes / 60);
minutes = parseInt(minutes % 60);
let hours = Math.floor(minutes / 60);
minutes = Math.floor(minutes % 60);

console.log(hours, minutes, seconds);
} catch (e) {
console.log(e.message);
Expand Down
Loading

0 comments on commit 3b5d638

Please sign in to comment.