Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move new contrib docs #18041

Merged
merged 71 commits into from Jul 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
b244b8c
Move new contrib docs
dipikabh Jul 6, 2022
161fdc8
underscores
Rumyra Jul 6, 2022
ccc291e
renaming
Rumyra Jul 6, 2022
976f799
removing redirect about
Rumyra Jul 6, 2022
6c9059b
creating moving
Rumyra Jul 7, 2022
d036722
experimental
Rumyra Jul 7, 2022
cbbfbdb
does belong
Rumyra Jul 7, 2022
19fb2c1
editorial
Rumyra Jul 7, 2022
b684180
code style guide
dipikabh Jul 7, 2022
e8754fb
writing style guide
dipikabh Jul 7, 2022
488b5c8
howto and seo
Rumyra Jul 7, 2022
fe2bbe1
related_criteria for inclusion
dipikabh Jul 7, 2022
747aeed
file rename, link update
dipikabh Jul 7, 2022
dfaa02c
Updated Syntax for fetch-related pages (#17914)
PrajwalBorkar Jul 17, 2022
2d2a665
Fix wrong example quote (#18458)
buondevid Jul 18, 2022
81e2700
Unshorten code in method definition (#18457)
awxiaoxian2020 Jul 18, 2022
e9dc850
fix: correct the language of code examples (#18455)
yin1999 Jul 18, 2022
00c5b94
Add `const` var declaration to FileSystemFileHandle sample code (#17…
ZhangYiJiang Jul 18, 2022
dda0d84
Update dom-examples links (#18462)
OnkarRuikar Jul 18, 2022
91c0859
MediaRecorder: Update dom-examples links (#18464)
OnkarRuikar Jul 18, 2022
50e8b18
Update dom-example link (#18465)
OnkarRuikar Jul 18, 2022
fbf26d7
update a broken link (#18466)
OnkarRuikar Jul 18, 2022
eca196c
remove a broken link (#18467)
OnkarRuikar Jul 18, 2022
ca32cd6
Update a broken link (#18468)
OnkarRuikar Jul 18, 2022
e168124
Fixes broken live sample (#18456)
awxiaoxian2020 Jul 18, 2022
e61ec25
Intl.NumberFormat - flyby fixes (#18258)
hamishwillee Jul 18, 2022
7c6a48c
Fix `channelCount` semantics in `MediaStreamAudioSourceNode`. (#18472)
padenot Jul 18, 2022
44dca7b
Fix `channelCount` semantics. (#18473)
padenot Jul 18, 2022
ef59c2d
Remove a few pointless references to internal slots (#18461)
Josh-Cena Jul 18, 2022
6c2011c
Fix syntax errors (#18475)
OnkarRuikar Jul 18, 2022
d19d68b
fix: syntax errors in JS example sections (v5) (#18442)
lionralfs Jul 18, 2022
a743948
Use diff instead of js to mark a diff block (#18477)
OnkarRuikar Jul 18, 2022
f8fd5cc
Bump @mdn/yari from 1.10.0 to 1.10.2 (#18479)
dependabot[bot] Jul 18, 2022
15d84ff
Correct a few usage of internal methods (#18476)
Josh-Cena Jul 18, 2022
eef5e4d
Change 'nodes' link to link directly to DOM nodes (#18480)
simonvarey Jul 18, 2022
5cda559
Shorten Global object glossary entry (#18474)
Josh-Cena Jul 18, 2022
7e27a47
FF103 Native Error types are serializable (#18384)
hamishwillee Jul 18, 2022
fd9ca3c
Demix invalid event from GlobalEventHandlers (#18451)
queengooborg Jul 18, 2022
b5503b2
Demix slotchange from GlobalEventHandlers (#18225)
queengooborg Jul 18, 2022
f453fe9
fix: various typos (#18483)
nschonni Jul 18, 2022
414a21e
Fix typo (#18486)
kokke Jul 18, 2022
a15a18d
Fix link text (#18488)
de-oz Jul 18, 2022
633e01b
Add missing period (#18487)
de-oz Jul 18, 2022
0e4bf8a
fix broken link (#18490)
cdignam-segment Jul 18, 2022
11f463c
Remove continuity descriptions from `steps(...)` (#18482)
dshin-moz Jul 19, 2022
294e54f
OpenType guide: font-variant-position is not mutually exclusive with …
js-choi Jul 19, 2022
6d76783
Fix links for other references (#18501)
mfuji09 Jul 19, 2022
6ed44f2
update a broken link (#18500)
OnkarRuikar Jul 19, 2022
32823e7
Comment out ellipsis in code blocks (#18496)
OnkarRuikar Jul 19, 2022
302ccec
Comment out ellipsis in code blocks (#18498)
OnkarRuikar Jul 19, 2022
53ec3a1
Comment out ellipsis in code blocks (#18497)
OnkarRuikar Jul 19, 2022
43ebaea
Elaborate on destructuring assignment (#18495)
Josh-Cena Jul 19, 2022
a71d5f9
Mark kumascript code blocks js -> plain (#18493)
OnkarRuikar Jul 19, 2022
9ca8b11
remove a broken link (#18499)
OnkarRuikar Jul 19, 2022
bf629e5
Demix pointer capture events from GlobalEventHandlers (#18450)
queengooborg Jul 19, 2022
602c0ef
Improvements to a few Number APIs (#18502)
Josh-Cena Jul 19, 2022
33f9b4e
Minor spread syntax rewrite (#18503)
Josh-Cena Jul 19, 2022
fdaf350
Window.open() rework (#18118)
SphinxKnight Jul 19, 2022
f1f86f2
Fix broken block code in `Bracket notation` section (#18507)
nmthuan1405 Jul 19, 2022
a3cff45
Fix typo (#18508)
remvee Jul 19, 2022
5f210be
Fix missing parenthesis (#18509)
teoli2003 Jul 19, 2022
c2d5d7c
Mention string iteration goes by Unicode characters (#18504)
Josh-Cena Jul 19, 2022
4b412a2
Fix "repository of wavetables" text's broken link (#18510)
jeremypearson Jul 19, 2022
b3d14be
remove moved files from origin location
Jul 19, 2022
1cde3f4
Add TBD content to files frontmatter and macros
dipikabh Jul 19, 2022
0ad6479
Add TBD content to more empty files
dipikabh Jul 19, 2022
6de8730
TBD content
dipikabh Jul 19, 2022
75895f7
Add missing front matter data to files
dipikabh Jul 19, 2022
6be1c65
Fix slug
dipikabh Jul 19, 2022
3529c9c
Fix slugs
dipikabh Jul 19, 2022
e26f025
fix remaining writing guideline docs
Jul 19, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
105 changes: 67 additions & 38 deletions files/en-us/_redirects.txt

Large diffs are not rendered by default.

712 changes: 164 additions & 548 deletions files/en-us/_wikihistory.json

Large diffs are not rendered by default.

45 changes: 3 additions & 42 deletions files/en-us/glossary/global_object/index.md
Expand Up @@ -14,50 +14,11 @@ In JavaScript, there's always a global object defined. In a web browser, when sc
- Code running in a {{domxref("Worker")}} has a {{domxref("WorkerGlobalScope")}} object as its global object.
- Scripts running under {{Glossary("Node.js")}} have an object called [`global`](https://nodejs.org/api/globals.html#globals_global) as their global object.

> **Note**: Unlike {{jsxref("Statements/var", "var")}}, the statements {{jsxref("Statements/let", "let")}} and {{jsxref("Statements/const", "const")}} do not create properties of the global object.
The [`globalThis`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis) global property allows one to access the global object regardless of the current environment.

## `window` object in the Browser
[`var`](/en-US/docs/Web/JavaScript/Reference/Statements/var) statements and [function declarations](/en-US/docs/Web/JavaScript/Reference/Statements/function) at the top level create properties of the global object. On the other hand, {{jsxref("Statements/let", "let")}} and {{jsxref("Statements/const", "const")}} declarations never create properties of the global object.

The `window` object is the Global Object in the Browser. Any Global Variables or Functions can be accessed as _properties_ of the `window` object.

### Access Global Variables

```js
var foo = "foobar";
foo === window.foo; // Returns: true
```

After defining a Global Variable `foo`, we can access its value directly from the `window` object, by using the variable name `foo` as a property name of the Global Object `window.foo`.

#### Explanation:

The global variable `foo` was stored in the `window` object, like this:

```js
foo: "foobar"
```

### Access Global Functions

```js
function greeting() {
console.log("Hi!");
}

window.greeting(); // It is the same as the normal invoking: greeting();
```

The example above explains how Global Functions are stored as _properties_ in the `window` object. We created a Global Function called `greeting`, then invoked it using the `window` object.

#### Explanation:

The global function `greeting` was stored in the `window` object, like this:

```js
greeting: function greeting() {
console.log("Hi!");
}
```
The properties of the global object are automatically added to the {{glossary("global scope")}}.

## See also

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/glossary/shadow_tree/index.md
Expand Up @@ -7,7 +7,7 @@ tags:
- Shadow Tree
- shadow DOM
---
A **shadow tree** is a tree of DOM {{Glossary("node", "nodes")}} whose topmost node is a **shadow root**; that is, the topmost node within a **shadow DOM**. A shadow tree is a hidden set of standard DOM nodes which is attached to a standard DOM node that serves as a host. The hidden nodes are not directly visible using regular DOM functionality, but require the use of a special [Shadow DOM API](/en-US/docs/Web/Web_Components/Using_shadow_DOM) to access.
A **shadow tree** is a tree of DOM [nodes](/en-US/docs/Glossary/Node/DOM) whose topmost node is a **shadow root**; that is, the topmost node within a **shadow DOM**. A shadow tree is a hidden set of standard DOM nodes which is attached to a standard DOM node that serves as a host. The hidden nodes are not directly visible using regular DOM functionality, but require the use of a special [Shadow DOM API](/en-US/docs/Web/Web_Components/Using_shadow_DOM) to access.

Nodes within the shadow tree are not affected by anything applied outside the shadow tree, and vice versa. This provides a way to encapsulate implementation details, which is especially useful for custom elements and other advanced design paradigms.

Expand Down
Expand Up @@ -55,7 +55,7 @@ You have been provided with some raw HTML/CSS and a few text strings and JavaScr
- Generates a silly story when the "Generate random story" button is pressed.
- Replaces the default name "Bob" in the story with a custom name, only if a custom name is entered into the "Enter custom name" text field before the generate button is pressed.
- Converts the default US weight and temperature quantities and units in the story into UK equivalents if the UK radio button is checked before the generate button is pressed.
- Generates a new random silly story everytime the button is pressed.
- Generates a new random silly story every time the button is pressed.

The following screenshot shows an example of what the finished program should output:

Expand Down
3 changes: 2 additions & 1 deletion files/en-us/learn/javascript/objects/basics/index.md
Expand Up @@ -177,7 +177,7 @@ person['name']['first']
This looks very similar to how you access the items in an array, and it is basically the same thing — instead of using an index number to select an item, you are using the name associated with each member's value.
It is no wonder that objects are sometimes called **associative arrays** — they map strings to values in the same way that arrays map numbers to values.

Dot notation is generally preferred over bracket notation because it is more succint and easier to read.
Dot notation is generally preferred over bracket notation because it is more succinct and easier to read.
However there are some cases where you have to use brackets.
For example, if an object property name is defined at runtime then you can't use dot notation to access the value, but you can pass the name as a variable inside brackets as shown with `input` below:

Expand All @@ -188,6 +188,7 @@ const person = {
}
const input = prompt('Get name or age?')
console.log(person[input])
```

## Setting object members

Expand Down
Expand Up @@ -118,14 +118,14 @@ To install Angular on your local system, you need the following:
You can use the Angular CLI to run commands in your terminal for generating, building, testing, and deploying Angular applications.
To install the Angular CLI, run the following command in your terminal:

```js
```bash
npm install -g @angular/cli
```

Angular CLI commands all start with `ng`, followed by what you'd like the CLI to do.
In the Desktop directory, use the following `ng new` command to create a new application called `todo`:

```js
```bash
ng new todo --routing=false --style=css
```

Expand All @@ -137,13 +137,13 @@ If you are prompted to enforce stricter type checking, you can respond with yes.

Navigate into your new project with the following `cd` command:

```js
```bash
cd todo
```

To run your `todo` application, use `ng serve`:

```js
```bash
ng serve
```

Expand Down
67 changes: 0 additions & 67 deletions files/en-us/mdn/about/index.md

This file was deleted.

39 changes: 0 additions & 39 deletions files/en-us/mdn/contribute/howto/create_and_edit_pages/index.md

This file was deleted.