@@ -38,7 +38,7 @@ let modulePath = prompt("কোন মডিউলটি লোড করতে
38
38
39
39
import (modulePath)
40
40
.then (obj => < module object> )
41
- .catch (err => < loading error, e . g . যদি কোন মডিউল না থাকে> )
41
+ .catch (err => < loading এরর, যদি কোন মডিউল না থাকে> )
42
42
```
43
43
44
44
অথবা, যদি এটি একটি ` async ` ফাংশনের ভিতর হয়ে থাকে তবে ` let module = await import(modulePath) ` ব্যবহার করতে পারি।
@@ -74,26 +74,26 @@ export default function() {
74
74
}
75
75
```
76
76
77
- ...Then, in order to access it, we can use ` default ` property of the module object:
77
+ ...তারপর এটাকে এক্সেস করার জন্য আমরা মডিউল অব্জেক্টের ` default ` প্রপার্টি ব্যাবহার করতে পারি।
78
78
79
79
``` js
80
80
let obj = await import (' ./say.js' );
81
81
let say = obj .default ;
82
- // or, in one line : let {default: say} = await import('./say.js');
82
+ // অথাবা, এক লাইনে : let {default: say} = await import('./say.js');
83
83
84
84
say ();
85
85
```
86
86
87
- Here's the full example:
87
+ এখানে সম্পূর্ণ উদাহারনটি রয়েছেঃ
88
88
89
89
[ codetabs src="say" current="index.html"]
90
90
91
91
``` smart
92
- Dynamic imports work in regular scripts, they don't require `script type="module"`.
92
+ রেগুলার স্ক্রিপ্টে ডাইনামিক ইমপোর্ট কাজ করে, তার জন্য `script type="module" প্রয়োজন হয় না।
93
93
```
94
94
95
95
``` smart
96
- Although `import()` looks like a function call, it's a special syntax that just happens to use parentheses (similar to `super()`).
96
+ যদিও `import()` দেখতে ফাংশন কলের মতো, কিন্তু এটি একটি (`super()` মতো) বিশেষ সিন্টেক্স যার জন্য " parentheses" ব্যবহার করতে হয়।
97
97
98
- So we can't copy `import` to a variable or use `call/apply` with it. That's not a function.
98
+ তাই আমারা `import` কে কোন ভেরিয়েবলে কপি অথবা `call/apply` করা যায় না।
99
99
```
0 commit comments