Which of the following code is correct for validating date values?
Correct Answer: var d = new Date('foo'); if (d instanceof Date && isFinite(d)) { alert(d); } else { alert('Invalid date'); }
Explanation:
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
More JavaScript MCQ Questions