@@ -38,7 +38,7 @@ let modulePath = prompt("কোন মডিউলটি লোড করতে
3838
3939import (modulePath)
4040 .then (obj => < module object> )
41- .catch (err => < loading error, e . g . যদি কোন মডিউল না থাকে> )
41+ .catch (err => < loading এরর, যদি কোন মডিউল না থাকে> )
4242```
4343
4444অথবা, যদি এটি একটি ` async ` ফাংশনের ভিতর হয়ে থাকে তবে ` let module = await import(modulePath) ` ব্যবহার করতে পারি।
@@ -74,26 +74,26 @@ export default function() {
7474}
7575```
7676
77- ...Then, in order to access it, we can use ` default ` property of the module object:
77+ ...তারপর এটাকে এক্সেস করার জন্য আমরা মডিউল অব্জেক্টের ` default ` প্রপার্টি ব্যাবহার করতে পারি।
7878
7979``` js
8080let obj = await import (' ./say.js' );
8181let say = obj .default ;
82- // or, in one line : let {default: say} = await import('./say.js');
82+ // অথাবা, এক লাইনে : let {default: say} = await import('./say.js');
8383
8484say ();
8585```
8686
87- Here's the full example:
87+ এখানে সম্পূর্ণ উদাহারনটি রয়েছেঃ
8888
8989[ codetabs src="say" current="index.html"]
9090
9191``` smart
92- Dynamic imports work in regular scripts, they don't require `script type="module"`.
92+ রেগুলার স্ক্রিপ্টে ডাইনামিক ইমপোর্ট কাজ করে, তার জন্য `script type="module" প্রয়োজন হয় না।
9393```
9494
9595``` 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" ব্যবহার করতে হয়।
9797
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` করা যায় না।
9999```
0 commit comments