crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

What is modules and how to use in Javascript
Question Posted on 30 Apr 2020Home >> JavaScript >> JavaScript Questions >> What is modules and how to use in Javascript

What is modules and how to use in Javascript
A module is just a file and we can say One script is one module. Modules are very small units of independent, reusable code that is used as building blocks in creating a non-trivial Javascript application. Modules can load each other by using special directives like export and import to interchange functionality. Which is used to call functions of one module from another one.

(1)export

keyword variables functions and lables that is accessible from outside the current module.

(2)import

allows the import of functionality from other modules.

Modules always use strict and code is executed only once. Exports are created once and shared between importers.
0
0



.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions

regular expression for credit card like VISA, MASTER, AMEX

How to remove item from dropdownlist in Javascript

Different Data Types in Javascript in 2015?

syntax to get dropdownlist text in javascript

The snippet that has to be used to check if “a” is not equal to “null” is _________






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap