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!
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 🙏🙏🙏🙏🙏
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.
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
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.
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?
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}'
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.
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.
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
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 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
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.