diff --git a/readMe.md b/readMe.md index f8d88b9..de89d26 100644 --- a/readMe.md +++ b/readMe.md @@ -538,7 +538,7 @@ Multiline commenting: Variables are _containers_ of data. Variables are used to _store_ data in a memory location. When a variable is declared, a memory location is reserved. When a variable is assigned to a value (data), the memory space will be filled with that data. To declare a variable, we use _var_, _let_, or _const_ keywords. -For a variable that changes at a different time, we use _let_. If the data does not change at all, we use _const_. For example, PI, country name, gravity do no change, and we can use _const_. We will not use var in this challenge and I don't recommend you to use it. It is error prone way of declaring variable it has lots of leak. We will talk more about var, let, and const in detail in other sections (scope). For now, the above explanation is enough. +For a variable that changes at a different time, we use _let_. If the data does not change at all, we use _const_. For example, PI, country name, gravity do not change, and we can use _const_. We will not use var in this challenge and I don't recommend you to use it. It is error prone way of declaring variable it has lots of leak. We will talk more about var, let, and const in detail in other sections (scope). For now, the above explanation is enough. A valid JavaScript variable name must follow the following rules: @@ -571,7 +571,7 @@ year2020 year_2020 ``` -The first and second variables on the list follows the camelCase convention of declaring in JavaScrip. In this material, we will use camelCase variables. +The first and second variables on the list follows the camelCase convention of declaring in JavaScript. In this material, we will use camelCase variables. Example of invalid variables: @@ -603,14 +603,14 @@ console.log(firstName, lastName, country, city, age, isMarried) ``` ```sh -Asabeneh Yetayeh Finland Helsinki 100 True +Asabeneh Yetayeh Finland Helsinki 100 true ``` ```js // Declaring variables with number values let age = 100 // age in years const gravity = 9.81 // earth gravity in m/s2 -const boilingPoint = 100 // water boiling point, temperature in oC +const boilingPoint = 100 // water boiling point, temperature in °C const PI = 3.14 // geometrical constant console.log(gravity, boilingPoint, PI)