From 0b127645ee706a237d204cda4ad14d1fd8b5d8f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Feje=C5=A1?= Date: Wed, 18 Jul 2018 11:07:22 +0200 Subject: [PATCH 01/10] add glossary/String --- glossary/String.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 glossary/String.md diff --git a/glossary/String.md b/glossary/String.md new file mode 100644 index 000000000..2e9b2452a --- /dev/null +++ b/glossary/String.md @@ -0,0 +1,4 @@ +### String + +String is one of the primitive values in JavaScript. +String is a sequence of characters used to represent text. From 078c7610decc096a8d57e721d1fad98613d33657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Feje=C5=A1?= Date: Wed, 18 Jul 2018 11:16:17 +0200 Subject: [PATCH 02/10] add glossary/Value-vs-reference --- glossary/Value-vs-reference.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 glossary/Value-vs-reference.md diff --git a/glossary/Value-vs-reference.md b/glossary/Value-vs-reference.md new file mode 100644 index 000000000..8f9b572cc --- /dev/null +++ b/glossary/Value-vs-reference.md @@ -0,0 +1,5 @@ +### Value vs reference + +When passing by value we pass a copy of actual variables in the function as a parameter. +When passing by reference we pass a memory address of actual variables in function as a parameter ,therefore any modification on parameters inside the function will reflect in the actual variable. +In JavaScript primitive values are passed by value while objects are passed by reference. From eebb9be153d9aba56baf4e6765d57d0db232491e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Feje=C5=A1?= Date: Wed, 18 Jul 2018 11:23:00 +0200 Subject: [PATCH 03/10] add glossary/Regular-expressions --- glossary/Regular-expressions.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 glossary/Regular-expressions.md diff --git a/glossary/Regular-expressions.md b/glossary/Regular-expressions.md new file mode 100644 index 000000000..beda9a430 --- /dev/null +++ b/glossary/Regular-expressions.md @@ -0,0 +1,4 @@ +### Regular expressions + +Regular expressions (known as regex) are patterns used to match character combinations in strings. +JavaScript provides regex implementation through the `RegExp` object. From cdf50b35ca811ab14129bd38864e97bc902b73f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Feje=C5=A1?= Date: Wed, 18 Jul 2018 11:25:23 +0200 Subject: [PATCH 04/10] add glossary/Event-loop --- glossary/Event-loop.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 glossary/Event-loop.md diff --git a/glossary/Event-loop.md b/glossary/Event-loop.md new file mode 100644 index 000000000..107f25a4a --- /dev/null +++ b/glossary/Event-loop.md @@ -0,0 +1,4 @@ +### Event loop + +The event loop handles all asynchronous callbacks. Callbacks are queued in a loop, while other code runs, and will run one by one when the response for each one has been received. +The event loop allows JavaScript to perform non-blocking I/O operations, despite the fact that JavaScript is single-threaded. From 404af21f8fbc0a63d66ba91e26c1d3463dcb2ba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Feje=C5=A1?= Date: Wed, 18 Jul 2018 11:29:17 +0200 Subject: [PATCH 05/10] add glossary/HTTP-HTTPS --- glossary/HTTP-HTTPS.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 glossary/HTTP-HTTPS.md diff --git a/glossary/HTTP-HTTPS.md b/glossary/HTTP-HTTPS.md new file mode 100644 index 000000000..d8d78146d --- /dev/null +++ b/glossary/HTTP-HTTPS.md @@ -0,0 +1,4 @@ +### HTTP and HTTPS + +The HyperText Transfer Protocol (HTTP) is the underlying network protocol that enables transfer of hypermedia documents on the Web, usually between a client and a server. +The HyperText Transfer Protocol Secure (HTTPS) is an encrypted version of the HTTP protocol. It uses SSL to encrypt all data transfered between a client and a server. From 67a5b6ac221c097ceadc75e58b340e790b0591ea Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Wed, 18 Jul 2018 19:50:11 +0300 Subject: [PATCH 06/10] Update Event-loop.md --- glossary/Event-loop.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glossary/Event-loop.md b/glossary/Event-loop.md index 107f25a4a..fd3f239db 100644 --- a/glossary/Event-loop.md +++ b/glossary/Event-loop.md @@ -1,4 +1,5 @@ ### Event loop -The event loop handles all asynchronous callbacks. Callbacks are queued in a loop, while other code runs, and will run one by one when the response for each one has been received. +The event loop handles all asynchronous callbacks. +Callbacks are queued in a loop, while other code runs, and will run one by one when the response for each one has been received. The event loop allows JavaScript to perform non-blocking I/O operations, despite the fact that JavaScript is single-threaded. From 7e45f14fe8569fefa8b0f22f2705d13cb434cc21 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Wed, 18 Jul 2018 19:50:44 +0300 Subject: [PATCH 07/10] Update and rename HTTP-HTTPS.md to HTTP-and-HTTPS.md --- glossary/{HTTP-HTTPS.md => HTTP-and-HTTPS.md} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename glossary/{HTTP-HTTPS.md => HTTP-and-HTTPS.md} (70%) diff --git a/glossary/HTTP-HTTPS.md b/glossary/HTTP-and-HTTPS.md similarity index 70% rename from glossary/HTTP-HTTPS.md rename to glossary/HTTP-and-HTTPS.md index d8d78146d..1ac999f02 100644 --- a/glossary/HTTP-HTTPS.md +++ b/glossary/HTTP-and-HTTPS.md @@ -1,4 +1,4 @@ ### HTTP and HTTPS The HyperText Transfer Protocol (HTTP) is the underlying network protocol that enables transfer of hypermedia documents on the Web, usually between a client and a server. -The HyperText Transfer Protocol Secure (HTTPS) is an encrypted version of the HTTP protocol. It uses SSL to encrypt all data transfered between a client and a server. +The HyperText Transfer Protocol Secure (HTTPS) is an encrypted version of the HTTP protocol, that uses SSL to encrypt all data transfered between a client and a server. From 72b79bddcb32f49119198fc3c59941c60fa518a7 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Wed, 18 Jul 2018 19:51:08 +0300 Subject: [PATCH 08/10] Update Regular-expressions.md --- glossary/Regular-expressions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glossary/Regular-expressions.md b/glossary/Regular-expressions.md index beda9a430..0ff0e7e93 100644 --- a/glossary/Regular-expressions.md +++ b/glossary/Regular-expressions.md @@ -1,4 +1,4 @@ ### Regular expressions -Regular expressions (known as regex) are patterns used to match character combinations in strings. -JavaScript provides regex implementation through the `RegExp` object. +Regular expressions (known as regex or regexp) are patterns used to match character combinations in strings. +JavaScript provides a regular expression implementation through the `RegExp` object. From 1f641e3d71abd015085b1323f2c19b7cfe0fc618 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Wed, 18 Jul 2018 19:52:58 +0300 Subject: [PATCH 09/10] Update String.md --- glossary/String.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glossary/String.md b/glossary/String.md index 2e9b2452a..5d5efcbd5 100644 --- a/glossary/String.md +++ b/glossary/String.md @@ -1,4 +1,4 @@ ### String -String is one of the primitive values in JavaScript. -String is a sequence of characters used to represent text. +Strings are one of the primitive data types in JavaScript. +They are sequences of characters and are used to represent text. From 7a24cf4cdccdd89e70f7060516c4856f3a334853 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Wed, 18 Jul 2018 19:57:22 +0300 Subject: [PATCH 10/10] Update Value-vs-reference.md --- glossary/Value-vs-reference.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glossary/Value-vs-reference.md b/glossary/Value-vs-reference.md index 8f9b572cc..180f28bab 100644 --- a/glossary/Value-vs-reference.md +++ b/glossary/Value-vs-reference.md @@ -1,5 +1,5 @@ ### Value vs reference -When passing by value we pass a copy of actual variables in the function as a parameter. -When passing by reference we pass a memory address of actual variables in function as a parameter ,therefore any modification on parameters inside the function will reflect in the actual variable. -In JavaScript primitive values are passed by value while objects are passed by reference. +When passing a variable by value, a copy of the variable is made, meaning that any changes made to the contents of the variable will not be reflected in the original variable. +When passing a variable by reference, the memory address of the actual variable is passed to the function or variable, meaning that modifying the variable's contents will be reflected in the original variable. +In JavaScript primitive data types are passed by value while objects are passed by reference.