From aa17cfafadf8ea3edeb8fc112a6ac2609c80be62 Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Wed, 18 Mar 2020 18:58:45 -0400
Subject: [PATCH 01/24] Update 00_.md
---
.../00_JavaScript Coding Tools/00_What is JavaScript?/00_.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/00_Javascript Development Tools/00_JavaScript Coding Tools/00_What is JavaScript?/00_.md b/00_Javascript Development Tools/00_JavaScript Coding Tools/00_What is JavaScript?/00_.md
index 9eec72f..2f5d237 100755
--- a/00_Javascript Development Tools/00_JavaScript Coding Tools/00_What is JavaScript?/00_.md
+++ b/00_Javascript Development Tools/00_JavaScript Coding Tools/00_What is JavaScript?/00_.md
@@ -1 +1 @@
-JavaScript is a high-level, interpreted language. It can be ran on the browser or on your computer locally. JavaScript can be coded anywhere, even on a simple text editor or notepad feature on the laptop. However, in order to enhance programming experience, many tools such as editors and debuggers exist to make JavaScript coding easier and more interactive for a user.
\ No newline at end of file
+JavaScript is a high-level, interpreted language. It can be run on the browser or on your computer locally. JavaScript can be coded anywhere, even on a simple text editor or notepad feature on the laptop. However, in order to enhance programming experience, many tools such as editors and debuggers exist to make JavaScript coding easier and more interactive for a user.
From 7dc89c90b9ee4bebe949c180447040ad254bcd38 Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Wed, 18 Mar 2020 19:00:50 -0400
Subject: [PATCH 02/24] Update 00_.md
---
.../01_Intro to JavaScript/02_JavaScript Engines/00_.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/01_Introduction to JavaScript Development/01_Intro to JavaScript/02_JavaScript Engines/00_.md b/01_Introduction to JavaScript Development/01_Intro to JavaScript/02_JavaScript Engines/00_.md
index 5c19abf..749ecc7 100755
--- a/01_Introduction to JavaScript Development/01_Intro to JavaScript/02_JavaScript Engines/00_.md
+++ b/01_Introduction to JavaScript Development/01_Intro to JavaScript/02_JavaScript Engines/00_.md
@@ -1 +1 @@
-There are different JavaScript Engine depending on the browser you use. For example, Chrome has V8, Internet Explorer has Chakra, FireFox as Spidermonkey, and Safari has JavaScriptCore. All of these JavaScript engines helps your browser by supporting memory management, garbage collection, in-time compilation and much more.
\ No newline at end of file
+There are different JavaScript engines depending on the browser you use. For example, Chrome has V8, Internet Explorer has Chakra, FireFox as Spidermonkey, and Safari has JavaScriptCore. All of these JavaScript engines helps your browser by supporting memory management, garbage collection, in-time compilation and much more.
From 91059835a7547b2fdd24a17319e84d3e27ba7ddd Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Wed, 18 Mar 2020 19:08:46 -0400
Subject: [PATCH 03/24] Update 00_.md
---
.../04_When is JavaScript Executed?/00_.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/01_Introduction to JavaScript Development/01_Intro to JavaScript/04_When is JavaScript Executed?/00_.md b/01_Introduction to JavaScript Development/01_Intro to JavaScript/04_When is JavaScript Executed?/00_.md
index b3efd27..0c0de69 100755
--- a/01_Introduction to JavaScript Development/01_Intro to JavaScript/04_When is JavaScript Executed?/00_.md
+++ b/01_Introduction to JavaScript Development/01_Intro to JavaScript/04_When is JavaScript Executed?/00_.md
@@ -1,3 +1,3 @@
JavaScript code is executed during page loading or when the browser fires an event. All the statements in JavaScript are executed at page loading, even if most of the statements are just functions that are not used until the user interacts wit the site.
-Function calls or code can be attached as "event handlers" via tag attributes that are then executed when the event is fired by the browser. For example, clicking a button could screen could trigger a piece of code in the JavaScript to do something. (i.e. change the color of the button).
\ No newline at end of file
+Function calls or code can be attached as "event handlers" via tag attributes that are then executed when the event is fired by the browser. For example, clicking a button on the screen could trigger a piece of code in the JavaScript to do something. (i.e. change the color of the button).
From bd5f6ca12db3cec343ab236c08b01071a4d6b62e Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Wed, 18 Mar 2020 19:15:33 -0400
Subject: [PATCH 04/24] Update 02_.md
---
.../04_When is JavaScript Executed?/02_.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/01_Introduction to JavaScript Development/01_Intro to JavaScript/04_When is JavaScript Executed?/02_.md b/01_Introduction to JavaScript Development/01_Intro to JavaScript/04_When is JavaScript Executed?/02_.md
index d151b27..108a9f1 100755
--- a/01_Introduction to JavaScript Development/01_Intro to JavaScript/04_When is JavaScript Executed?/02_.md
+++ b/01_Introduction to JavaScript Development/01_Intro to JavaScript/04_When is JavaScript Executed?/02_.md
@@ -1 +1 @@
-The sample code above has a method called `alert()` that will send an alert message to the browser when it is run. If you haven't already ran the program, run it to see what happens. The `alert()` method will print a dialogue box with a message when called. An alert box is often used when you want the user to double check the option he/she selected before moving on.
\ No newline at end of file
+The sample code above has a method called `alert()` that will send an alert message to the browser when it is run. If you haven't already run the program, run it to see what happens. The `alert()` method will print a dialogue box with a message when called. An alert box is often used when you want the user to double-check the selected option before moving on.
From 1b7f52e5154aad5a3f9cbcd2f0b076641b4f343d Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Wed, 18 Mar 2020 20:15:30 -0400
Subject: [PATCH 05/24] Update 00_.md
---
.../05_Debugging in JavaScript/00_Debugging/00_.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/01_Introduction to JavaScript Development/05_Debugging in JavaScript/00_Debugging/00_.md b/01_Introduction to JavaScript Development/05_Debugging in JavaScript/00_Debugging/00_.md
index 266f796..ba26443 100755
--- a/01_Introduction to JavaScript Development/05_Debugging in JavaScript/00_Debugging/00_.md
+++ b/01_Introduction to JavaScript Development/05_Debugging in JavaScript/00_Debugging/00_.md
@@ -1,3 +1,3 @@
Debugging is the act of identifying and fixing errors in your program. Modern browsers have JavaScript console where errors in scripts are reported. This can be found via right clicking the site and selecting "Inspect Element". You will then see a console screen where errors are printed (if any).
-Errors may differ across browsers as each browser has their own JavaScript Engine. There are several tools you can use to debug JavaScript. Microsoft Script Editor is a convenient add-on for Internet Explorer that supports breakpoints and watches for debugging. If you are using other browsers, debugging it locally own your computer or searching for an add-on or a online text editor is how you would approach debugging. Firefox has Firebug, which we will talk about in the next section.
\ No newline at end of file
+Errors may differ across browsers as each browser has their own JavaScript Engine. There are several tools you can use to debug JavaScript. Microsoft Script Editor is a convenient add-on for Internet Explorer that supports breakpoints and watches for debugging. If you are using other browsers, debugging it locally on your computer or searching for an add-on or a online text editor is how you would approach debugging. Firefox has Firebug, which we will talk about in the next section.
From a649838645519297e92df87cfa49945907b0a978 Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Thu, 19 Mar 2020 00:30:32 -0400
Subject: [PATCH 06/24] Update 00_.md
---
.../01_Built-In Browser Objects/00_.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/01_Introduction to JavaScript Development/04_Standard Javascript Objects/01_Built-In Browser Objects/00_.md b/01_Introduction to JavaScript Development/04_Standard Javascript Objects/01_Built-In Browser Objects/00_.md
index dd1b137..ef75fa9 100755
--- a/01_Introduction to JavaScript Development/04_Standard Javascript Objects/01_Built-In Browser Objects/00_.md
+++ b/01_Introduction to JavaScript Development/04_Standard Javascript Objects/01_Built-In Browser Objects/00_.md
@@ -3,10 +3,10 @@ The browser provides some read-only data via:
- The top node of the DOM tree
- Represents the browser's window
- `document`
- - holds information the current loaded document
+ - holds information on the current loaded document
- `screen`
- Holds the user’s display properties
- `browser`
- Holds information about the browser
-These objects will only be used if you were to work with HTML and websites.
\ No newline at end of file
+These objects would only be used if you were to work with HTML and websites.
From 4f320d363dd1d20e46e3907deaaf582476487822 Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Thu, 19 Mar 2020 01:06:38 -0400
Subject: [PATCH 07/24] Update 00_.md
---
.../00_Data Types/02_JavaScript Data Types/00_.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/02_Data Types and Variables/00_Data Types/02_JavaScript Data Types/00_.md b/02_Data Types and Variables/00_Data Types/02_JavaScript Data Types/00_.md
index 8040f53..0bb6aba 100755
--- a/02_Data Types and Variables/00_Data Types/02_JavaScript Data Types/00_.md
+++ b/02_Data Types and Variables/00_Data Types/02_JavaScript Data Types/00_.md
@@ -1 +1 @@
-JavaScript is weakly typed language. It allows most operations on any values without regards to their data type. Values have data types, but the variables themselves don't. Variables can hold any data type as shown in the sample code below. All variables are declared with the keywords `var`, `let` or `const`.
\ No newline at end of file
+JavaScript is a weakly typed language. It allows most operations on any values without regard to their data type. Values have data types, but the variables themselves do not. Variables can hold any data type as shown in the sample code below. All variables are declared with the keywords `var`, `let` or `const`.
From ce52b20141b8667ffdc574fa9e07e4a37ec859f9 Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Thu, 19 Mar 2020 01:11:09 -0400
Subject: [PATCH 08/24] Update 02_.md
---
.../00_Data Types/02_JavaScript Data Types/02_.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/02_Data Types and Variables/00_Data Types/02_JavaScript Data Types/02_.md b/02_Data Types and Variables/00_Data Types/02_JavaScript Data Types/02_.md
index cff5330..bac7a24 100755
--- a/02_Data Types and Variables/00_Data Types/02_JavaScript Data Types/02_.md
+++ b/02_Data Types and Variables/00_Data Types/02_JavaScript Data Types/02_.md
@@ -1 +1 @@
-As shown in the sample code above, there are many data types and ways to declare a variable. The variable `count` holds an integer data type in the first line, but is assigned to a string data type in the second line. This is allowed in JavaScript as all variables can hold any data type. Other data types including float (basically int but with decimals), as well as boolean (either true of false). The `const` keyword is only used when we want to create a constant that will not change in the program. This is the reason why `MAX_COUNT = 0;` is commented in the program. Removing the comments will cause an error as the value of the constant `MAX_COUNT` cannot be changed after it is declared
+As shown in the sample code above, there are many data types and ways to declare a variable. The variable `count` holds an integer data type in the first line, but is assigned to a string data type in the second line. This is allowed in JavaScript as all variables can hold any data type. Other data types including float (basically int but with decimals), as well as boolean (either true of false) hold only specific data types. The `const` keyword is only used when we want to create a constant that will not change in the program. This is the reason why `MAX_COUNT = 0;` is commented in the program. Removing the comments will cause an error as the value of the constant `MAX_COUNT` cannot be changed after it is declared.
From eba48a02c4c9c3c38ef12ec611e720b88f3db2ae Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Thu, 19 Mar 2020 01:13:16 -0400
Subject: [PATCH 09/24] Update JavascriptDataTypesExample.js
---
.../01_.repl/src/JavascriptDataTypesExample.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/02_Data Types and Variables/00_Data Types/02_JavaScript Data Types/01_.repl/src/JavascriptDataTypesExample.js b/02_Data Types and Variables/00_Data Types/02_JavaScript Data Types/01_.repl/src/JavascriptDataTypesExample.js
index f2af43a..8123fa5 100755
--- a/02_Data Types and Variables/00_Data Types/02_JavaScript Data Types/01_.repl/src/JavascriptDataTypesExample.js
+++ b/02_Data Types and Variables/00_Data Types/02_JavaScript Data Types/01_.repl/src/JavascriptDataTypesExample.js
@@ -6,7 +6,7 @@ var name = 'EXLskills'; // variable holds a string
let points = 5.25 // points holds a floating-point number
points = true; // points now holds a boolean value
-const MAX_COUNT = 250; // MAX_COUNT is a constant variable that holds a integer
+const MAX_COUNT = 250; // MAX_COUNT is a constant variable that holds an integer
/*
MAX_COUNT = 0; // will cause an error if uncommented, constant variables cannot be altered
*/
@@ -14,4 +14,4 @@ MAX_COUNT = 0; // will cause an error if uncommented, constant variables cannot
console.log(count);
console.log(name);
console.log(points);
-console.log(MAX_COUNT);
\ No newline at end of file
+console.log(MAX_COUNT);
From fbca2be8df78bb7566b3bdddb2fd7eb3dd818ff0 Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Thu, 19 Mar 2020 01:17:42 -0400
Subject: [PATCH 10/24] Update 02_.md
---
.../00_Data Types/03_Numbers in JavaScript/02_.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/02_Data Types and Variables/00_Data Types/03_Numbers in JavaScript/02_.md b/02_Data Types and Variables/00_Data Types/03_Numbers in JavaScript/02_.md
index 2f486a4..00f1828 100755
--- a/02_Data Types and Variables/00_Data Types/03_Numbers in JavaScript/02_.md
+++ b/02_Data Types and Variables/00_Data Types/03_Numbers in JavaScript/02_.md
@@ -1 +1 @@
-The sample code above shows four different examples of variables holding numbers. The first line shows an integer declaration as the integer 5 is being declared into the variable `value`. The second line assigns a rough estimate of PI into the variable `pi`. The third line creates a new object using `new Number()`, which essentially does the same thing as the two statements above. Creating Number objects slows down execution speed and complicates the code, so is not recommended. The last variable declaration assigns `biggestNum` to the maximum value of a number, which is approximately 1.8 x 10^308. The minimum value for JavaScript numbers is 5 x 10^-324. This gives you an opportunity to create a variety of programs that uses big or small numbers.
\ No newline at end of file
+The sample code above shows four different examples of variables holding numbers. The first line shows an integer declaration as the integer 5 is being declared into the variable `value`. The second line assigns a rough estimate of PI into the variable `pi`. The third line creates a new object using `new Number()`, which essentially does the same thing as the two statements above. Creating Number objects slows down execution speed and complicates the code, so is not recommended. The last variable declaration assigns `biggestNum` to the maximum value of a number, which is approximately 1.8 x 10^308. The minimum value for JavaScript numbers is 5 x 10^-324. This gives you an opportunity to create a variety of programs that use big or small numbers.
From f1cce49083c9c36cf3ea4f67c5a2165fbb518077 Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Thu, 19 Mar 2020 09:01:27 -0400
Subject: [PATCH 11/24] Update 02_.md
---
.../00_Data Types/04_Numbers Conversion/02_.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/02_Data Types and Variables/00_Data Types/04_Numbers Conversion/02_.md b/02_Data Types and Variables/00_Data Types/04_Numbers Conversion/02_.md
index eac033c..07b778a 100755
--- a/02_Data Types and Variables/00_Data Types/04_Numbers Conversion/02_.md
+++ b/02_Data Types and Variables/00_Data Types/04_Numbers Conversion/02_.md
@@ -1,3 +1,3 @@
-The code above shows all three types of conversions we can use in our program. The first conversion from floating-point to integer is used when rounding is not considered. The conversion from floating-point to integer ignores truncates the decimal. The digits that come after the decimal point are ignored and the original number is not rounded during the process. If you want to round the floating point to an integer, all you have to do is to add 0.5 to the original value as shown above. This will round your floating-point 100% of the time.
+The code above shows all three types of conversions we can use in our program. The first conversion from floating-point to integer is used when rounding is not considered. The conversion from floating-point to integer truncates the decimal. The digits that come after the decimal point are ignored and the original number is not rounded during the process. If you want to round the floating point to an integer, all you have to do is to add 0.5 to the original value as shown above. This will round your floating-point 100% of the time.
Converting strings to integer requires a similar method of using `| 0`. If the string doesn't start with a digit, the conversion will not work.
From a34790732296ebad0ccbde039af27fd63674836f Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Thu, 19 Mar 2020 09:05:29 -0400
Subject: [PATCH 12/24] Update 02_.md
No corrections in the text, but the Application Question is not accepting any choice as the right answer. Thanks.
---
.../00_Data Types/03_Numbers in JavaScript/02_.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/02_Data Types and Variables/00_Data Types/03_Numbers in JavaScript/02_.md b/02_Data Types and Variables/00_Data Types/03_Numbers in JavaScript/02_.md
index 00f1828..19c59dd 100755
--- a/02_Data Types and Variables/00_Data Types/03_Numbers in JavaScript/02_.md
+++ b/02_Data Types and Variables/00_Data Types/03_Numbers in JavaScript/02_.md
@@ -1 +1 @@
-The sample code above shows four different examples of variables holding numbers. The first line shows an integer declaration as the integer 5 is being declared into the variable `value`. The second line assigns a rough estimate of PI into the variable `pi`. The third line creates a new object using `new Number()`, which essentially does the same thing as the two statements above. Creating Number objects slows down execution speed and complicates the code, so is not recommended. The last variable declaration assigns `biggestNum` to the maximum value of a number, which is approximately 1.8 x 10^308. The minimum value for JavaScript numbers is 5 x 10^-324. This gives you an opportunity to create a variety of programs that use big or small numbers.
+The sample code above shows four different examples of variables holding numbers. The first line shows an integer declaration as the integer 5 is being declared into the variable `value`. The second line assigns a rough estimate of PI into the variable `pi`. The third line creates a new object using `new Number()`, which essentially does the same thing as the two statements above. Creating Number objects slows down execution speed and complicates the code, so is not recommended. The last variable declaration assigns `biggestNum` to the maximum value of a number, which is approximately 1.8 x 10^308. The minimum value for JavaScript numbers is 5 x 10^-324. This gives you an opportunity to create a variety of programs that use big or small numbers.
From f1a850403eb6a44a6892f863b4873ffd4e39e462 Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Thu, 19 Mar 2020 09:13:05 -0400
Subject: [PATCH 13/24] Update 00_.md
---
.../00_Data Types/05_Floating-Point Numbers/00_.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/02_Data Types and Variables/00_Data Types/05_Floating-Point Numbers/00_.md b/02_Data Types and Variables/00_Data Types/05_Floating-Point Numbers/00_.md
index c4c5c9f..e10e5de 100755
--- a/02_Data Types and Variables/00_Data Types/05_Floating-Point Numbers/00_.md
+++ b/02_Data Types and Variables/00_Data Types/05_Floating-Point Numbers/00_.md
@@ -1 +1 @@
-Floating-point types represent real numbers and has a range of values and precision. The one downside of floating-points are they can behave abnormally during calculations and result in the loss of precision. The floating-point size depends on the platform (the browser and the OS). 32-bit OS and browser have 32 bits for number, while 64-bit have 64 bits. Therefore, it is good idea to use 32-bit numbers as it will work on any platform, including the 64-bit platforms. Floating-point types usually have a decimal and are extremely useful in JavaScript.
\ No newline at end of file
+Floating-point types represent real numbers and have a range of values and precision. The one downside of floating-points is that they can behave abnormally during calculations and result in the loss of precision. The floating-point size depends on the platform (the browser and the OS). 32-bit OS's and browsers have 32 bits for numbers, while 64-bit have 64 bits. Therefore, it is good idea to use 32-bit numbers as they will work on any platform, including 64-bit platforms. Floating-point types usually have a decimal and are extremely useful in JavaScript.
From 94f3b12f6e675cfba105b10b7273590b740a387e Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Thu, 19 Mar 2020 14:14:48 -0400
Subject: [PATCH 14/24] Update 02_.md
The Application Question for Integer Numbers does not accept 'Infinity' as the correct answer, even though the explanation lists it as being correct.
---
.../00_Data Types/06_Integer Numbers/02_.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/02_Data Types and Variables/00_Data Types/06_Integer Numbers/02_.md b/02_Data Types and Variables/00_Data Types/06_Integer Numbers/02_.md
index b96a7b7..c07aa5c 100755
--- a/02_Data Types and Variables/00_Data Types/06_Integer Numbers/02_.md
+++ b/02_Data Types and Variables/00_Data Types/06_Integer Numbers/02_.md
@@ -1,3 +1,3 @@
The sample code above contains 6 variables. The first three should look familiar as they are just variables that are declared and assigned a value. The fourth and fifth variable, `a` and `b` are declared on the same line. Calling more than one variable in one line is common in JavaScript. This can be achieved using a comma to separate each variable.
-The two variables `sum` and `div` are not assigned a specific integer, but an addition/division of two variables. This is also common as the expressions on the right are evaluated before assigning the variable an integer. Notice that `div` is actually equal to "Infinity". Dividing any number by 0 will give you this result. The only exception is "0 / 0", which will return NaN (abbreviation for Not a Number).
\ No newline at end of file
+The two variables `sum` and `div` are not assigned a specific integer, but an addition/division of two variables. This is also common as the expressions on the right are evaluated before assigning the variable an integer. Notice that `div` is actually equal to "Infinity". Dividing any number by 0 will give you this result. The only exception is "0 / 0", which will return NaN (abbreviation for Not a Number).
From 98cb41b47e631e96a816218a5e480ba81d0f1f51 Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Thu, 19 Mar 2020 14:22:02 -0400
Subject: [PATCH 15/24] Update 00_.md
---
02_Data Types and Variables/00_Data Types/08_String/00_.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/02_Data Types and Variables/00_Data Types/08_String/00_.md b/02_Data Types and Variables/00_Data Types/08_String/00_.md
index f4478cf..810116b 100755
--- a/02_Data Types and Variables/00_Data Types/08_String/00_.md
+++ b/02_Data Types and Variables/00_Data Types/08_String/00_.md
@@ -1,3 +1,3 @@
-Strings represent a sequence of characters. They are always enclosed in either single quotes (') or double quotes ("). Starting ES6, or ECMAScript 2015, back ticks \`
can also be used to represent strings. String can be concatenated using the `+` operator as shown in the code sample below.
+Strings represent a sequence of characters. They are always enclosed in either single quotes (') or double quotes ("). Starting ES6, or ECMAScript 2015, back ticks \`
can also be used to represent strings. Strings can be concatenated using the `+` operator as shown in the code sample below.
-Additionally, strings are stored as Unicode, a industry standard for the encoding, representation, and handling of text expressed in most programming languages. Unicode supports all commonly used alphabets in the world, including Cyrillic, Chinese, Arabic, Greek, Spanish, English, German etc. The sample code below shows the use of Arabic, Bulgarian, and Japanese.
\ No newline at end of file
+Additionally, strings are stored as Unicode, an industry standard for the encoding, representation, and handling of text expressed in most programming languages. Unicode supports all commonly used alphabets in the world, including Cyrillic, Chinese, Arabic, Greek, Spanish, English, German etc. The sample code below shows the use of Arabic, Bulgarian, and Japanese.
From 83b18ff651626ed766cf92c8b6373a6675dd5225 Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Thu, 19 Mar 2020 14:40:34 -0400
Subject: [PATCH 16/24] Update 02_.md
---
02_Data Types and Variables/00_Data Types/08_String/02_.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/02_Data Types and Variables/00_Data Types/08_String/02_.md b/02_Data Types and Variables/00_Data Types/08_String/02_.md
index 54fbff5..f32d22d 100755
--- a/02_Data Types and Variables/00_Data Types/08_String/02_.md
+++ b/02_Data Types and Variables/00_Data Types/08_String/02_.md
@@ -1 +1 @@
-The sample program above shows two examples of string concatenation. The first example prints a welcome message using string variables and the second example prints a person's full name. Although, string concatenation will be explored in-depth later in the course, try to understand how it works so you can use it. String concatenation is pretty straightforward as the '+' operator simply adds two strings together. The unicode examples show how any language can be used in the program and printed correctly on the console. Search up unicode and see if the languages you speak are supported!
\ No newline at end of file
+The sample program above shows two examples of string concatenation. The first example prints a welcome message using string variables and the second example prints a person's full name. Although, string concatenation will be explored in-depth later in the course, try to understand how it works so you can use it. String concatenation is pretty straightforward as the '+' operator simply adds two strings together. The unicode examples show how any language can be used in the program and printed correctly on the console. Look up Unicode and see if the languages you speak are supported!
From 07699180ff52208361116542ca9f47f6da5b086e Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Thu, 19 Mar 2020 14:43:22 -0400
Subject: [PATCH 17/24] Update 02_.md
---
.../00_Data Types/09_Parsing String to Number/02_.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/02_Data Types and Variables/00_Data Types/09_Parsing String to Number/02_.md b/02_Data Types and Variables/00_Data Types/09_Parsing String to Number/02_.md
index 2eee55d..4c540aa 100755
--- a/02_Data Types and Variables/00_Data Types/09_Parsing String to Number/02_.md
+++ b/02_Data Types and Variables/00_Data Types/09_Parsing String to Number/02_.md
@@ -1 +1 @@
-The sample code above has two different scenarios, one with a string only consisting of digits and the other with a string consisting of both digits and letters. The first two `parseInt()` and `parseFloat()` methods work normally and converts the whole string into an integer/float. `str_1` and `str_2` are a little more complicated as the string contains letters as well. In this case, the letters after the numbers are ignored. Therefore, "Hello" is ignored when the method is called and `console.log()` messages will print "123" and "12.3" respectively. This is the "strange" behavior exhibited by the `parseInt()` and `parseFloat()` method that you should be aware of when writing your own code.
\ No newline at end of file
+The sample code above has two different scenarios, one with a string only consisting of digits and the other with a string consisting of both digits and letters. The first two `parseInt()` and `parseFloat()` methods work normally and convert the whole string into an integer/float. `str_1` and `str_2` are a little more complicated as the string contains letters as well. In this case, the letters after the numbers are ignored. Therefore, "Hello" is ignored when the method is called and `console.log()` messages will print "123" and "12.3" respectively. This is the "strange" behavior exhibited by the `parseInt()` and `parseFloat()` method that you should be aware of when writing your own code.
From 14b97bb04779edbca36535f4b23e4c37a33c11c7 Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Thu, 19 Mar 2020 14:45:41 -0400
Subject: [PATCH 18/24] Update 00_.md
---
.../01_Checking a Variable Type/00_.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/02_Data Types and Variables/01_Declaring and Using Variables/01_Checking a Variable Type/00_.md b/02_Data Types and Variables/01_Declaring and Using Variables/01_Checking a Variable Type/00_.md
index 8387160..083a979 100755
--- a/02_Data Types and Variables/01_Declaring and Using Variables/01_Checking a Variable Type/00_.md
+++ b/02_Data Types and Variables/01_Declaring and Using Variables/01_Checking a Variable Type/00_.md
@@ -1 +1 @@
-Getting a basic idea of the data type of a variable is pretty simple in JavaScript. JavaScript has an operator called `typeof` that can be used to checked the variable type during runtime. `typeof` returns a string of the value's data type, which can be convenient and necessary at times. The sample code below show 4 examples of the `typeof` operator, the last two being special cases.
\ No newline at end of file
+Getting a basic idea of the data type of a variable is pretty simple in JavaScript. JavaScript has an operator called `typeof` that can be used to check the variable type during runtime. `typeof` returns a string of the value's data type, which can be convenient and necessary at times. The sample code below shows 4 examples of the `typeof` operator, the last two being special cases.
From 56ad1d6adcce59f4e4abd36099d03204c2a34b46 Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Thu, 19 Mar 2020 15:11:21 -0400
Subject: [PATCH 19/24] Update 00_.md
---
.../01_Declaring and Using Variables/03_Identifiers/00_.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/02_Data Types and Variables/01_Declaring and Using Variables/03_Identifiers/00_.md b/02_Data Types and Variables/01_Declaring and Using Variables/03_Identifiers/00_.md
index 35f2d2f..e1a74e3 100755
--- a/02_Data Types and Variables/01_Declaring and Using Variables/03_Identifiers/00_.md
+++ b/02_Data Types and Variables/01_Declaring and Using Variables/03_Identifiers/00_.md
@@ -1,3 +1,3 @@
Identifiers are basically the name of the variables declared in the program. Identifiers may consist of letters (Unicode), digits, underscore, and dollar signs. Most signs other than these are not allowed to be used in an identifier. Identifiers can only begin with a letter, a dollar sign, or an underscore. A identifier cannot be a JavaScript keyword (e.g. `let`, `var`, `new` etc.) and should use lowerCamelCase.
-Generally speaking, they should be as descriptive as possible and should be neither too long or too short. This will make you program more readable and human-friendly. Identifiers in JavaScript are case-sensitive, so `var sum = 0;` is different from `var SUM = 0;`. The sample program below presents examples of good identifiers and bad identifiers that will throw an error.
\ No newline at end of file
+Generally speaking, they should be as descriptive as possible and should be neither too long or too short. This will make your program more readable and human-friendly. Identifiers in JavaScript are case-sensitive, so `var sum = 0;` is different from `var SUM = 0;`. The sample program below presents examples of good identifiers and bad identifiers that will throw an error.
From caa063380df2a82564c7a98cdab5962b5b2cca35 Mon Sep 17 00:00:00 2001
From: borsec-suveran <62297262+borsec-suveran@users.noreply.github.com>
Date: Thu, 19 Mar 2020 15:12:55 -0400
Subject: [PATCH 20/24] Update 02_.md
---
.../01_Declaring and Using Variables/03_Identifiers/02_.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/02_Data Types and Variables/01_Declaring and Using Variables/03_Identifiers/02_.md b/02_Data Types and Variables/01_Declaring and Using Variables/03_Identifiers/02_.md
index 6256423..b32782f 100755
--- a/02_Data Types and Variables/01_Declaring and Using Variables/03_Identifiers/02_.md
+++ b/02_Data Types and Variables/01_Declaring and Using Variables/03_Identifiers/02_.md
@@ -1,3 +1,3 @@
As shown in the program above, it is crucial for a programmer to create identifiers that are both descriptive and valid. Although it is not recommended, changing a JavaScript keyword into a capital word such as "New" is one way you can "hack" the system and use identifiers that have the same name as the keywords.
-We recommend descriptive names such as "numberOfClients" as it tells the programmer what the variable holds nice and clear. Identifiers cannot begin with a digit, and even though underscores or dollar signs can be used, we recommend the use of letters as much as possible to eliminate any unwanted errors in the program.
\ No newline at end of file
+We recommend descriptive names such as "numberOfClients" as it tells the programmer what the variable holds neatly and clearly. Identifiers cannot begin with a digit, and even though underscores or dollar signs can be used, we recommend the use of letters as much as possible to eliminate any unwanted errors in the program.
From e24fdfd685f0a0550d107160db033d6e5ecaf21b Mon Sep 17 00:00:00 2001
From: Sasha Varlamov
Date: Fri, 20 Mar 2020 06:13:43 +0800
Subject: [PATCH 21/24] Revert "Update 02_.md"
---
.../00_Data Types/06_Integer Numbers/02_.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/02_Data Types and Variables/00_Data Types/06_Integer Numbers/02_.md b/02_Data Types and Variables/00_Data Types/06_Integer Numbers/02_.md
index c07aa5c..b96a7b7 100755
--- a/02_Data Types and Variables/00_Data Types/06_Integer Numbers/02_.md
+++ b/02_Data Types and Variables/00_Data Types/06_Integer Numbers/02_.md
@@ -1,3 +1,3 @@
The sample code above contains 6 variables. The first three should look familiar as they are just variables that are declared and assigned a value. The fourth and fifth variable, `a` and `b` are declared on the same line. Calling more than one variable in one line is common in JavaScript. This can be achieved using a comma to separate each variable.
-The two variables `sum` and `div` are not assigned a specific integer, but an addition/division of two variables. This is also common as the expressions on the right are evaluated before assigning the variable an integer. Notice that `div` is actually equal to "Infinity". Dividing any number by 0 will give you this result. The only exception is "0 / 0", which will return NaN (abbreviation for Not a Number).
+The two variables `sum` and `div` are not assigned a specific integer, but an addition/division of two variables. This is also common as the expressions on the right are evaluated before assigning the variable an integer. Notice that `div` is actually equal to "Infinity". Dividing any number by 0 will give you this result. The only exception is "0 / 0", which will return NaN (abbreviation for Not a Number).
\ No newline at end of file
From c4ab3667aba6d0cacd605a5be948530010b78539 Mon Sep 17 00:00:00 2001
From: Prajwal Poojary <68125622+prajwalpoojary@users.noreply.github.com>
Date: Wed, 12 May 2021 18:59:07 +0530
Subject: [PATCH 22/24] Update 00_.md
The false && false should evaluate to false in Logical AND.
---
.../00_Operators/02_Logical Operators/00_.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/03_Operators and Expressions/00_Operators/02_Logical Operators/00_.md b/03_Operators and Expressions/00_Operators/02_Logical Operators/00_.md
index c36d18d..dc3304b 100755
--- a/03_Operators and Expressions/00_Operators/02_Logical Operators/00_.md
+++ b/03_Operators and Expressions/00_Operators/02_Logical Operators/00_.md
@@ -5,7 +5,7 @@ The `&&` operator is the logical and operator, which takes in two boolean values
1. true && true - evaluates to true
2. true && false - evaluates to false
3. false && true - evaluates to false
-4. false && false - evaluates to true
+4. false && false - evaluates to false
The `||` operator is the logical or operator, which takes in two boolean values and returns true if one of the values are true. The four different cases are shown below:
@@ -14,4 +14,4 @@ The `||` operator is the logical or operator, which takes in two boolean values
3. false || true - evaluates to true
4. false || false - evaluates to false
-As JavaScript is a weakly typed language, any value can turn into true or false values. Every data type can be converted to it's boolean representation using double not (`!!`).
\ No newline at end of file
+As JavaScript is a weakly typed language, any value can turn into true or false values. Every data type can be converted to it's boolean representation using double not (`!!`).
From 6ac63eb3b7b05ab8c644b605418d306c9d288339 Mon Sep 17 00:00:00 2001
From: Prajwal Poojary <68125622+prajwalpoojary@users.noreply.github.com>
Date: Fri, 14 May 2021 18:19:08 +0530
Subject: [PATCH 23/24] update explanation for lastIndexOf()
The Array.prototype.lastIndexOf() return the last index of the matched element in the array.
---
06_Arrays/01_Array Methods/07_Methods for Searching/00_.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/06_Arrays/01_Array Methods/07_Methods for Searching/00_.md b/06_Arrays/01_Array Methods/07_Methods for Searching/00_.md
index 47db656..264f889 100755
--- a/06_Arrays/01_Array Methods/07_Methods for Searching/00_.md
+++ b/06_Arrays/01_Array Methods/07_Methods for Searching/00_.md
@@ -5,7 +5,7 @@ There are many methods that can help you find specific elements in an array. The
- returns `-1` is the element is not found
`arrayname.lastIndexOf(element, [leftOf])`
- - returns the index of the first match in the array
+ - returns the index of the last match in the array
- returns `-1` is the element is not found
`arrayname.find(function)`
@@ -14,4 +14,4 @@ There are many methods that can help you find specific elements in an array. The
`arrayname.findIndex(function)`
- returns the index of the leftmost element in the array, that meets the criteria in the function
- - if no such element is found, returns `-1`
\ No newline at end of file
+ - if no such element is found, returns `-1`
From fe21ae22491b2ff9145eebf1bbf4cf58863419ea Mon Sep 17 00:00:00 2001
From: Ansh Grover <56271149+Prometheus7-creator@users.noreply.github.com>
Date: Tue, 13 Jul 2021 00:18:17 +0530
Subject: [PATCH 24/24] Update 00_.md
Typo error- At the end of the first paragraph it reads "interacts wit the site.", change it to "interacts with the site."
---
.../04_When is JavaScript Executed?/00_.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/01_Introduction to JavaScript Development/01_Intro to JavaScript/04_When is JavaScript Executed?/00_.md b/01_Introduction to JavaScript Development/01_Intro to JavaScript/04_When is JavaScript Executed?/00_.md
index 0c0de69..6badb61 100755
--- a/01_Introduction to JavaScript Development/01_Intro to JavaScript/04_When is JavaScript Executed?/00_.md
+++ b/01_Introduction to JavaScript Development/01_Intro to JavaScript/04_When is JavaScript Executed?/00_.md
@@ -1,3 +1,3 @@
-JavaScript code is executed during page loading or when the browser fires an event. All the statements in JavaScript are executed at page loading, even if most of the statements are just functions that are not used until the user interacts wit the site.
+JavaScript code is executed during page loading or when the browser fires an event. All the statements in JavaScript are executed at page loading, even if most of the statements are just functions that are not used until the user interacts with the site.
Function calls or code can be attached as "event handlers" via tag attributes that are then executed when the event is fired by the browser. For example, clicking a button on the screen could trigger a piece of code in the JavaScript to do something. (i.e. change the color of the button).