# [JavaScript] Dot vs. Bracket Notation Practice

1. Using the object from the previous assignment, log a string like this to the
console: 'Finland has 6 million finnish-speaking people, 3 neighbouring countries
and a capital called Helsinki.'

2. Increase the country's population by two million using dot notation, and then
decrease it by two million using brackets notation.

```
const myCountry = {
    country: 'South Korea',
    capital: 'Seoul',
    language: 'Korean',
    population: 50, //millions
    neighbors: ['North Korea', 'Russia', 'Japan', 'China']
};

console.log(myCountry);
// 1.
console.log(`${myCountry.country} has ${myCountry.population} million 
${myCountry.language}-speaking people, ${myCountry.neighbors.length} neighboring
 countries and a capital called ${myCountry.capital}.`);

// 2.
console.log(myCountry.population += 2, myCountry['population'] -= 2);
```


![dot brackets practice.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1652763148409/ddEKv9JEd.PNG align="left")

