You watch hundreds of videos and just don’t get it, then you discover this channel and the universe makes sense. Thanks for being such an awesome teacher!!
I ought to thank you Daniel for going rather slow when you're showing concepts like this. Some people (like I) need to read or watch this video more than once to fully understand them, and not flying through gives us (beginners) the opportunity to asimilate it all well. Thanks!!!
Awesome tutorials, trying to learn coding basically from scratch and I'm finding codeacademy by itself pretty difficult to remember the concept so tutorials like this where a person breaks it down piece by piece are invaluable.
Mann... it's crazy how some random RUclipsr could teach me a concept that my professor with 20 years of experience in Programming couldn't with such simplicity and easily understandable explanation. Thank you!
Thank you soon much, your teachings have allowed me to educate myself on programming from home , self - taught by you as my teacher. 🇿🇦 love from south africa
Your tutorial is very well-organized and right-paced, not to boring and not too complicated, unlike the many tutorials I've seen in Pluralsight and Lynda where I lose interest due to boring stuff.
Daniel, I spent much time looking at different videos ,articles and other media trying to wrap my mind around this concept. Your lecture made it finally click. Thank you for a great explanation!
Where have I been! All I can say is thank you! Your tutorials are nothing like numerous boring tutorials that I've watched. I actually get it! Thanks!!
I watched a couple of other videos on this topic and I was still confused but when I saw Danny made a video on it I was like "thank God" because I knew he'd explain it well and indeed he did
english is not my first language ,I've seen several videos about .this method usage with confusing, but now I kind of knowing some about it from this video, thanks.
Your javascript tutorials are amazing. Especially the projects are very interesting. Watched all your html and css videos and now learning javascript. Thanks a lot Daniel.
Hello Daniel, you are doing an amazing job here! Thank you so much. You are one of the best online tutor i have ever come across! I am enjoying this tutorial a whole lot. I can wait till we are done to see how much i will be able to learn under your tutelage!
You tutorials are fantastic!! Thank you for providing these very easy-to-understand lessons!! I greatly appreciate your ability to simplify these concepts!! Looking forward to more lessons from you!!
Daniel, you are really a great teacher. you understand what its like to be seeing some of this stuff for the first time and that is great. seems like javascript has changed a lot over the past couple of years. at once it seemed all about events and updating web pages. objects was one of those things people never talked much about in a beginners class. The whole idea of JS is sorta like and endless journey. it make me feel like no matter what we learn, there is always more. when does a person know JS....that is a question you should do a video on in my opinion. what is the end goal so to speak. var js= 5150 if (js == 5150) {alert( "the boy's mind got hung in an endless loop ");} else{alert( "all is well that ends well");}
@@soundrogue4472 fyi. we don't know how to apply the exrcises we we don't even have the experience to build a real world app prototype. how to link the frontend to backend. use data attributes on htmls. local storage. json server. mongo db. we just need a simple app. even a calculator may work or to do list.
@@soundrogue4472 you are just learning some beginner exercises for a decade and you compare me to you? HOLY u only learning things taht you already learned some years ago and you boast of being GROWING? are you kidding me?
Daniel thank you for your hard work making us awesome tutorials. This is a lot to learn and I just want to know when can I use this method? I learn all these different theories is JS but have no clue when to use them in a project. Could you perhaps give some examples of projects or website functions that uses this kind of object? Would be great if you can show examples of real-life projects that uses the codes that you have shown us so someone like me would have a better idea of how and when to use JS functions. Thank you so much.
@mmtuts - Question.. How can i save this (update it) in an existing file with some objects in it already? I cant save this info into an actual file just virtual memory, as soon as i refresh the page, this info for arrays delete it self and javascript file havent changed at all...?
Could you also store several objects into any array? For example: let person = [ new Person("Sam","Brown",24), new Person("Lucy","Blue",21), new Person("Kate","Green",26) ]
I’m just learning, but it seems like there is a way for someone to input the values of each person from outside the jS file. So, how would one do that? I was thinking that this is a way to make a profile for someone in a database or a way to generate an enemy in a game. In the instance of a profile, the person would input their own data On a website and that information would create a new person in the jS file. Is my thinking correct? Or in the case of the enemy in a game, instead of recreating all the attributes you simply just run the function with the object again to create a similar enemy.
instead of person01, person02, person03 etc.. is there a ay to just assign person as an array? like aPerson = [] as person? not sure how to do that. Makes sense?
Object always starts with capitalized letter but you named object person with small letter in the previous episode.can you please explain when i need capitalized letter and when i not?
mmtuts! I was wondering if you can help me work something out... if I create a html form for a user, how does the users data create a new instance of a JavaScript object using Object Oriented Programming... using console.log() will allow you to test sample data on the console, but if a user inputs information into a form... does that data create a new object then send that data to the constructor???? i'm not really sure how that works and i'd like to know what your thoughts are on that thanks
How similar is C# in accordance to JS ? I've seen that Unity doesn't support js anymore . Should i change game engine or learn Js for web development only ?
C# is much better for game development in the long run, which is probably why Unity doesn't support JS anymore. JS is mainly meant for web dev, so learning C# isn't a bad idea if you are interested in game development. C# isn't difficult to learn either once you get the basics so go for it :) Similarity wise in Unity, I would say that C# and JS mainly differ in the libraries that are build into them, and if you got to experience using JS in Unity you will notice that we use a lot of namespaces and classes in C#, where as JS was mainly focused around objects. I personally use C# in Unity and only tried creating a game using JS once back when I was still studying at the university, and I will say that even though JS might seem easier to learn at first it pays off to learn C# instead.
mmtuts yea , I've seen C# has namespaces n classes where Js mainly focuses on objects , which becomes hard later on if we wanna change the code or something . I will still tag along with JS for web development btw , thank you :)
++ is the increment operator, you could check it by calling the property which we defined inside the Person object. you can simply console.log(person01.updateage()); This will increment the age by 1 and print it. Here's the full code //constructor function Person(name,eye,age){ this.name=name; this.eye=eye; this.age = age; this.updateage = function(){ return ++this.age; }; } //instance let person1 = new Person("daniel","blue",27); console.log(person1); //will print whole object console.log(person1.updateage()); // will print incremented age which is 28
you cannot print the object Person() directly, instead print the instance you created. which is person01 in this video console.log(person01); //will print the entire object
You watch hundreds of videos and just don’t get it, then you discover this channel and the universe makes sense. Thanks for being such an awesome teacher!!
Literally how i feel.....
This is the best type of tutorial. Explained right away and not 20+ minutes of showing off your typing speed.
I ought to thank you Daniel for going rather slow when you're showing concepts like this. Some people (like I) need to read or watch this video more than once to fully understand them, and not flying through gives us (beginners) the opportunity to asimilate it all well. Thanks!!!
Awesome tutorials, trying to learn coding basically from scratch and I'm finding codeacademy by itself pretty difficult to remember the concept so tutorials like this where a person breaks it down piece by piece are invaluable.
Mann... it's crazy how some random RUclipsr could teach me a concept that my professor with 20 years of experience in Programming couldn't with such simplicity and easily understandable explanation. Thank you!
Thank you soon much, your teachings have allowed me to educate myself on programming from home , self - taught by you as my teacher.
🇿🇦 love from south africa
Your tutorial is very well-organized and right-paced, not to boring and not too complicated, unlike the many tutorials I've seen in Pluralsight and Lynda where I lose interest due to boring stuff.
I have watched several videos to learn constructors but I never understood it. But this video just gave me better understanding of it. God Bless you.
You're helping me a lo Dani! That's why I am not skipping the ads if ever there's an ads in your youtube video
Daniel, I spent much time looking at different videos ,articles and other media trying to wrap my mind around this concept. Your lecture made it finally click. Thank you for a great explanation!
Amazing info bruh, all these years of studying and you explained it so well in just 10 minutes
Where have I been! All I can say is thank you! Your tutorials are nothing like numerous boring tutorials that I've watched. I actually get it! Thanks!!
I watched a couple of other videos on this topic and I was still confused but when I saw Danny made a video on it I was like "thank God" because I knew he'd explain it well and indeed he did
english is not my first language ,I've seen several videos about .this method usage with confusing, but now I kind of knowing some about it from this video, thanks.
Your teaching style is friendly, easy-to-understand, and concise!! Always appreciated!!
so far the best explanation i have found on the topic
Thank you! This is the best explanation of Object Constructors that I’ve watched.
One of the easiest tutorials to follow, simple and to the point. 👍
You are awesome my friend On behalf of everyone, thankyou :)
Your javascript tutorials are amazing. Especially the projects are very interesting. Watched all your html and css videos and now learning javascript. Thanks a lot Daniel.
Hello Daniel, you are doing an amazing job here! Thank you so much. You are one of the best online tutor i have ever come across! I am enjoying this tutorial a whole lot. I can wait till we are done to see how much i will be able to learn under your tutelage!
Hey! Your videos have been popping up a lot during my searches. Your videos are really high quality! Thank you!
Amazing teaching, Dani. I love your work. Your tutorials are really turning me into a coding expert. Thanks a lot.
Great tutorial Daniel- I'm new to JS & I'm loving every inch of this.
Thank you! I’ve been debugging for hours, I really appreciate this!
Still best quality channel in youtube like ur style in these videos they seem like premium stuff
You are a great teacher. I am so excited for this series:)
love the way this is taught, learnt a lot :)
WOW. so well explained, only useful details. Thanks from Brazil
You tutorials are fantastic!! Thank you for providing these very easy-to-understand lessons!! I greatly appreciate your ability to simplify these concepts!! Looking forward to more lessons from you!!
Daniel, you are really a great teacher. you understand what its like to be seeing some of this stuff for the first time and that is great. seems like javascript has changed a lot over the past couple of years. at once it seemed all about events and updating web pages. objects was one of those things people never talked much about in a beginners class. The whole idea of JS is sorta like and endless journey. it make me feel like no matter what we learn, there is always more. when does a person know JS....that is a question you should do a video on in my opinion. what is the end goal so to speak.
var js= 5150
if (js == 5150)
{alert( "the boy's mind got hung in an endless loop ");}
else{alert( "all is well that ends well");}
please make more exercises senpai, we may know the basics but we don't know how to apply it on the app :-((
The point of exercise is FOR YOU to apply your knowledge.
YAMETEEEE!!
@@soundrogue4472 fyi. we don't know how to apply the exrcises we we don't even have the experience to build a real world app prototype. how to link the frontend to backend. use data attributes on htmls. local storage. json server. mongo db. we just need a simple app. even a calculator may work or to do list.
@@NERO-ez1mn well sucks to be you because I've been learning.
@@soundrogue4472 you are just learning some beginner exercises for a decade and you compare me to you? HOLY u only learning things taht you already learned some years ago and you boast of being GROWING? are you kidding me?
You explain things so well. Thank you
Man¡ I just fxxxxx love u¡¡¡ You are helping me and making me to undestand JS so so fast. Danke für alles.
good understandable tutorial, thank you
I like the Kurama chilling in the back
Very informative, thank you so much! Keep up the great work!
Amazing explanation, please do more
Already Completed your both Javascript Playlist and Jquery is in Queue. Thanks ! (Like Your Dog and your hairstyle Bro !)
awesome, finally I understand objects! thx
Question: if i have created many objects using the constructor, how do use the x of only one later in js and change/delete it?
Thanks for making these videos!! You’re a great teacher. I look forward to the next video :).
super useful vid! thanks so much, keep it up!
Great explanation
Well explained, You're awesome friend
Thank you!!! helped me out alot
wow your tutorial is so easy to follow along. Thank you so much!
Really good tutorials thanks
Great video, thank you!
Little late to find you but great videos! :D helping me a lot!!
it really helped me, bro!
I like the way or method you teach us.
hope you more successes.
@support you from Afghanistan.
Nice Explanation
Love you guys! Can u make a chit-chat like video with Tom Scott? I think he would be really interested in.
Thanks so much! Great tutorial !
Thanks Dani!
Ah I see it's like structures on C, that's kinda cool because it makes learning easier.
Bravo sir, bravo!
really enjoyed! thank you >>>
Awesome videos. Thanks!!!!
that's clean bruh
"We have a let" -- Haha, I like that way of referring to the variable!
Great video. Subscribed.
Awesome Daniel 💙
thanks for this.
Awesome!
Great Video!
Cool. Congrats!
please make more exercises on real webpages
you are just awesome man!!!!
Thank you
Very helpful. Thank you.
Really Smart
Very good, thank you !
Daniel thank you for your hard work making us awesome tutorials. This is a lot to learn and I just want to know when can I use this method? I learn all these different theories is JS but have no clue when to use them in a project. Could you perhaps give some examples of projects or website functions that uses this kind of object? Would be great if you can show examples of real-life projects that uses the codes that you have shown us so someone like me would have a better idea of how and when to use JS functions. Thank you so much.
well done
bruhhh THANK YOU
@mmtuts - Question.. How can i save this (update it) in an existing file with some objects in it already? I cant save this info into an actual file just virtual memory, as soon as i refresh the page, this info for arrays delete it self and javascript file havent changed at all...?
Could you also store several objects into any array? For example: let person = [ new Person("Sam","Brown",24), new Person("Lucy","Blue",21), new Person("Kate","Green",26) ]
I love your exercises part! I think they make your tutorials unique from others'! if that makes sense :p
love it!
I’m just learning, but it seems like there is a way for someone to input the values of each person from outside the jS file.
So, how would one do that?
I was thinking that this is a way to make a profile for someone in a database or a way to generate an enemy in a game. In the instance of a profile, the person would input their own data On a website and that information would create a new person in the jS file. Is my thinking correct?
Or in the case of the enemy in a game, instead of recreating all the attributes you simply just run the function with the object again to create a similar enemy.
thx bro!
Thank you so much, you saved me
Hi Dani, good tutorial. Just one question: why do you use let and not const for object - and even the instances? Just curious.
Habit 🙂
instead of person01, person02, person03 etc.. is there a ay to just assign person as an array? like aPerson = [] as person? not sure how to do that. Makes sense?
RIP Kobe
What if we want to console all the persons in the object, not just person01 but all of them at one time. How do we do it ?
I see the Kurama beside the vest
This vid is a gem!!!! Good s##t bro
Thanks! Just had one and it was juuuuuust right!
Object always starts with capitalized letter but you named object person with small letter in the previous episode.can you please explain when i need capitalized letter and when i not?
We can't use "getter" within constructor function, can we?
I like this way. Why even classes exist?. Functions can do the same. 🙄 Right?..
mmtuts! I was wondering if you can help me work something out... if I create a html form for a user, how does the users data create a new instance of a JavaScript object using Object Oriented Programming... using console.log() will allow you to test sample data on the console, but if a user inputs information into a form... does that data create a new object then send that data to the constructor???? i'm not really sure how that works and i'd like to know what your thoughts are on that thanks
Get the input thru the DOM and use the data to create an object thru a constructor
Joe Lawren, thanks for the reply, I was wondering if you don’t mind would you be able to show an example so I can see the code. Thanks
I like this but I wish I coudl create the object iterations dynamicly. I mean... what if I have 1000 employees?
Which software are you using for html and CSS?? Is it Dreamweaver??
Atom
How similar is C# in accordance to JS ? I've seen that Unity doesn't support js anymore . Should i change game engine or learn Js for web development only ?
C# is much better for game development in the long run, which is probably why Unity doesn't support JS anymore. JS is mainly meant for web dev, so learning C# isn't a bad idea if you are interested in game development. C# isn't difficult to learn either once you get the basics so go for it :) Similarity wise in Unity, I would say that C# and JS mainly differ in the libraries that are build into them, and if you got to experience using JS in Unity you will notice that we use a lot of namespaces and classes in C#, where as JS was mainly focused around objects. I personally use C# in Unity and only tried creating a game using JS once back when I was still studying at the university, and I will say that even though JS might seem easier to learn at first it pays off to learn C# instead.
mmtuts yea , I've seen C# has namespaces n classes where Js mainly focuses on objects , which becomes hard later on if we wanna change the code or something . I will still tag along with JS for web development btw , thank you :)
total newb here but how do you connect this to if statements
Awesome like all you videos, the title is not 22 ?
Thanks i'll fix it :)
What is the ++person.age all about (I'm confused about the "++") part.
++ is the increment operator, you could check it by calling the property which we defined inside the Person object. you can simply console.log(person01.updateage());
This will increment the age by 1 and print it.
Here's the full code
//constructor
function Person(name,eye,age){
this.name=name;
this.eye=eye;
this.age = age;
this.updateage = function(){
return ++this.age;
};
}
//instance
let person1 = new Person("daniel","blue",27);
console.log(person1); //will print whole object
console.log(person1.updateage()); // will print incremented age which is 28
how do we print the entire object;
as I got [object object]; when I try to log
you cannot print the object Person() directly, instead print the instance you created. which is person01 in this video
console.log(person01); //will print the entire object