<script>
class Course {
constructor(title, stream, type, start_date, end_date) {
this.title = title;
this.stream = stream;
this.type = type;
this.start_date = start_date;
this.end_date = end_date;
}
}
let newCourseInstance = new Course(
window.prompt("Title:"),
window.prompt("Stream:"),
window.prompt("Type:"),
window.prompt("Start date:"),
window.prompt("End date:")
);