Skip to content

Commit 48517b7

Browse files
committed
content: remove hoisting exercise pilot
The quiz exercise was only an early cross-format pilot and no longer follows the finalized JavaScript manifest workflow. Remove its markers, definitions, and obsolete aggregate translation source before the JavaScript rollout begins.
1 parent a72b96f commit 48517b7

8 files changed

Lines changed: 0 additions & 124 deletions

File tree

‎langnostic.config.ts‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ export default {
1717
source: './questions/*/en-US.mdx',
1818
target: './questions/*/{locale}.mdx',
1919
},
20-
{
21-
source: './questions/*/exercises/en-US.mdx',
22-
target: './questions/*/exercises/{locale}.mdx',
23-
},
2420
],
2521
},
2622
],

‎questions/explain-hoisting/en-US.mdx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ var expressed = function () {
171171
};
172172
```
173173

174-
<Exercise id="function-declaration-vs-expression" />
175-
176174
- `declared()` returns `'function declaration'`. Function declarations are fully hoisted — both the identifier binding and the function body are available from the top of the scope.
177175
- `expressed()` throws `TypeError: expressed is not a function`. The `var expressed` binding is hoisted and initialized to `undefined`, but the assignment of the function expression happens at its source location. Calling `undefined()` produces the `TypeError`.
178176

‎questions/explain-hoisting/exercises/en-US.langnostic.json‎

Lines changed: 0 additions & 30 deletions
This file was deleted.

‎questions/explain-hoisting/exercises/en-US.mdx‎

Lines changed: 0 additions & 28 deletions
This file was deleted.

‎questions/explain-hoisting/exercises/pt-BR.mdx‎

Lines changed: 0 additions & 28 deletions
This file was deleted.

‎questions/explain-hoisting/exercises/zh-CN.mdx‎

Lines changed: 0 additions & 28 deletions
This file was deleted.

‎questions/explain-hoisting/pt-BR.mdx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ var bar = function () {
3232
console.log(bar); // [Function: bar]
3333
```
3434

35-
<Exercise id="function-declaration-vs-expression" />
36-
3735
Variáveis declaradas via `let` e `const` também sofrem o hoisted. No entanto, ao contrário de `var` e `function`, eles não são inicializados e acessá-los antes que a declaração resulte em uma exceção `ReferenceError`. A variável está em uma "zona temporária morta" desde o início do bloco até que a declaração seja processada.
3836

3937
```js

‎questions/explain-hoisting/zh-CN.mdx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ function foo() {
104104
}
105105
```
106106

107-
<Exercise id="function-declaration-vs-expression" />
108-
109107
这同样适用于生成器 (`function*`)、异步函数 (`async function`) 和异步函数生成器 (`async function*`)。
110108

111109
### `import` 语句的提升

0 commit comments

Comments
 (0)