the angle between hour hand and minute hand of a clock
2022年5月1日小于 1 分钟
the angle between hour hand and minute hand of a clock
Question
Given a time string in format HH:mm
, please return the angle between hour hand and minute hand.
You should return rounded integer representing the smaller angle in degrees.
angle('12:00')
// 0
angle('23:30')
// 165
Code
/**
* @param {string} time
* @returns {number}
*/
function angle(time) {
// your code here
}