Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

valid time javascript

function solution(time) {
    const [hours, minutes] = time.split(':');
    return hours < 24 && minutes < 60;
}
 
PREVIOUS NEXT
Tagged: #valid #time #javascript
ADD COMMENT
Topic
Name
4+8 =