Methods and objects in javascript

  Рет қаралды 51,911

Hitesh Choudhary

Hitesh Choudhary

3 жыл бұрын

Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
All the learning resources such as code files, documentations, articles and community discussions are available on our website:
chaicode.com/
You can find our discord link, github link etc on the above website.
Twitter/X link: x.com/hiteshdotcom
Discord link: hitesh.ai/discord
Learn React with 10 projects: • Let's learn react from...
Learn Docker: • A practical guide on D...
Learn Kubernetes: • Complete Kubernetes Co...
How does a browser works: • How does a browser wor...
How nodejs works: • How node JS works | En...
Learn Redux-toolkit: • Learn Redux Toolkit in...
Learn NextJS: • Nextjs Full stack course
Learn Typescript: • Why to learn Typescript
Learn Javascript: • Welcome to new JavaScr...
Learn React Native: • React Native Mastery: ...
Learn Zustand: • React state management...
Learn Golang: • How to get started wit...

Пікірлер: 91
@HiteshChoudharydotcom
@HiteshChoudharydotcom 3 жыл бұрын
Full course is FREE and will be available here - courses.learncodeonline.in/learn/Complete-Javascript-course
@jayakrishnavemula3198
@jayakrishnavemula3198 11 ай бұрын
Hello, Could you please confirm? Is the below code is correct getUserInfo: function() { console.table(user); } console.log(user.getUserInfo());
@sudheerchakka6745
@sudheerchakka6745 10 ай бұрын
@@jayakrishnavemula3198 i think i doesn't work because user variable is not accessible in the method
@MereDaddyJi
@MereDaddyJi 3 жыл бұрын
*otherwise , we can still be friends* .. that was good point 🤣🤣😂😂
@santoshsahoo6017
@santoshsahoo6017 3 жыл бұрын
Your work is flawless, we are getting so much value out of it. Keep posting keep motivating for beginners like us to code.
@mandydavid2948
@mandydavid2948 3 жыл бұрын
You are just want i was looking for in Javascript. You really make programming fun! Thanks Hitesh!
@ahmedoza1999
@ahmedoza1999 Жыл бұрын
Bro, You're awesome. I tried other teachers online but you're just chill, calm, clear and you get the point & get the job done. Keep it up and do not stop posting Hitesh, ALsalamu Alaykom!
@afamsval
@afamsval 3 жыл бұрын
You are the best Sir. I am loving the high quality video
@harshrastogi296
@harshrastogi296 3 жыл бұрын
We Want More Courses Like That You Motivated Me For Learning From MDN. Going To Buy React From You Only.
@Itachi-xd5ls
@Itachi-xd5ls 3 жыл бұрын
you said it so friendly, that if i have money for your course, i will buy it for sure :)
@SamruddhaShah
@SamruddhaShah 3 жыл бұрын
you so good in promoting your website
@ankushthakur2177
@ankushthakur2177 3 жыл бұрын
Awesome series, loving it
@bijayagiri5746
@bijayagiri5746 Жыл бұрын
Thank you sir... I have just started and going good.
@Sushil2874
@Sushil2874 3 жыл бұрын
Ausum going sirG..!! We are going great along with you..!!
@vijayanpp186
@vijayanpp186 3 жыл бұрын
Your videos are great. Keep doing. Very helpful
@Vishalkumarwish
@Vishalkumarwish 3 жыл бұрын
Loving the series 👌
@runtcpip-morganlucas
@runtcpip-morganlucas 3 жыл бұрын
These are always helpful, thank you.
@AP-sb3vl
@AP-sb3vl 2 жыл бұрын
Thanks for the effort. Nicely explained.
@ashikkhandokar7564
@ashikkhandokar7564 3 жыл бұрын
Thank you, sir. For great video.
@arunhembram1859
@arunhembram1859 3 жыл бұрын
Happy Birthday Sir and Happy Raksha Bandhan!
@vijaynavale3919
@vijaynavale3919 3 жыл бұрын
Good book for Javascript for beginners specially :- Javascript and jquery (by Jon duckett). Start reading these book along with sir's series it will clear your doubts even more.
@IqbalAhmed-qk5ix
@IqbalAhmed-qk5ix 3 жыл бұрын
Awesome nice explain Thank u so much sir
@anandpadhiyar6406
@anandpadhiyar6406 3 жыл бұрын
Waiting for the video actually 😂😂
@Rajesh_op1
@Rajesh_op1 3 жыл бұрын
me too...
@VijayKumar-eq9ou
@VijayKumar-eq9ou 3 жыл бұрын
Please don't stop this series till all we got it down , mean to say whatever u r explaining in this series is like a spoon feed , pls don't stop this untill all the developers out thr to get it . Very big 🙏🙏🙏🙏🙏
@Ravi-oh8xz
@Ravi-oh8xz Жыл бұрын
Loved it ❤️❤️
@sayamkoul3204
@sayamkoul3204 3 жыл бұрын
Happy Belated Birthday Hitesh Sir ♥️
@AmitKumar-vh6ty
@AmitKumar-vh6ty 3 жыл бұрын
Such a nice content
@SanjaySinghStar
@SanjaySinghStar 3 жыл бұрын
Thank you sir 👍
@osinduwimala9630
@osinduwimala9630 3 жыл бұрын
really clear
@ankushladani496
@ankushladani496 Жыл бұрын
Thank you sir....💯
@vijaynavale3919
@vijaynavale3919 3 жыл бұрын
Keep going 👍
@moonstone_motivation
@moonstone_motivation 2 жыл бұрын
I still wonder How you price your complete course for just 200 . Like 200 has no value you can get just 2L of petrol in that but still you give a whole content. You're so so great sir
@harshavardhanranger
@harshavardhanranger 2 жыл бұрын
*We can still be friends* , this makes me want to check out the website !! haha
@programminghacks
@programminghacks 3 жыл бұрын
nice work.
@subee128
@subee128 Жыл бұрын
Thank you very much
@SameerKongath
@SameerKongath 3 жыл бұрын
Interesting
@sudiptob631
@sudiptob631 3 жыл бұрын
Good morning Hitesh sir 😊
@akalyarakshagan544
@akalyarakshagan544 3 жыл бұрын
Thanq sir
@1conscience0dimension
@1conscience0dimension Жыл бұрын
Almost like a class used this way
@sanidhyaojha5676
@sanidhyaojha5676 3 жыл бұрын
Hey hitesh, tell something about white hat jr.
@mondal_raj
@mondal_raj 3 жыл бұрын
Hi sir, I am following your javascript course will full determination and I have taken few courses previously, but your teaching method is really impressive and efficient. Thank you so much sir your this course. Also, I want to ask you which VS Code theme do you use, I'm not able to find such a theme in any extension, it's really amazing, this theme literally gives the feeling of coding, Sir please tell me from where can I get it this theme.
@easyguidetosuccess
@easyguidetosuccess 2 жыл бұрын
I think it's Cobalt2 theme.
@pratibhagoudar6817
@pratibhagoudar6817 8 ай бұрын
Teacher theme
@vraj3115
@vraj3115 3 жыл бұрын
#10minutesJS day 25!
@kalyankumar1372
@kalyankumar1372 3 жыл бұрын
Why are remaining videos not available????
@sherazlaghari9421
@sherazlaghari9421 3 жыл бұрын
is MERN Course available for Pakistani Student in paid / Free version
@hrutikdhumal402
@hrutikdhumal402 3 жыл бұрын
Why ( ) => { } This type of function is not working
@Yeapes
@Yeapes 3 жыл бұрын
Present sir from BANGLADESH 😍
@charlsandras6838
@charlsandras6838 3 жыл бұрын
Why can't I use if inside the function which is indie object ??? It says unreachable code and it never executes can anyone help me ?
@tobilobalawal_dev
@tobilobalawal_dev Жыл бұрын
Hello Hitesh, thanks for this tutorial series. I tried something with the user object, I tried to use an arrow function as a method of the user object and I got an error, but when I removed the arrow function and use the function keyword, it works. I actually want to know why. Is it scope-related or Hoisting related?
@muhammedabdullah5162
@muhammedabdullah5162 Жыл бұрын
me too why does it happen i was trying to be efficent by using arrow function method
@abhinavkuruvilajoseph9274
@abhinavkuruvilajoseph9274 3 жыл бұрын
Sir i am taking leave this week i have exams
@amjadawan4150
@amjadawan4150 2 жыл бұрын
sir i am from pakistan how can i apply on your react course, cash transfer will be an issue
@riteshpandey5082
@riteshpandey5082 3 жыл бұрын
Sir, Why this code is not working, in output it is giving same code as a output return '${this.firstName} is enrolled in total of ${this.courseList.length}'
@riteshpandey5082
@riteshpandey5082 3 жыл бұрын
Thank You So Much. 🙏🙏
@vtexfacts
@vtexfacts 2 жыл бұрын
Tip : playback speed 1.25 you will learn more
@mansijain8847
@mansijain8847 2 жыл бұрын
can anybody provide code of the assignment which sir give in this video at the end to make a method for user information.
@priyamvashi2187
@priyamvashi2187 2 жыл бұрын
info : function () { return ` "First Name": ${user.first_name} "Last Name": ${user.last_name} "Role": ${user.role} "Location": ${user.location} "Login Count": ${user.login_count} "Is Facebook Signed in?": ${user.facebook_signed_in} "Total Course Enrolled": ${user.course_list.length}` }
@Learner010
@Learner010 3 жыл бұрын
what happen if we use this keyword in global context?
@rajaryansingh230
@rajaryansingh230 3 жыл бұрын
It will give you access to window object
@Learner010
@Learner010 3 жыл бұрын
@@rajaryansingh230 which means it is same as calling general variable in global context
@rajaryansingh230
@rajaryansingh230 3 жыл бұрын
Calling a variable just give you the value if it is defined in the global context but this keyword will give you window object containg all the methods of the window.
@hitbits1918
@hitbits1918 3 жыл бұрын
ye 2 dislike karne wale kaun hain, Inhone Quality content word jyada seriously le liya hai
@Vishalkumarwish
@Vishalkumarwish 3 жыл бұрын
Is there ayone who completd the assignment for thiis video I got error Plz guys suggest me. Something
@santoshsahoo6017
@santoshsahoo6017 3 жыл бұрын
info: function(){ return `${this.firstName} ${this.lastName} ${this.age} ${this.facebookSignedIn} ${this.logincount} ${this.courselist}` } console.table(user.info()); I tried this but looking for a better solution.
@AmanKumar2010
@AmanKumar2010 3 жыл бұрын
info : function () { console.table(user); }, }; add this to the object and then console .log this console.log(user.info()); :) hope this helps someone
@rishavbatabyal6507
@rishavbatabyal6507 3 жыл бұрын
Sir, I am getting a problem in the return statement on my code editor. whole ${user.firstName} is also getting considered as a String and not printing the object value any soln please?
@SynTron11
@SynTron11 3 жыл бұрын
will you post your code here ?
@rishavbatabyal6507
@rishavbatabyal6507 3 жыл бұрын
@@SynTron11 i have already feagured out the issue. I was using single inverted comma in return statement that's why it was getting considered.as entire string
@kamrankhanofficials
@kamrankhanofficials 3 жыл бұрын
@@rishavbatabyal6507 But it will not make any difference, although u can also use these variables outside the inverted commas and without braces.
@searchgrow837
@searchgrow837 3 жыл бұрын
Name das do sir Konse software vadiya (excellent) rahe ga build app such as tiktok, roposo
@SubhashKumar-ks9ev
@SubhashKumar-ks9ev 3 жыл бұрын
I am 4th to comment 😅😅😅😅
@sanathrayala2745
@sanathrayala2745 3 жыл бұрын
Info: function (){ Console.table(this) } User.info()
@abhishekmarwal1750
@abhishekmarwal1750 Жыл бұрын
var customer = { firstName: "Mohit", lastName: "Saini", address: "Murlipura, Jaipur", loginCount: 32, productList: [], buyProduct: function (Productname) { this.productList.push(Productname); }, getProductCount: function () { return `${this.firstName} has bought a total of ${this.productList.length} products from Meenu Enterprises(Laxman Rekha, Jhotwara, Jaipur), You are also Welcome!!🥳`; }, KyaKharida: function () { console.log(this.productList); }, googleLogIn: true, }; customer.buyProduct("Flamingo Knee Cap"); customer.buyProduct("DR Odin BP Monitor"); customer.buyProduct("Cotton Bandage"); customer.buyProduct("Walker"); customer.buyProduct("Eye Cool Pack"); customer.buyProduct("Cough Syrup"); info = function() { console.log(` Firstname: ${customer.firstName} Lastname: ${customer.lastName} Address: ${customer.address} Login Count: ${customer.loginCount} Products Bought: ${customer.productList} Total Products: ${customer.getProductCount()} LogIn using Google: ${customer.googleLogIn}`); } console.log(info()); // This is the way
@bowshy1920
@bowshy1920 3 жыл бұрын
let a={ courseList:[] insertCourse: a=(courseName)=> courseList.push(courseName) }; a.insertCourse("cloud"); console.table(a); whats wrong with this....
@aayushsolanki5260
@aayushsolanki5260 Жыл бұрын
"We can still be friends" -That's what she said🥲
@aakashparmar3451
@aakashparmar3451 Жыл бұрын
var user = { firstName: "Aakash", lastName: "Parmar", role: "admin", loginCount: 23, googleLogin: true, courseList: [], buyCourse: function () { this.courseList.push(courseName); }, getCourseCount:function() { return `${this.firstName} is renrolled in total ${this.courseList.length}`; }, }; var courseList = true; console.log(user.firstName); console.log(getCourseCount()); why am i getting getCourseCount is not defined. can anyone help me with the problem.
@abhishekmarwal1750
@abhishekmarwal1750 Жыл бұрын
console.log(user.getCourseCount()); use the name of the object while accessing the function of it.
For loop basics in Javascript
12:01
Hitesh Choudhary
Рет қаралды 33 М.
Introduction to Array in javascript
17:50
Hitesh Choudhary
Рет қаралды 60 М.
Универ. 13 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:07:11
Комедии 2023
Рет қаралды 4,4 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:19
CRAZY GREAPA
Рет қаралды 9 МЛН
IS THIS REAL FOOD OR NOT?🤔 PIKACHU AND SONIC CONFUSE THE CAT! 😺🍫
00:41
A counter project in javascript
14:13
Hitesh Choudhary
Рет қаралды 49 М.
New keyword in Javascript
12:32
Hitesh Choudhary
Рет қаралды 50 М.
Generating elements and Text node in DOM
21:37
Hitesh Choudhary
Рет қаралды 21 М.
Callback and arrow function introduction in array
12:43
Hitesh Choudhary
Рет қаралды 71 М.
Now you know Objects in Javascript | chai aur #javascript
19:46
Chai aur Code
Рет қаралды 32 М.
Reference Vs Value In JavaScript
15:12
Web Dev Simplified
Рет қаралды 178 М.
Spread and REST operators in Javascript
14:00
Hitesh Choudhary
Рет қаралды 50 М.
МОЩНЕЕ ТВОЕГО ПК - iPad Pro M4 (feat. Brickspacer)
28:01
ЗЕ МАККЕРС
Рет қаралды 79 М.
keren sih #iphone #apple
0:16
kadangaruan
Рет қаралды 1,7 МЛН
TOP-18 ФИШЕК iOS 18
17:09
Wylsacom
Рет қаралды 738 М.