<<<<<<< HEAD Code Wars - Brett Crafton

Beginner Series #2 Clock

Question

Clock shows h hours, m minutes and s seconds after midnight. Your task is to write a function which returns the time since midnight in milliseconds. Input constraints: 0 <= h <= 23 0 <= m <= 59 0 <= s <= 59 Example:

h = 0 m = 1 s = 1 result = 61000

Solution by -

My Solution


	function past(h, m, s){
		return h*3600000 + m*60000 + s*1000
		}
				

Try it yourself - CodeWars

======= Code Wars - Brett Crafton

Beginner Series #2 Clock

Question

Clock shows h hours, m minutes and s seconds after midnight. Your task is to write a function which returns the time since midnight in milliseconds. Input constraints: 0 <= h <= 23 0 <= m <= 59 0 <= s <= 59 Example:

h = 0 m = 1 s = 1 result = 61000

Solution by -

My Solution


	function past(h, m, s){
		return h*3600000 + m*60000 + s*1000
		}
				

Try it yourself - CodeWars

>>>>>>> 0e614172debaa009c8d31330edbeb3b765b59c39