Updated exercise
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@ node_modules
|
|||||||
**/.DS_Store
|
**/.DS_Store
|
||||||
todo/**
|
todo/**
|
||||||
_*.js
|
_*.js
|
||||||
|
solution-*.js
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
// Types and conversions
|
// Types and conversions
|
||||||
|
// !@ts-check
|
||||||
|
|
||||||
// Ex 1 (implicit convertion)
|
// Ex 1 (implicit convertion)
|
||||||
// Compute the time in seconds
|
// Compute the time in seconds
|
||||||
function timeInSeconds(hours, mins, secs) {
|
function timeInSeconds(hours, mins, secs) {
|
||||||
// placeholder
|
// placeholder
|
||||||
// return (hours * 60 + mins) * 60 + secs;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('Ex 1');
|
console.log('Ex 1');
|
||||||
|
|||||||
Reference in New Issue
Block a user