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

31st Jul 2024, 6:48 AM
Anshul Sharma
Anshul Sharma - avatar
3 Respostas
+ 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...
31st Jul 2024, 7:55 AM
Bob_Li
Bob_Li - avatar
+ 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.
31st Jul 2024, 6:46 PM
Chris Coder
Chris Coder - avatar
0
I cleared that level must have been bug...
3rd Aug 2024, 10:00 PM
Anshul Sharma
Anshul Sharma - avatar