From 3490b692c5e1331c14017e9b244a59a7ea297ff8 Mon Sep 17 00:00:00 2001 From: name Date: Thu, 14 Jul 2022 14:10:22 -0700 Subject: [PATCH 1/5] js-fix --- react/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react/README.md b/react/README.md index e7679d26da..fa6f9de145 100644 --- a/react/README.md +++ b/react/README.md @@ -251,10 +251,10 @@ This style guide is mostly based on the standards that are currently prevalent i // bad - + // good - + ``` ## Spacing From 2e64cb1839ca7baf6dc599ed488f5cf1d0e8d170 Mon Sep 17 00:00:00 2001 From: name Date: Mon, 18 Jul 2022 17:54:17 -0700 Subject: [PATCH 2/5] deploy --- react/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react/README.md b/react/README.md index fa6f9de145..3b4979ecfe 100644 --- a/react/README.md +++ b/react/README.md @@ -251,10 +251,10 @@ This style guide is mostly based on the standards that are currently prevalent i // bad - + // good - + ``` ## Spacing From 928930ffc6db9f331a3a64fc6d6182f81a9ecf89 Mon Sep 17 00:00:00 2001 From: name Date: Mon, 18 Jul 2022 17:57:17 -0700 Subject: [PATCH 3/5] deployy --- react/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/README.md b/react/README.md index 3b4979ecfe..c2c0359be9 100644 --- a/react/README.md +++ b/react/README.md @@ -251,7 +251,7 @@ This style guide is mostly based on the standards that are currently prevalent i // bad - + // good From 2cc477a2f5c7c8f02049dcf9137e8a068dc35d6b Mon Sep 17 00:00:00 2001 From: name Date: Wed, 10 Aug 2022 16:19:29 -0700 Subject: [PATCH 4/5] deploy --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3b1af22597..9e4d2930b0 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,8 @@ Other Style Guides ## Types + Programming languages all have built-in data structures, but these often differ from one language to another. This article attempts to list the built-in data structures available in JavaScript and what properties they have. These can be used to build other data structures. Wherever possible, comparisons with other languages are drawn. + - [1.1](#types--primitives) **Primitives**: When you access a primitive type you work directly on its value. From 1c553cb24f8d9088450520e64e63621e378071fd Mon Sep 17 00:00:00 2001 From: name Date: Wed, 17 Aug 2022 15:36:05 -0700 Subject: [PATCH 5/5] deploy --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 9e4d2930b0..bf0b5a05c1 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,8 @@ Other Style Guides ## Types + *Explains what types are in Javascript* + Programming languages all have built-in data structures, but these often differ from one language to another. This article attempts to list the built-in data structures available in JavaScript and what properties they have. These can be used to build other data structures. Wherever possible, comparisons with other languages are drawn. @@ -75,6 +77,8 @@ Other Style Guides - `symbol` - `bigint` + *Goes over numbers* + ```javascript const foo = 1; let bar = foo; @@ -93,6 +97,8 @@ Other Style Guides - `array` - `function` + *Goes over arrays* + ```javascript const foo = [1, 2]; const bar = foo; @@ -111,6 +117,8 @@ Other Style Guides > Why? This ensures that you can’t reassign your references, which can lead to bugs and difficult to comprehend code. + *Vars and Consts* + ```javascript // bad var a = 1; @@ -143,6 +151,8 @@ Other Style Guides - [2.3](#references--block-scope) Note that both `let` and `const` are block-scoped, whereas `var` is function-scoped. + *Goes over scopes in Javascript* + ```javascript // const and let only exist in the blocks they are defined in. { @@ -164,6 +174,8 @@ Other Style Guides - [3.1](#objects--no-new) Use the literal syntax for object creation. eslint: [`no-new-object`](https://eslint.org/docs/rules/no-new-object) + *Goes over objects* + ```javascript // bad const item = new Object();