Classes and module exports in javascript

Classes and module exports in javascript

Hitesh Choudhary

3 года назад

38,170 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Chowdary Immanni
Chowdary Immanni - 31.01.2023 18:57

thanks!!

Ответить
Ravi
Ravi - 19.11.2022 10:07

Loved it ❤️❤️

Ответить
Stuti Bajaj
Stuti Bajaj - 21.09.2022 22:58

please do cover module resolution algo

Ответить
Emmanuel Ogbeifun
Emmanuel Ogbeifun - 02.09.2022 00:22

Great video. simple concise and clear

Ответить
iteesell
iteesell - 27.08.2022 09:23

hi do we hav to put a <script src="./index.js" type="module" ></script> for using module and require

Ответить
Sinduja Marijoe
Sinduja Marijoe - 30.06.2022 22:34

hi Hitesh one doubt i tried exporting and importing as it is in video using require but when trying to create object of class getting this error

const user = new MyClassDemo("Sid","28");
^

ReferenceError: MyClassDemo is not defined


tried adding import export then i was getting unexpected identifier javascript import

Ответить
seko khan
seko khan - 22.05.2022 04:27

Thank my problem was when i was creating const varibale = require()

The variable was lower case and my module export was upper case.
This is because im use to creating my variables under-case but my classes uppercase

Solution was doing const Variable

Thanks!

Ответить
Chrisb
Chrisb - 04.03.2022 08:02

Thanks a lot!

Ответить
jonathan bernal
jonathan bernal - 07.02.2022 19:22

Thank you man!

Ответить
Walt Williams
Walt Williams - 24.12.2021 05:27

This didn't work for my JavaScript web code. It could be the difference between Node.js and JavaScript that runs in browser.

Ответить
Sebastián Alejandro Sánchez Pérez
Sebastián Alejandro Sánchez Pérez - 03.11.2021 04:10

Hi!! Thanks for this video!!!
Greetings from Chile!

Ответить
G83X
G83X - 15.10.2021 01:05

Amazing tutorial but what advantage does the design choice of making imports like that give?

Ответить
sarath t
sarath t - 28.09.2021 10:44

here getinfo is returning an object,when afunction returns object or functions its refernce is copied, so how hitesh.getinfo gives object as output.only is passed right?

Ответить
Abdirizak mrashid
Abdirizak mrashid - 22.07.2021 17:32

Thanks

Ответить
A-090 SUJAL AGRAWAL
A-090 SUJAL AGRAWAL - 19.07.2021 19:05

What if the file we called in user variable using require, if we declared two classes in that file how can we assign it to a single a variable, or please tell me other method of calling the file.

Ответить
Harish S
Harish S - 06.06.2021 21:23

Thanks a lot bro

Ответить
Kareszrk
Kareszrk - 05.06.2021 14:48

Thank you! By your video I found out that I didn't type the S at the end of module.export(s)... I spent 1 hour to figure out what the problem is... XD

Ответить
Copy Ninja
Copy Ninja - 20.05.2021 12:11

What is the vscode theme u are using

Ответить
AI Performant
AI Performant - 13.04.2021 21:26

Super helpful

Ответить
Abundance
Abundance - 29.01.2021 12:22

in ES6 you can use export default user;

Ответить
raunaque patra
raunaque patra - 25.10.2020 22:10

what is the editor used?

Ответить
Asim Mohammed Delvi
Asim Mohammed Delvi - 30.09.2020 12:10

courseList= [];
^

SyntaxError: Unexpected token =


why this error sir, not able to debug.

Ответить
swapnil sinha
swapnil sinha - 03.09.2020 20:40

Hi, Just to note if anyone is running node v10 then they may get an error in courseList = [ ]; line don't worry you didn't made a typo 😅. If you get the error, please update your node to the latest version and you will be good to go.

Ответить
Nikul Nayi
Nikul Nayi - 03.09.2020 16:51

what does exactly module mean?

Ответить
Ankit kumar
Ankit kumar - 03.09.2020 07:48

Can we use nested method inside js class?

Ответить
Nanda Kishore
Nanda Kishore - 02.09.2020 16:05

Would you please suggest some javascript projects for all levels.

Ответить
Rajeev Singh Rajput
Rajeev Singh Rajput - 02.09.2020 14:16

sir please use day theme in your editor.

Ответить
Kartik Rawat
Kartik Rawat - 02.09.2020 12:24

Sir I have a question! Can we do coding on a Chromebook?? Please reply.,.,.,.,..,.,.,

Ответить
Clip for you
Clip for you - 02.09.2020 11:07

please also cover Oops concepts like polymorphism, inheritance, abstraction, encapsulation with practical examples

Ответить
gajjala harsha
gajjala harsha - 02.09.2020 09:32

Sir, please make one project using classes and objects

Ответить
ECDCTECH
ECDCTECH - 02.09.2020 09:14

no classes in JS

Ответить
Unscripted Life
Unscripted Life - 02.09.2020 08:44

Who is this IDIOT is present here????
Who just Came here to DisLike the Video. This Quality video must atleast Cost around 500bucks. But we are getting it free. Thanks you Hitesh Sir.

Ответить
varun goyal
varun goyal - 02.09.2020 07:41

why we don't use var keyword while declaring variable in class???

Ответить
Nikul Nayi
Nikul Nayi - 02.09.2020 07:38

hello sir, i am learning your javascript course daily and
i am very happy with this course,but after learning your
javascript which library and framwork require to learn for
work with front-end ,back-end and database.

so,please make video on "road map to bacome full stack developer by using js "

Ответить
sivasai
sivasai - 02.09.2020 07:36

Watching ur studio tour and notification pops up on screen. Iam here ❤

Ответить
Avisek SSarma
Avisek SSarma - 02.09.2020 07:34

Hello from Nepal ! I want to ask you if you will upload videos to make a complete course which could be helpful or is it like some part of a udemy course or like a beginners course only?
By the way , I love watching your videos . <3

Ответить
Sai Bhanu Mathurthi
Sai Bhanu Mathurthi - 02.09.2020 07:32

1st view..✋

Ответить
Sai Bhanu Mathurthi
Sai Bhanu Mathurthi - 02.09.2020 07:32

1st comment😊

Ответить
Venkateshan A P
Venkateshan A P - 02.09.2020 07:32

Me 1st comment love to watch this series

Ответить
Saurabh Kumar Mishra
Saurabh Kumar Mishra - 02.09.2020 07:32

Another wonderful day starts with Hitesh Sir 💐💐💐💐

Ответить