Skip to content

Commit cd2c7f3

Browse files
committed
Revert "Dynamic imports translated"
This reverts commit 80b37ec.
1 parent f8add8a commit cd2c7f3

File tree

1 file changed

+7
-7
lines changed
  • 1-js/13-modules/03-modules-dynamic-imports

1 file changed

+7
-7
lines changed

1-js/13-modules/03-modules-dynamic-imports/article.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ let modulePath = prompt("কোন মডিউলটি লোড করতে
3838

3939
import(modulePath)
4040
.then(obj => <module object>)
41-
.catch(err => <loading এরর, যদি কোন মডিউল না থাকে>)
41+
.catch(err => <loading error, e.g. যদি কোন মডিউল না থাকে>)
4242
```
4343

4444
অথবা, যদি এটি একটি `async` ফাংশনের ভিতর হয়ে থাকে তবে `let module = await import(modulePath)` ব্যবহার করতে পারি।
@@ -74,26 +74,26 @@ export default function() {
7474
}
7575
```
7676

77-
...তারপর এটাকে এক্সেস করার জন্য আমরা মডিউল অব্জেক্টের `default` প্রপার্টি ব্যাবহার করতে পারি।
77+
...Then, in order to access it, we can use `default` property of the module object:
7878

7979
```js
8080
let obj = await import('./say.js');
8181
let say = obj.default;
82-
// অথাবা, এক লাইনে: let {default: say} = await import('./say.js');
82+
// or, in one line: let {default: say} = await import('./say.js');
8383

8484
say();
8585
```
8686

87-
এখানে সম্পূর্ণ উদাহারনটি রয়েছেঃ
87+
Here's the full example:
8888

8989
[codetabs src="say" current="index.html"]
9090

9191
```smart
92-
রেগুলার স্ক্রিপ্টে ডাইনামিক ইমপোর্ট কাজ করে, তার জন্য `script type="module" প্রয়োজন হয় না।
92+
Dynamic imports work in regular scripts, they don't require `script type="module"`.
9393
```
9494

9595
```smart
96-
যদিও `import()` দেখতে ফাংশন কলের মতো, কিন্তু এটি একটি (`super()` মতো) বিশেষ সিন্টেক্স যার জন্য "parentheses" ব্যবহার করতে হয়।
96+
Although `import()` looks like a function call, it's a special syntax that just happens to use parentheses (similar to `super()`).
9797
98-
তাই আমারা `import` কে কোন ভেরিয়েবলে কপি অথবা `call/apply` করা যায় না।
98+
So we can't copy `import` to a variable or use `call/apply` with it. That's not a function.
9999
```

0 commit comments

Comments
 (0)