1. Iterate 0 to 10 using for loop, do the same using while and do while loop
1. Iterate 0 to 10 using for loop, do the same using while and do while loop
@ -351,8 +348,8 @@ for(let i = 0; i <= 5; i++){
[2550, 2500]
[2550, 2500]
```
```
13. Develop a small script which generate array of 5 random numbers
13. Develop a small script which generate an array of 5 random numbers
14. Develop a small script which generate array of 5 random numbers and the numbers must be unique
14. Develop a small script which generate an array of 5 random numbers and the numbers must be unique
15. Develop a small script which generate a six characters random id:
15. Develop a small script which generate a six characters random id:
```sh
```sh
@ -414,48 +411,48 @@ for(let i = 0; i <= 5; i++){
]
]
```
```
2. In above countries array, check if there is a country or countries containing the word 'land'. If there are countries containing 'land', print it as array. If there is no country containing the word 'land', print 'All these countries are without land'.
1. In the countries array above, check if there is a country or countries containing the word 'land'. If there are countries containing 'land', print it as array. If there is no country containing the word 'land', print 'All these countries are without land'.
```sh
```sh
['Finland','Ireland', 'Iceland']
['Finland','Ireland', 'Iceland']
```
```
3. In above countries array, check if there is a country or countries end with a substring 'ia'. If there are countries end with, print it as array. If there is no country containing the word 'ai', print 'These are countries ends without ia'.
1. In the countries array above, check if there is a country or countries that ends with a substring 'ia'. If there are countries that ends with 'ia', print it as an array. If there is no country containing the word 'ia', print 'These are countries that ends without ia'.
```sh
```sh
['Albania', 'Bolivia','Ethiopia']
['Albania', 'Bolivia','Ethiopia']
```
```
4. Using the above countries array, find the country containing the biggest number of characters.
1. Using the countries array above, find the country containing the biggest number of characters.
```sh
```sh
Ethiopia
Ethiopia
```
```
5. Using the above countries array, find the country containing only 5 characters.
1. Using the countries array above, find the country or countries containing only 5 characters.
```sh
```sh
['Japan', 'Kenya']
['Japan', 'Kenya']
```
```
6. Find the longest word in the webTechs array
1. Find the longest word in the webTechs array
7. Use the webTechs array to create the following array of arrays:
1. Use the webTechs array to create the following array of arrays:
8. An application created using MongoDB, Express, React and Node is called a MERN stack app. Create the acronym MERN by using the array mernStack
1. An application created using MongoDB, Express, React and Node is called a MERN stack app. Create the acronym MERN by using the array mernStack
9. Iterate through the array, ["HTML", "CSS", "JS", "React", "Redux", "Node", "Express", "MongoDB"] using a for loop or for of loop and print out the items.
1. Iterate through the array, ["HTML", "CSS", "JS", "React", "Redux", "Node", "Express", "MongoDB"] using a for loop or for of loop and print out the items.
10. This is a fruit array , ['banana', 'orange', 'mango', 'lemon'] reverse the order using loop without using a reverse method.
1. This is a fruit array , ['banana', 'orange', 'mango', 'lemon'] reverse the order using loop without using a reverse method.
11. Print all the elements of array as shown below.
1. Print all the elements of array as shown below.
```js
```js
const fullStack = [
const fullStack = [
['HTML', 'CSS', 'JS', 'React'],
["HTML", "CSS", "JS", "React"],
['Node', 'Express', 'MongoDB']
["Node", "Express", "MongoDB"],
]
];
````
```
```sh
```sh
HTML
HTML
@ -472,12 +469,11 @@ for(let i = 0; i <= 5; i++){
1. Copy countries array(Avoid mutation)
1. Copy countries array(Avoid mutation)
1. Arrays are mutable. Create a copy of array which does not modify the original. Sort the copied array and store in a variable sortedCountries
1. Arrays are mutable. Create a copy of array which does not modify the original. Sort the copied array and store in a variable sortedCountries
1. Sort the webTechs array and mernStack array
1. Sort the webTechs array and mernStack array
1. Extract all the countries contain the word 'land' from the [countries array](https://github.com/Asabeneh/30DaysOfJavaScript/tree/master/data/countries.js) and print it as array
1. Find the country containing the hightest number of characters in the [countries array](https://github.com/Asabeneh/30DaysOfJavaScript/tree/master/data/countries.js)
1. Find the country containing the hightest number of characters in the [countries array](https://github.com/Asabeneh/30DaysOfJavaScript/tree/master/data/countries.js)
1. Extract all the countries contain the word 'land' from the [countries array](https://github.com/Asabeneh/30DaysOfJavaScript/tree/master/data/countries.js) and print it as array
1. Extract all the countries contain the word 'land' from the [countries array](https://github.com/Asabeneh/30DaysOfJavaScript/tree/master/data/countries.js) and print it as array
1. Extract all the countries containing only four characters from the [countries array](https://github.com/Asabeneh/30DaysOfJavaScript/tree/master/data/countries.js) and print it as array
1. Extract all the countries containing only four characters from the [countries array](https://github.com/Asabeneh/30DaysOfJavaScript/tree/master/data/countries.js) and print it as array
1. Extract all the countries containing two or more words from the [countries array](https://github.com/Asabeneh/30DaysOfJavaScript/tree/master/data/countries.js) and print it as array
1. Extract all the countries containing two or more words from the [countries array](https://github.com/Asabeneh/30DaysOfJavaScript/tree/master/data/countries.js) and print it as array
1. Reverse the [countries array](https://github.com/Asabeneh/30DaysOfJavaScript/tree/master/data/countries.js) and capitalize each country and stored it as an array
1. Reverse the [countries array](https://github.com/Asabeneh/30DaysOfJavaScript/tree/master/data/countries.js) and capitalize each country then store it as an array