In HTML programming, after declaring two javascript arrays islandNames [G, NG, Bo, M, Ba] and islandSizes [
Fantastic news! We've Found the answer you've been seeking!
Question:
In HTML programming, after declaring two javascript arrays islandNames ["G", NG", "Bo", "M", "Ba"] and islandSizes [ 2130, 785, 748, 587, 507] how to print the following five sentences about the five largest islands utilizing the JavaScript For or While loop, If statement, and variables islandNames and islandSizes?
- The number 1 largest island in the world is G. It's size is 2130 square kilometers. The value of the size is an even number.
- The number 2 largest island in the world is NG. It's size is 785 square kilometers. The value of the size is an odd number.
- The number 3 largest island in the world is Bo. It's size is 748 square kilometers. The value of the size is an even number.
- The number 4 largest island in the world is M. It's size is 587 square kilometers. The value of the size is an odd number.
- The number 5 largest island in the world is Ba. It's size is 507 square kilometers. The value of the size is an odd number.
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: