This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function range(start, end) { | |
// ..TODO.. | |
let startNum = Number(start); | |
console.log(startNum); | |
let array = []; | |
if (end == 0) { | |
return (array = []); | |
} else if (start === end) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const dayStart = "07:30"; | |
const dayEnd = "17:45"; | |
function scheduleMeeting(startTime, durationMinutes) { | |
function toMinutesNum(string) { | |
const regex = /^\d{1,2}:\d{2}$/; | |
if (regex.test(string)) { | |
const array = string.split(":"); | |
const HOUR = Number(array[0]); | |
const MINUTE = Number(array[1]); |