What's wrong in this code correct me please
Bob was hired as an airport information officer and needs to generate status messages for each flight․ Let’s help him! Complete the given program by fixing the constructor, making a flight object, and assign it to given variable to correctly execute the corresponding message. Flight ID and the flight status(landed, on time, delayed, etc.) are taken as input. Sample Input NGT 929 landed Sample Output Flight NGT 929 has landed //Mycode function main() { //take flight number and its status var flightNumber = readLine(); var flightStatus = readLine(); var flight1 new flight(flightNumber,flightStatus se); //assign a flight object to flight1 variable //output console.log('The flight ' + flight1.number + ' is ' + flight1.status) } function Flight(flightNumber, status) { //fix the constructor flight1.number = flightNumber; flight1.Status = status; };