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 1/9] 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 2/9] 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 3/9] 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 4/9] 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 5/9] 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 6/9] 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 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 7/9] 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 8/9] 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 9/9] 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). pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy