From 9432d6d936b675d91836b502153d727e02e4a2d6 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 88bff99a40a8095b80db5e7492025617685d5036 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 5272cc9b0ba35b90af09604017300b5d17432453 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 e86870d70b56c25d633557fd8ce0341a539e88b2 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 abad97c261d9a42c2f76788f0c7ed09fa0009392 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 103864d0b9b0c58cdd563ea06ac698e795fef3ca 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 b532b048c8bd3eea26023445fd511e3eec280e18 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 9063b57d4911ce5782c2fc8e6afa07c51081b850 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 041e0556807b50ab3b22c487bba261f5adcf2853 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 cbfe6fcdfba2897dd8f0b32b526c99993418895b 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.