How to Import Modules in Node JS, Exporting Modules in Node JS, Use Modules with Require, Codecademy

Channel:
Subscribers:
7,740
Published on ● Video Link: https://www.youtube.com/watch?v=RMgcpNaUDu0



Category:
Tutorial
Duration: 18:40
266 views
5


In this JavaScript programming walkthrough we look at How to Import Modules in Node JS, Exporting Modules in Node JS, Use Modules with Require, Codecademy. This lesson is based on the Codecademy "Learn Intermediate JavaScript" course, section "Modules", lesson, "Implementing Modules in Node". Throughout the lesson, we learn about modules in programming. We learn that the word modules, and files, are usually used interchangeably. We are told that modules are used to separate our code and make it easier to read and debug. We learn that modules help us separate our concerns as we are building out applications. While in the past, all our code was usually written within one file, now we are able to separate our code into their own files that make sense, and then we can import or export our modules to be used in other places. This is extremely helpful, and learning how to write modular clean code is based on knowing how to create modules that can easily be exported and imported to be used in other parts of our code. We learn that we are able to do this using modules.export, as well as the, require keyword. In this example, we practice creating modules in Node JS. It is recommended that you have a text editor installed (I use Atom in my example) and Node JS so that you may practice the examples shown. Once you are comfortable creating modules continue on and thanks for watching Implementing Modules in Node
.




Other Videos By We Will Code


2022-04-08Review for Introduction to PHP on Codecademy's Learn PHP Course, Review Beginner PHP Concepts
2022-04-08Todo App, Create, Read, Update, Delete, What is CRUD in PHP, How CRUD Works in PHP, Codecademy PHP
2022-04-08How PHP Comments Work, Comment in PHP, Multi-Line PHP Comment, Single Line PHP Comment, Codecademy
2022-04-08How is PHP Executed, Writing a PHP Script File, Codecademy's Learn PHP, General Purpose Programming
2022-04-07How is PHP Used in HTML, Learn PHP, Codecademy, Build Dynamic Web Pages in PHP, The PHP Interpreter
2022-04-07The History of PHP, Learn PHP History, PHP History Explained for Beginners, Codecademy Learn PHP
2022-04-07Why Learn PHP, Introduction to PHP Programming Language, Codecademy Free Full PHP Programming Course
2022-04-05Node setTimeout Function JavaScript Promises Explained, Promises in JavaScript Explained, Codecademy
2022-04-04Learning how to use JavaScript Promises, Constructing a Promise Object, JavaScript Promise Example
2022-04-04Intro to JavaScript Promises, What is a Promise in JavaScript, Asynchronous Programming Codecademy
2022-04-04How to Import Modules in Node JS, Exporting Modules in Node JS, Use Modules with Require, Codecademy
2022-04-03Why Use Static Methods, Static VS Instance Methods JavaScript Walkthrough, JavaScript Static Methods
2022-04-01Add New Method to Child Class In JavaScript, Learn Intermediate JavaScript Inheritance V, Codecademy
2022-03-31Understanding JavaScript Class Inheritance, Inherit from Parent Class, Inheritance IV, Codecademy JS
2022-03-31First Time Ever Playing Destiny, PS4 Disc In PS5, Destiny Gameplay Guide for First Time Players
2022-03-30Inherit from a Parent Class, Super and Extends Keyword in JavaScript Codecademy's, Inheritance III
2022-03-30Jordan Peterson on Programming, Should I Learn to Program, Jordan Peterson on Coding and Technology
2022-03-30Playing A Plague Tale Innocence Walkthrough, Ch 2 The Strangers, Beginners Guide, New PS5 Games 2022
2022-03-29JavaScript Class Inheritance Explained, Codecademy's Learn Intermediate JavaScript, Inheritance II
2022-03-28How Class Inheritance Works in JavaScript, Class Inheritance in Programming, Codecademy's Learn JS
2022-03-28JavaScript Methods in Class Instance, Use Method Calls on JavaScript Class Instances, Codecademy JS



Tags:
Code
Coding
ES6
JavaScript
Programming
Tutorials