Python Exception Class Properties Javascript Interview Coding