GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Modul 22 von 22 · Medien

NE-5. OpenWeather API, process.argv and files

Kostas Diakogiannis

NE-5. OpenWeather API, process.argv and files

NE-5. OpenWeather API with process.argv and file writing

OK! Let's try to make a final assessment of what we have learned on all basic node.js skills. 

We will try to combine everything in one exercise. You will have to run a script from node.js command line that will be of the form `node index.js rome` and this will bring all the information for the current weather from Rome and will write it (append it) into a new line of a .txt file. 

If you run again with another city, then the name  of the city and the temperature of it for that day should be written in a new line below the previous one. So the format of your .txt after 5 request to Berlin, Stockholm, Hamburg, Beijing, Tokyo should like like this:

Berlin 15°c 

Stockholm 11°c 

Hamburg 13°c 

Beijing 17°c 

Tokyo 9°c 

Have fun!

Anleitung

Um im Kurs weiterzukommen, sende einen Versuch dieses Quiz ab. Du kannst ihn nach der letzten Frage absenden.

Zum gewählten Modul

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck