Modules in JavaScript ES6 | Importing and Exporting Modules in JavaScript | JavaScript Tutorial

Опубликовано: 19 Октябрь 2024
на канале: SFDC Stop
1,615
27

Hello Trailblazers, In this video we're going to learn about ES6 Modules in JavaScript. We'll see how to define modules, export the functions inside modules and import them in JavaScript. We'll also learn the different ways of importing modules and see how we can export a function by default from a module. At the end, we'll learn about renaming module functions when they're imported in other js files.

Code Snippet:-

1. modules.js (test.js):- https://gist.github.com/rahulmalhotra...

2. calculator.js:- https://gist.github.com/rahulmalhotra...

3. constant.js:- https://gist.github.com/rahulmalhotra...

Subscribe to SFDC Stop:- https://www.youtube.com/c/sfdcstop?su...

Interested in learning about LWC ? Have a look at this playlist:-    • Salesforce Lightning Web Component (L...  

Interested in learning about Scratch Orgs and SFDX ? Have a look at the playlist:-    • Getting started with Scratch Orgs and...