Classes and module exports in javascript

  Рет қаралды 39,387

Hitesh Choudhary

Hitesh Choudhary

Күн бұрын

Пікірлер: 49
@HiteshCodeLab
@HiteshCodeLab 4 жыл бұрын
Full course is FREE and will be available here courses.learncodeonline.in/learn/Complete-Javascript-course
@swapnilsinha7649
@swapnilsinha7649 4 жыл бұрын
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.
@sankalpshakti23
@sankalpshakti23 11 ай бұрын
🎯 Key Takeaways for quick navigation: 00:00 📚 *Introduction to JavaScript Classes* - Introduction to the concept of classes in JavaScript. - Classes as blueprints for creating objects. - Importance of practical implementation over theoretical knowledge. 02:12 🏗️ *Creating and Working with JavaScript Classes* - Basics of defining classes in JavaScript using the `class` keyword and curly braces. - Utilizing the`constructor` method inside a class for object initialization. - Declaring methods within a class and their functionality without using the `function` keyword. 07:14 📦 *Exporting and Importing JavaScript Classes* - Exporting a JavaScript class using `module.exports` for access in other files. - Importing the exported class into another file using `require`. - Different syntaxes for importing/exporting classes and their relevance in various frameworks/libraries. 10:15 🛠️ *Using JavaScript Classes in Practical Implementation* - Creating instances of a class using the `new` keyword for object instantiation. - Initializing object properties using the constructor method. - Implementing class methods and utilizing them to manipulate object data. 12:51 🔄 *Manipulating and Accessing Data within JavaScriptClasses* - Retrieving data from class objects and handling arrays of data. - Demonstrating how to loop through arrays of objects in JavaScript. - Providing insights into efficient data manipulation and access within classes. Made with HARPA AI
@polarseltzer
@polarseltzer 6 ай бұрын
thanks Hitesh, this was very helpful!
@biikaaa.6540
@biikaaa.6540 3 жыл бұрын
was looking for this all over the youtube
@emmanuelogbeifun8113
@emmanuelogbeifun8113 2 жыл бұрын
Great video. simple concise and clear
@saurabhkumarmishra6990
@saurabhkumarmishra6990 4 жыл бұрын
Another wonderful day starts with Hitesh Sir 💐💐💐💐
@sivasai6890
@sivasai6890 4 жыл бұрын
Watching ur studio tour and notification pops up on screen. Iam here ❤
@Ravi-oh8xz
@Ravi-oh8xz 2 жыл бұрын
Loved it ❤️❤️
@sebastianalejandrosanchezp7415
@sebastianalejandrosanchezp7415 3 жыл бұрын
Hi!! Thanks for this video!!! Greetings from Chile!
@varungoyal6552
@varungoyal6552 4 жыл бұрын
why we don't use var keyword while declaring variable in class???
@vijaynavale3919
@vijaynavale3919 4 жыл бұрын
Class is a syntactical-sugar. It is pretty much same as how we define a function constructor. If go in deep you will realize that this classes are actually hiding the word prototype. The main advantage of making this syntactical-sugar by developers is to 1) not using the prototype word again and again 2) subClass becomes easy to make because in function constructor it is a bit difficult we need to write a line of code but in classes it becomes fairly easy to create subClass. And last we don't use var keyword is because it is same like creating function constructor so we don't give any keyword to functions because functions are itself a keyword. May be it help....peace😊
@PrinjuVaidyan
@PrinjuVaidyan 4 жыл бұрын
Good question
@TS-xo3ed
@TS-xo3ed 4 жыл бұрын
Hello @@vijaynavale3919 can you please explain a bit in detail? Or else atleast share a doc/link?
@clipforyou-zw3bx
@clipforyou-zw3bx 4 жыл бұрын
please also cover Oops concepts like polymorphism, inheritance, abstraction, encapsulation with practical examples
@jonathanbernal6980
@jonathanbernal6980 2 жыл бұрын
Thank you man!
@avisekssarma5592
@avisekssarma5592 4 жыл бұрын
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 .
@saratht1784
@saratht1784 3 жыл бұрын
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?
@raunaquepatra3966
@raunaquepatra3966 4 жыл бұрын
what is the editor used?
@asimmohammeddelvi5198
@asimmohammeddelvi5198 4 жыл бұрын
courseList= []; ^ SyntaxError: Unexpected token = why this error sir, not able to debug.
@a-090sujalagrawal2
@a-090sujalagrawal2 3 жыл бұрын
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.
@G83X
@G83X 3 жыл бұрын
Amazing tutorial but what advantage does the design choice of making imports like that give?
@nikulnayi2068
@nikulnayi2068 4 жыл бұрын
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 "
@copyninja_03
@copyninja_03 3 жыл бұрын
What is the vscode theme u are using
@gajjalaharsha
@gajjalaharsha 4 жыл бұрын
Sir, please make one project using classes and objects
@Ankitkumar-dy1fs
@Ankitkumar-dy1fs 4 жыл бұрын
Can we use nested method inside js class?
@Kareszrk
@Kareszrk 3 жыл бұрын
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
@kartikrawat5655
@kartikrawat5655 4 жыл бұрын
Sir I have a question! Can we do coding on a Chromebook?? Please reply.,.,.,.,..,.,.,
@csu1167
@csu1167 10 ай бұрын
Hehehe
@nandakishore7070
@nandakishore7070 4 жыл бұрын
Would you please suggest some javascript projects for all levels.
@atifshaik7303
@atifshaik7303 3 жыл бұрын
API projects
@abdremo
@abdremo 3 жыл бұрын
in ES6 you can use export default user;
@case_tips
@case_tips 3 жыл бұрын
Super helpful
@oyestuti
@oyestuti 2 жыл бұрын
please do cover module resolution algo
@sekokhan5307
@sekokhan5307 2 жыл бұрын
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!
@nikulnayi2068
@nikulnayi2068 4 жыл бұрын
what does exactly module mean?
@ecdctech
@ecdctech 4 жыл бұрын
no classes in JS
@harishs7384
@harishs7384 3 жыл бұрын
Thanks a lot bro
@chrisb3627
@chrisb3627 2 жыл бұрын
Thanks a lot!
@Abdirizakmrashid
@Abdirizakmrashid 3 жыл бұрын
Thanks
@rajeevsinghrajput6752
@rajeevsinghrajput6752 4 жыл бұрын
sir please use day theme in your editor.
@venkateshanap3271
@venkateshanap3271 4 жыл бұрын
Me 1st comment love to watch this series
@vraj3115
@vraj3115 4 жыл бұрын
#10minutesJS day 51!
@mowabro227
@mowabro227 Жыл бұрын
thanks!!
@sindujamarijoe
@sindujamarijoe 2 жыл бұрын
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
@saibhanumathurthi903
@saibhanumathurthi903 4 жыл бұрын
1st view..✋
@Colstonewall
@Colstonewall 3 жыл бұрын
7,565 View!!! Beat that!! LOL Just teasing, Sai.
@saibhanumathurthi903
@saibhanumathurthi903 4 жыл бұрын
1st comment😊
Private props getters and setters in javascript
6:11
Hitesh Choudhary
Рет қаралды 18 М.
Borrow a method using bind
14:46
Hitesh Choudhary
Рет қаралды 23 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Require vs Import Javascript
22:39
Monsterlessons Academy
Рет қаралды 80 М.
STOP Using Classes In JavaScript | Prime Reacts
14:02
ThePrimeTime
Рет қаралды 254 М.
JavaScript Modules Crash Course
48:38
freeCodeCamp.org
Рет қаралды 50 М.
Inheritance in javascript
9:22
Hitesh Choudhary
Рет қаралды 26 М.
Javascript Modules | Export Import Syntax for ES6 Modules
17:14
How to Handle API in javascript
16:29
Hitesh Choudhary
Рет қаралды 49 М.
I tried 8 different Postgres ORMs
9:46
Beyond Fireship
Рет қаралды 440 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 492 М.
The Most Important Design Pattern in React
35:04
Cosden Solutions
Рет қаралды 113 М.
JavaScript Classes - Object Oriented Programming Tutorial  - Advanced
38:26
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН