Create an HTML/JS page that prints out capitals of countries
Your code needs to keep in mind that arrays aren't perfect.
You're trusting that they put in all the right number of capitals for number of countries but you can't be sure. So you need to test for that.
To answer the quiz, you must write the following in the script section of this page:
function called 'printLine' that takes in two variables and prints out a single line like one line of the example below (ie. "the capital of VARIABLE1 is VARIABLE2")
a second function that loops through the two arrays you are given until ONE of the arrays runs out. The arrays are different lengths, but the matching pairs of cities and countries are in the correct order.
a condition that handles what happens when one of the arrays runs out (stuff happens, array data isnt always perfect). You need to implement a solution that handles mismatched arrays WITHOUT changing the contents of the arrays (i.e., adding nothing to the datasets).
Sample output **COLOURS DO NOT MATTER AT ANY POINT OF THIS QUIZ**
The capital of x is y.
The capital of x is y. ... ...
When you are done, please .zip your .html document in a file called Q3_LASTNAME.zip. And submit it by email to: firstname.lastname@example.org