JavaScript
// Write capturedName(str): the name in "Hello, <name>!", or null.
function capturedName(str) {

}

// Write parseDate(dateStr): { year, month, day } from "YYYY-MM-DD", or null.
function parseDate(dateStr) {

}