Hey everyone, this was my solution to the Mixed Messages Project.
So, the way I’ve adapted it was by turning it into an itinerary generator for a trip. It suggests fifteen (randomised) cities around the world for you to visit (once Covid is under control, of course, haha).
This took me a little under two hours to make, but I was proud of myself. Let me know if you’ve got any feedback. Thanks!
1 Like
Hey there!
I thought your code was quite fun, something I could totally see using in my life sometime
It was very readable, and even to a beginner like me I could tell what each piece was doing and how I could adapt it myself which I think is great.
One idea I got from another similar program - your random number generator include a number right now, as you can see below.
let randomNumber = Math.floor(Math.random() * 10);
If you edited that to instead be something like what I pasted below, then you could add or remove cities from your arrays at will, without having to also change the random number generator. Just allows for a little more flexibility in the code which I think is cool.
let randomNumber = Math.floor(Math.random() * citiesArray.length);
Good luck on the next project!
1 Like