0
Can anyone help i can't get past this in javascript .
In JavaScript course after creating object there's code challenge of creating flight object..and no matter what i do even inbuilt ai solution is not working and I can't go to next module because of that challenge pls help
3 Answers
+ 1
Ok, I'll ruin your learning opportunity...
function main() {
//take flight number and its status
var flightNumber = readLine();
var flightStatus = readLine();
var flight1 = new Flight(flightNumber,flightStatus);
//assign a flight object to flight1 variable
//output
console.log('The flight ' + flight1.number + ' is ' + flight1.status)
}
function Flight(flightNumber, status) {
//fix the constructor
this.number = flightNumber;
this.status = status;
};
You would have learned a lot more if you took the time to go back to the start and read the lesson more carefully and searched the internet to clear up the details missing in Sololearn's lesson...
+ 1
Anshul Sharma that appeared to be a technical issue. Did Bob's solution work?
 If not I'd contact Solearn: info@sololearn.com and describe the issue.
0
I cleared that level must have been bug...