DAY 2
● Learn npm init
● Understand [Link]
● [Link] – ensure a list of packages with their version
● // Analogy: list of clothes you want to purchase with size and all, it also
consists of other metadata like name and all.
● [Link] — ensure detailed of every package installed with
version, sub dependencies, store detailed, discount everything…
● it's like a detailed billed
● Both files work together to ensure smooth development for you and your
team.
● Understand Callback Functions
● Let’s understand First the Functions, Like Different ways to write functions
● Then callback Functions
● It’s like a function calling different Functions
● Core Modules of NodeJS
● There are many built-in modules in Nodejs that we can use
● [Link]
● Learn about the ‘fs’ module
→ It creates a file and writes the message inside
● Learn about the ‘os’ module
● → Learn [Link]()
● → Log username
● Write a username into a Txt file with the help of the ‘fs’ system
● [Link] ( ‘module’ )
● → It gives the result of all modules we can do with that file in the nodeJs
● [Link](filename, message, callback);
● Import Files from
● Now create a [Link]
● Import file
● [Link]( ‘notes is starting …’)
● [Link] = 5;
● [Link] = function(a,b){}
● Npm Package - lodash
● npm i lodash
● Widely used library
● Lots of functions which helps deal with data.