Unlock all 45 lessons of React.jsFull course ₹40,000 · paid
ES6 Refresher and Tooling Setup Before Learning React
A free lesson from Skill-Lync's React.js course, on Grow by Skill-Lync · Last updated 16 Nov 2026 · Session: “Week 1 Session 1”
What will you learn in this free React.js lesson?
The instructor outlines the 12-week plan, then reviews the HTML, CSS and JavaScript needed for React. Live demos compare var, let and const, show how this behaves in function constructors and arrow functions, and use the array map method, before covering Node.js, Git and VS Code setup.
- Differences between var, let and const
- How this changes inside arrow functions
- Using the array map method on lists
- Installing Node.js LTS, Git and VS Code
What comes after lesson 1?
The next free lesson is lesson 2, “Your First React App, Virtual DOM and Component Basics” (54 min). Later in Skill-Lync's React.js course (paid): lesson 4, Week 2 Session 2; lesson 5, Week 3 Session 1; lesson 6, Week 3 Session 2. The full course has 45 lessons (20 h 46 min of video); see the course overview or its price and syllabus.
Lesson transcript
Machine transcript of the lesson audio (lightly cleaned). Technical terms may contain errors; the video is the reference.
Hello, welcome to the Web Development with React.js course. It's a 12-week course, and I'm pretty much excited to start this off today. So there are many things that we are going to cover in this entire course, which will be of 12 weeks. And I'm pretty much excited to start this off. So for week one, the title is Advanced Front-end Development with React.js. So let's go over the table of content. We are going to cover the prerequisite. So when we are saying like we are learning the React.js, there are a few simple steps that we need to take.
So what are those steps? And hopefully we need to cover that before even start this course. However, there are a few things which I will touch base again, like ES6 JavaScript concepts, which we are heavily going to use on React.js development. So I'll be covering that. So those prerequisites we will cover. Then there are set of software which are required for this entire development. So we will go over the software requirements and editors that we are going to use. Then we will jump on the what is React.js and we will go to the official React website and try to explore their website and check out how they've lined it up.
And that will be the introduction to the React.js and React.docs. Then we will also compare React.js with other frameworks and libraries. Because see, React is not the alone in the front-end universe. There are other frameworks also. But still, React is a huge demand and it's pretty much disrupting everything. So we are going to take a look at that. What is the market share on the React in terms of development, in terms of job opportunities. And like, since this is the programming lecture series, we'll start our journey with the Hello World program.
So that is the demo that we are going to cover. Then something called as a virtual DOM, which makes React standout than other front-end libraries. And we are going to see that diffing algorithm, which uses a virtual DOM internally. And we are going to cover a simple demo for that, where we will compare what is a non-React way to achieve the same thing. And what is the React smartness, which Facebook added. And what that smartness is doing for React to boost the performance. So we are going to take a look at the taping algorithm.
Then, in order to set up a React project, there will be a standard project structure. Which, obviously, one can grow as per his or her requirement. But there will be some best foldering pattern that we are using. So we will go over that. And then, of course, we will dive into component world. Because everything these days in the front-end context is a component. So we will see what are the components. Maybe we will go over any random website and try to figure out atomic components from that website.
And then we will check out how we can define and declare components in React. So there are two ways, potentially, where you can define a component. One is a functional component. And another is a class-based component. And we will look at their demos. So that's it. That is the lineup for week one. So let's start. So what we are expecting is by end of this week, you will gain a knowledge about prerequisite and software tools required for the program in React.js. Then you should get a crux of the React.js and you should be able to understand why React is different than other libraries or frameworks.
Then, as I indicated, we will go over the folder structure. So you should be able to understand that and then types of component which are going to use in the React.js development. So that is all about the learning objectives. So prerequisite. So, as I indicated, when it comes to the React, it's a library for a front-end development, right? And anything in the front-end world should have at least these three things. And what are those? A simple answer. HTML, CSS, JavaScript. So now, what is HTML? Now, HTML is Hypertext Markup Language.
It's a full form of that HTML part. But basically, it's a way or a standard with which a browser, a web browser can understand your information. And you can present that information to the end user. That is HTML, a structural language, which looks similar to the XML pattern that we used to use. But a bit more to that, and we call it as a Hypertext Markup Language. It's a Markup Language. It's a Marking Up Language. Then, CSS. Now, it's a style sheet language or standards, you can say, to beautify your markup.
So, whatever you write in HTML can be beautified using CSS. And then, JavaScript. Now, if you want to make that markup, which got beautified after applying the CSS, there is something called as a JavaScript, which you need to write. So, that you can, or a user can interact with that markup. So, that is JavaScript. So, all these three things, HTML, CSS, and JavaScript, which is bare minimum to know. And every React, JS, beginner should, I would not say, worked heavily, but should have a good hold on this HTML, CSS, and JavaScript.
And there is something called as a modern JavaScript. Like, recently, JavaScript introduced a few modern syntaxes, a few modern techniques in the JavaScript. Basically, they upgraded it. So, we should be able to understand those because those are going to make a difference in the React world. People, and in general, developer, are using it heavily. So, we should aware of the modern JavaScript standard. And, which is, we call it as a ES6. So, ES6 is actually making React coding very easy. So, that everyone should aware of it.
And some part of it, I'll be covering. And so, some part of it is what I'm going to cover in this week one. But, apart from these four things, there is absolutely nothing you need to know. Know any fancy library or a framework knowledge is required. Programming experience. Any basic level of programming experience would do. If you are a bit hold on to, let's say, C++, C, or a bit of Java, then it's a big advantage, I would say. Because, you are already familiar with the programming construct.
And if you are familiar with the programming construct, like if, else, for, it should not be that difficult for you to understand the React. And, with few experiments and practice, you can achieve that pro-React mark. Let's go over the prerequisite parts, as I indicated. And, I would like to touch base something on a modern JavaScript. Because, this is something that we are going to use heavily throughout the React. So, these few things, which I have listed in this slide, are very important and crucial to understand.
So, we are definitely going to touch base on that, so that, these things will refresh your understanding about them. Let me just jump over my terminal. And, let me open some code. I'm using Visual Studio Code. We'll cover this in detail. But, in this part, I just want you to run to the ES6 standard, which is why I'm directly jumping on that. And, we'll go over the editor part later. But, for now, let's just look at all these things and try to make sense and understand those.
Okay. So, first part is understanding var versus let versus const. So, what are these? So, these are basically a construct in the JavaScript with which you can declare a variable. So, let's start with this. So, in order to run this program, I'll just go over the project. So, this is the index.html. This is the usual index.html you write in any beginner level HTML and JavaScript class. So, this is the same thing. And, I have a bunch of external JavaScript files to it. So, what I'll do is I'll uncomment one by one and we will try to.
Explore them one by one. There is a live web server which I've installed as a VS Code extension and we are going to run that and that will trigger this website a straight away. Okay, so this is the dev, Modern JavaScript Touchbase, which is what I'm rendering, which is then indicates me that yes, this application is running. So, I'm just linking a first file to it, which is one underscore var underscore vs underscore let dot js, which is this file and let's see what this file offers to us.
So, here's the function. This is how you define a function in JavaScript and now this function has line number 6, which indicates okay var test equal to 10. So, we are declaring and defining a variable called as test. So far, so good. Then there is a if condition. Now, this is a conditional construct which says if test, then go inside it and then do something like this var test equal to 20. So, I'm using the same variable. So, I'm using the same variable. I'm redeclaring and defining the same variable and then I need to guess the output.
So, just think about it. What will be the output over here? We will definitely run but before that I want you guys to think that what could be the output over here? And then we are coming out of this if construct and at line number 16, I'm consoling it again. So, I want you guys to think a bit about this. Like what will be output at this point and what will be output at this point? I'll give you a couple of moments to just think about it and I'll run otherwise.
Okay. So, let's run. I'm going to console and here are my outputs. First, console 20. Second, console 20. Interesting, right? If you are coming from a background of C++, Java, it sounds very interesting. But yeah, JavaScript work in this way itself. So, var is basically has a functional or a lexical scope which means you can redefine and redeclare any variable which has been declared using var and then you can update that variable which takes that effect rest of your function. So, let's say I have declared and defined test to 10.
I defined it to 10 and then I've override the same test variable. Now, when I'm saying var test again, I'm not creating any different variable. What I'm doing over here is I'm using the same test variable which is available in the same scope. Why? Because var works in that way. It has access to its own functional or lexical scope. Which is why we are holding on to the same variable. So, this is essentially writing something like this. Okay. So, we have updated value of test to 20 which is why over here 20 which is fine.
But what is interesting is once you come out of this loop that effect persists and line number 15 also consoles the same thing which is 10. But things get changed when you use let. Okay. So, what is let? Now, let is let has a block scope. Var has the functional scope but it has a block scope. What it says is if you define and declare something like this and then you are again doing something like this then this console will give you 20 but that will not override your test variable defined outside this block scope.
So, when I am saying functional scope this entire thing is a functional scope. When I am saying block scope there are two block scope over here. One is this entire function. Second thing is this block of code. So, there are two scopes over here. One is the outer of if part. Which is this part and this part and then inner side of if. So, if we just run this let demo output is 20 and 10. So, this is 20 and then this again encircles to 10 which we have declined and defined and line number 24.
So, this is a major difference between a let and var. Now, there is one more case where let's say in the same scope let's say in the same scope I try to re-declare a variable with the same name. Let's say over here I am doing let 30 some reddish lines. Okay. So, that is something because of my editor. Let's ignore that for a minute and let's see the output. And no output. Why? Oh, but there is a error. What is that? Uncaught syntax error identifier test has already been declared.
And where it shows? Oh, at line number 27 which means this. So, what JavaScript is trying to tell me is. Hey, you already defined and declared test in the same block scope. Now, I will not allow you to re-declare a variable with the same name. It could have worked if I have used var over here. It could have worked. Let me just. Sorry about that. But it could have worked if we have something like this. It's still okay. It's still okay. Why? Because it's a var.
And it will run absolutely fine. And without any complaint because it's var. But when I'm switching back to the let, it will start complaining. So, you see, basically it's enforcing some extra rules which were not available in JavaScript version 1 or not version 1 actually. But in a previous version of JavaScript with the ES6 after introduction of let, they're enforcing some rules so that you will get that block scope and you don't accidentally re-declare your variable in the same scope. So, that is about a let and var.
Now, what is const? Now, const is basically a way to define a constant. Let's say you have constant test and you have set that value to now. The main part is if I try to reassign force to let's say angular, this will be error. Assignment to constant variable. This is not allowed. This is a type error. So, this is not allowed because you have set it's a constant. And constant never should change. But if you switch this to let, it's fine. No one is complaining. And if you console course, it will give you let's value.
Simple, right? So, that is const. So, we are clear about usage of let, var and constant. Okay. So far, so good. Now, let's check out what are the arrow functions. For that, let me uncommend the first demo which we have just seen and uncommend the other one. So, come to the arrow function. But before arrow function, let's try to understand how we can create objects in JavaScript using just a function constructor. Now, what is a function constructor? Now, in JavaScript, there are various ways to create objects.
There is one way or ES6 way of using classes which are introduced recently. But previously, we used to create objects in JavaScript using just the functions. Okay. The functions are the first class citizens of this language. So, you can create objects just using functions. So, for example, over here, what I'm doing is I'm declaring a function called car which takes two parameters. One is model and another is year. And I'm just setting that to internal variable. Why this is there? I'll explain. But I'm setting that to some internal variables.
And then I'm consoleing this, this variable. Now, what is this? Now, this engine. In the programming, it points to your current execution object. The current, it points to current context, which is executing. For example, if I am creating the object of car, it will point me to my current executed object. So, for example, if I created a new Swift, new car, this is my function. This is my class. So, I am using this class to create an object which has two properties. One is model name, which is called as a Swift.
And second is a year, which is a 2000. So, what will be this? So, let's see. So, if I see, let me comment all this noise. Okay. So, if I console, it gives me a same car model. It has one property called as a Swift and another property a year to 2000. So, it's giving me all these properties back. So, this is the object. This is the object. So, this is the returning me object which I have created using a new. So, this always points to object executing at given time.
Okay. So, similarly, if I creating an object, another object with some another model in here, this will point me to that object. Okay. So, this always points to a current object which is an execution. Now, the fun part is if you are creating an object using a function constructor method, this always points to current executing object. But, what if you just call this car directly? It is possible to just call it also, right? Because in other languages, we have class construct. Rather than function, what we say is class.
Something like this. And then, we will take it from there, creation of object. But, in JavaScript, you can do same thing using function also. But, if it is a function, you can call that function directly, which is possible. So, now, line number 24 is doing what? It's calling that car. Now, what will happen? Let's see what happened to this now. If I go over here. Oh, what is this? It points me to some window object. It's pointing to some window object. Okay. So, the conclusion of this part is, if you are creating an object using a function constructor method, your this always points to that current executing object.
But, if you are calling that function directly, then this always points to a global object. Now, what do you mean by a global object? Now, global object is the one for a browser. It's a Windows object. You are using Windows, right? You are using browser window. So, that's why it's a window object. If you are running a JavaScript using V8 Node.js, there will be a different global object. Because, JavaScript is platform agnostic, right? It irrespective of platform. You can run JavaScript in any device. It can be your mobile.
It can be any microprocessor. You just need a virtual environment to run your JavaScript code. And, that's it. So, it's a platform agnostic. So, this global object might be different at different platform. For a browser, it will be a window. So, takeaway from here is, if you are creating a new object. Using a function constructor. Then, your this should point to your current executing object. Otherwise, it should point to your global object. If you are calling that function directly. So far, so good. Now, with this, there is a problem.
Now, what is the problem? Let's say, I want to create a class object. I want to create an object of class car. And, then my functionality is, when I construct a new car out of a factory. My machine should notify me, saying, okay. This creation of this and this particular model is completed from the factory. So, I want to just print this message. Okay. So, what will happen is, once I call this new car with notification. What should happen is, it should set model to internal property.
Year to internal year property. Then, it should console this, which we already did. It will console the object which we are executing. And, then I have defined a function. Now, you might be, then you might see, oh, whatever, what we are doing over here. We are creating function and assigning to the variable. Is that possible? Yes. In JavaScript, you can assign a function to variable and execute that function by reference. So, what essentially you are doing over here is, you are passing the address of this function to some variable and then executing that function.
So, that is perfectly valid in JavaScript. Okay. So, what I am doing over here is, I declared this function. Now, I am calling this function is completed. So, once I have completed setting these properties, I am calling this function. And, inside this function, I am writing this.model is completed from a factory. Now, remember, what I told, when I am calling a function directly without new, this points to global object. Now, it is the same case over here. Now, I am calling is completed directly without new.
Now, I am calling this with new. Now, I am calling the car with notification with new. But, I am not calling is completed with new, which means this points to global object. Check it out. Now, there are two consoles. One is this. Right? This is my current object. And then, second console, this.model, it is saying undefined. Why? Because this is my window object. There is nothing called as a model in my window object. There will not be. Right? It is not possible. Like, window is my global.
Right? So, window object is this. Can you see any property like model over here? No. Right? It will not be there. Because it is a custom property defined by us. So, which is why there is undefined. So, it is saying undefined is completed from factory. So, now, this is a problem. Right? We want Swift to be displayed over here. But, instead of that, it is displaying undefined. Doesn't make sense. Right? Okay. Which is why the concept of arrow function comes into the picture. Now, what they introduced is, okay.
So, how they can fix this problem? So, they started thinking and they come up with a funny looking syntax. And, I am adding this flat arrow operator. This operator calls flat arrow. Okay. This is your function parentheses. I removed the function keyword. And, I replace the space between, space between this parenthesis and curly braces with flat arrow operator. And, this becomes a function now. But, this is a special function. Why? Because, once you use a flat arrow operator, your this will not point to the global.
But, it will start pointing to your parent context. Or, parent this. Now, what will be a parent this? Now, this function sits inside this function. And, so, parent this is this. So, now it will start immediately reflecting Swift over here. Let's check it out. Swift is completed from a factory. Excellent. That is what we wanted. Right? So, this dot model is now pointing to the correct model of the car. So, take away from this is, when we switch to the arrow function. Now, this flat arrow operator with the function syntax, we call entire thing as a arrow function.
So, now if you use a arrow function, then it offers a special behavior to that function. Where this, inside the arrow function, never points to the global, it always points to parent context. Or, a parent this object. Now, some people might say, like, the difference between a normal function and arrow function is, they want to shrink the syntax. You, if, if your normal function, if there is a normal function, you need to write a lot. But, they come up with the arrow function because they want developer to write a short and sweet.
This is not why arrow functions came into the picture. Arrow functions came into the picture for a fact that someone can refer to parent context. Now, here, we are referring to parent context, isn't it? So, that is why arrow function came into picture. And, that is why it is important. So, far so good. So, far so good. Okay. Let's go to the classes. What are the classes in ES6? It's very simple. Like how you define and declare your classes in java.net. Exactly the same. So how we are. Okay. So over here I have shown you how we can create objects using the functional constructor method. Now there is a usual class syntax that is also possible in JavaScript. So class.
Class keyword and then name of the class. Then you have a constructor for that class. Okay. So whatever you are doing in the function can be done in your constructor. And then your usual methods. Create object and executor method. Okay. So let's run it. But before that I need to uncomment the previous demo. I need to comment the previous demo and uncomment a new one. So it's very simple. Right. This is how you create a class. This is how you create a class and executor one of its method. Right. Let's check it out. So I need to run this class to create object car and then wanted to execute run. Let's check it out.
From. From. It's correct. Right. That is what we are expecting. Very simple. Okay. Let's comment it out. Let's check out how inheritance can be possible in JavaScript. So same thing. We are creating another class called SUV which extends car. So this car is now base class. Very simple. A normal object oriented concept. So now its base is a car. And then I have constructor for this. And there is something called as a super. Yeah. Now this is something which is different in JavaScript. You have to explicitly pass a control to the base class. So whatever properties that you are passing to your child class. If you want to connect them through the inheritance. You need to call a super. When you call a super. All the properties which you want to pass to the base can be passed in a parameter.
So now what will happen is once you call a constructor. So now what will happen is once you call this super. It will call a constructor of your base class. From where it will pick a base class. From the exchange. Whatever you will give in a exchange. It will pick a constructor of that class. And it will execute it. So what I'm doing is. In my SUV. I have one proprietary method. Called a proprietary property. That is a doors. Okay. So I'm assigning this dot doors.
In my child class. In my child class. In my child class. But model and year. Was already present in my base class. So I've called a super. And passed them in. So that. Those can be saved. At my parent level. Okay. And then I have just specific method. Okay. And then I have just specific method. Get doors. Which is. Which is very proprietary to my. Child class. Okay. So this is very specific to my child class. And the room is a general. General method. It's a run. It's a general method.
Which is why it's kept. As is. In a parent class. So that is how. We are demonstrating. Inheritance over here. So I've created. So I've created. A new SUV. With the five doors. With corresponding model. And a year. It will create. Inheritance for me. And I can run. A method from a base. I can run. A method from. Child. Let's see. So I'm running room from a parent. I'm running returning five doors from. Child. And. So both things have worked. Let's check out. What it consoles. When I console the object.
It consoles. Model. It consoles. Year. It consoles door. So these two properties. Are coming from a. Bess. It indicates over here. This is your best. It's called as a prototype. Which is. Again. A. Complex concept in JavaScript. And that is not in scope of a current discussion. But. These two properties. Are coming from your base. And this is. Your child property. So that is how. You. Demonstrate. Inheritance in JavaScript. What next? Spread operator. And rest operator. This is also very simple. So. If you go to the spread and rest.
Okay. Rest. And spread. Have single syntax. It just differs in a usage context. Okay. Now. Let's check the. Example of spread. Okay. So. This is my one array. Called as a old array. And this is my. A new array. Okay. So what I'm doing is. In old array. I have one. Two. Three. Four. A new array. I have eleven. Twelve. And then this funny looking syntax. And the name of old array. Now. What is this? This is the spread operator. So if I provide a three draw.
Before array. Before array. Then all this array elements. Will get flattened. And get automatically added. To this new array. That is what. Spread operator means. Spread all element. From the array. Or object. So this is the. Scenario. Where you have. Use a spread operator. On an array. So what will be the output? So output will be. Eleven. Twenty. Two. One. Two. Three. Four. We'll check that out in a minute. Similarly. You can use. You can use. A spread operator. On object. Let's say. You have a base object.
Called as a name. Base object. Called as a name object. And has two properties. Name. And last name. Now. Instead of. Writing. Or. Writing. A bigger object. Now. What they have done. Over here is. Now. Cost details. And they have put. Three dots. Now. This time. Before a name of. Object. So three dots. Before a name of object. And then. A new property. Called as a rank. Which has a value. As a 22. So what will happen? This is a. Spread operator. So all the. Data.
Or the properties. In this particular object. Will automatically. Copied. In this new object. And. It will form. A detail object. So let's check out. The output. Of these two. Let me. Comment. Previous. Demo. Otherwise. That will get. Mixed up. Okay. Let me. Comment. Previous. Demo. Let me. Uncomment. The spread. And rest. Operator demo. And last. For it now. Okay. Same output. 11. 22. 1. 2. 3. 4. 11. 22. 1. 2. 3. 4. So I am. Merging this array. With this. Using. A quick syntax. And similarly.
I can merge. One object. To the another object. Using a spread syntax. So this is my. Spread operator. Just one thing. To note over here. Let's say. I have. A property. Called as a name. Which is. Already. Exists. In my. First object. And it's. And it's. Already. Exists. In. The details object. So. Now over here. Name is a common property. So which name. Will get picked up. The one. Which I have written. Last. Will get picked up. So this name. 22. Will override. This name test.
So that is why. Rule. Because. You are. Writing this. Property. After. This property. Because. This will get spread out. Right. This will get spread out. Like this. And then you are. Writing the name. So. JavaScript. Will understand. Okay. So there are. Two properties. With the same. Same name. So let's. Keep one. And which. Which copy it will keep. It will keep. The last one. And not a first one. So if you use something like this. What will be output. So in details. You can see. Name is 22.
And we have overwritten. Name test. Okay. So that is only thing. Which is. Bit tricky. I would say. But apart from that. It's. Very simple. Now. We understood a spread. Now. What about rest. The rest is a similar thing. It used to. Merge a list. Function arguments. To an array. Now. What do you mean by that. So let's take an example. What I want to do is. I want to add all these elements. Okay. So. I have written add function. My first. Parameter is first none.
And then. This. Spread syntax. No. This is now rest syntax. So. The syntactically. Since syntactically. They both are the same. I am repeating this. So now. This. Is not a spread syntax. This is the rest syntax. So syntactically. They both are the same. But now. Context is different. Now. Over here. You are not spreading. The properties. Or elements of an array. What you are doing is. You are. Picking. A list of function arguments. Inside an array. So what they are doing. We are doing is. We are saying.
To a text. To a text. To a text. Or. To a text. Assign this 10 to firstNum and assign the rest of the things as an array to this args. Okay, so in firstNum, I will receive 10. If I console firstNum, I should 10. And then, I am just looping over this array. Now, this became an array because you are receiving all these elements in a single array. No need to write firstNum, secondNum, thirdNum, fourthNum. No need. You just specify three dots and specified a variable name.
So that variable automatically becomes an array and you can take it from there. So now, firstNum will print a 10. And then, there is a loop to add all these elements because it's an array. So you can sum all those elements and output. Let's just output result, which will be summation of all these and firstNum. So let's print firstNum and let's print args. Okay, so both things we are printing so that you will understand firstNum is 10 and then args, which is an array, has a rest of the element.
And then, summation is 19. It's working, right? Cool. Distribbed. So now, let me comment as usual. Comment and let's open another demo. Distribbed. Now, what I'm doing over here is, this is another ES6 feature of the JavaScript where you can district something from an array or an object. Now, what do you mean by district? Okay. Let's say this is a list of elements, one, two, three. And I'm writing something like this. So with this syntax, you can pick or district your array into required variables. So if I choose to write const square brackets AB equal to list, AB should hold the first two values of that list.
So one, two. If you write something like this, you should able to hold ABC as a one, two, three. So you are distracting, you are converting list to variables. And similarly, you can district object. This is one object. And let's say you want to hold just this property and not this one. So this is what you can write to district that object. So what will happen? From name object, I'm just picking value of this key. So what will be inside a key? Test a value of this key.
Let's see the output. One, two and test. So you're distracting array and object using a district syntax. Now, district, so it again depends on what type of data you're using to district. If you are distracting a list, you need to use square parenthesis. If you are distracting object, you need to use curly braces. Okay, we have a last array functions. Now, this is I want something to you to explore basically because this part is very simple and the documentation is available. I want you to explore all different type of array methods, a standard array methods available in JavaScript.
It's not basically ES6 part or there are some differences compared to the previous version of JavaScript, but this is something which we are going to use in the react heavily. So I want you to go over the each and every array inbuilt methods. So just to give it to give as an example, let's say I have this list and I want to create another list where I need to multiply each element of my input list by two and generate a new list as an output as a result.
Okay, so basically I want to multiply each and every number of this list to form output list. Okay, so a simple way is to write a for loop and do the calculation. But there is another way where you can use a map over a list, but there is another way where you can use a map over a list. On every iteration, you will get a current element. You can multiply it and just return. Now, once you return, JavaScript internally will create an array and it will create an output object.
So this will result in another list, which will look something like this, 2, 6, 8, 10. So JavaScript will take care of constructing array and returning. Okay. But I want you to explore all these array methods. I'll share this demo with you guys and then you can check it out. But this is very important. So map, you need to use heavily. Filter, you will use heavily. Reduce is also the one which you can use again and again. Then there is find, slice, splice, concat, push, pop.
All these array methods, inbuilt array methods are important and one should check before even starting the react. Okay. Cool. So this is the homework and I'll put it into the assignment sheet also so that you guys can keep a track of it. Okay. Cool. So that is for basically quick refresher of JavaScript, ES6 part and some array methods part. But now let's start learning actual thing, which is React. And for that, let's check out the software and required editors. So throughout this course, we'll be using text editor such as Visual Studio Code.
This is my personal preference. And most of developers in industry use the Visual Studio Code. There is a Visual Studio Code, which Java and .NET guys prefer, but I would strongly suggest to use a Visual Studio Code because there are a few extensions, which are very suitable for a modern front-end development. Then you need to install a Node.js library, which you can download, you can download a stable version of Node.js. And that's it. You need to also install a GitHub, not GitHub, but a Git, a Git tool so that you can check out the demos which are uploaded to cloud and you can work with them.
So, I already have a documentation of this, so I'll share all this documentation saved, but I will want it to run by them quickly. So, you just need to go to this website, which will show you screen something like this. Now, since I am using a Macintosh, it is showing me downloads for Mac, but if you are on Windows or Linux, it will show a Windows or Linux according to your system. And remember, you need to choose this LTS, okay? So, this is a latest stable version.
You need to use this stable version. You need to download that. Once you download, if you are on Windows or Linux, you will get this standard installer prompt. You need to do next, next, next. You need to accept the terms and conditions. You need to set a folder, destination folder, install, next, and finish, okay? This should finish your Node installation, which is very important. Why we are using Node? We are developing on React and why we have installed Node? The answer to this is the development happen on a local server.
And in order to run a local server, we are using under the hood something called as a Webpack. Now, Webpack runs on V8 JavaScript engine, which actually provides by the node, okay? So, we would need to install a node to have the JavaScript runtime on operating system. Otherwise, we use JavaScript runtime of the browser, right? But in order to have the JavaScript runtime for a Webpack, we need to use a node. And also, there is something called as a Node Package Manager, NPM. For that also, we need a node.
So, we are installing Node. And how to check whether we have installed Node correctly, just go to your terminal and type Node-V, okay? So, I need to set my terminal. You don't need to do something like this. I'm just, you just need to do Node-V. It should give you a latest version. So, I've installed. I'm just, I'm just checking. Thank you. 16, which is, I guess, not at the lattice. The lattice is 16.15, but it's fine. It's fine. If you got 16 also, it's okay. You can easily go along this lecture.
But if you want to check quickly whether node installed or not, you can check something like by doing this. And finally, you will be able to install a Git. In order to see whether you have installed a Git correctly or not, type a Git-version. And it should give you a version of Git. If you get something like this, you are good to develop something in React. Okay. So these are the things that you would need. Once you install everything, you will be way much set for development in React.
Okay.