what is problem here JavaScript
function main() { //take flight number and its status var flightNumber = readLine(); var flightStatus = readLine(); var flight1 = new Flight("SBI 3205", "delayed"); var flight2 = new Flight("NGT 786", "ontime"); var flight3 = new Flight("NMF 179", "canceled"); //assign a flight object to flight1 variable //output console.log('The flight ' + flight1.number + ' is ' + flight1.status); console.log('The flight ' + flight2.number + ' is ' + flight2.status); console.log('The flight ' + flight3.number + ' is ' + flight3.status); } function Flight(flightNumber, status) { //fix the constructor this.number = flightNumber; this.status = status; }; test case 1 is getting passed after removing this two lines console.log('The flight ' + flight2.number + ' is ' + flight2.status); console.log('The flight ' + flight3.number + ' is ' + flight3.status); but when i add this two lines all test fails output: The flight SBI 3205 is delayed The flight NGT 786 is ontime The flight NMF 179 is canceled