Q. How do you import a function from another module in JavaScript?

आप जावास्क्रिप्ट में किसी अन्य मॉड्यूल से फ़ंक्शन कैसे आयात करते हैं?

A
import { myFunc } from "./module.js";
B
require("./module.js").myFunc;
C
include "./module.js";
D
load("./module.js");

Explanation

Explanation will be available soon. Please stay tuned.

व्याख्या जल्द ही उपलब्ध होगी। कृपया बने रहें।

Invest in Future Achievers

Your support helps keep Exam Achiever 100% free for students preparing for exams.

Thanks for your support!

Comments

Leave a Comment