21: What Are Objects in JavaScript | How to Create an Object in JavaScript | JavaScript Tutorial
HTML-код
- Опубликовано: 1 окт 2024
- In this JavaScript tutorial you will learn about JavaScript Object Oriented Programming, which is a much more efficient way of creating JavaScript code. We will also look at how to create JavaScript objects and move towards learning about object constructors.
There is one thing from recording this episode I need to clarify!
In the video I explain that properties and methods are essentially variables and functions that are created inside objects. I just want to clarify that I'm aware that this is not completely true. I just made this comparison to help people get the idea behind what objects are and what they contain :)
List of global objects: developer.mozi...
Meet Daniel: another Full-Stack developer who can teach you coding fast and free :D
/ @danielsimionescu298
➤ GET ACCESS TO MY LESSON MATERIAL HERE!
First of all, thank you for all the support you have given me!
I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!
I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.
I hope you will find it helpful :)
Material for this lesson: / lesson-material-42361704
I've been watching your videos for the last few days. They are well put together and wanted to thank you by not only subscribing and putting notifications on, but by actually Thanking you for the time and work you put into these videos and making them easy to follow along with.
I agree. I think his take on things is great for beginners, especially if you want to pick up the basics. I try to be as approachable, too, and I think I can get the point across well. Check out my own tutorial when you can: ruclips.net/video/5CN-7MOsMsg/видео.html
@@InstructorVictor what is this for exactly?🤨
I just got into coding.. sometimes its hard for beginners like me to get a really simple and easy to understand tutorial. after watching your tutorial on "javascript" objects i found out that you are the one guy i was looking for. Thanks for your time on this man.
first video i bumped in to. its nice i think i will watch whole series
I LOVE the way you select your words and how you’re consistent with ALL your examples. You are like a great short book in every episode.
You are great. Your tutorials for PHP are the finest.
stuff like this should be boring.... but actually I had a lot of fun watching this vid :) ty again Daniel
Very nice video but... can you talk a little bit slowly? It' hard to non-native speakers to keep up with you.
This looks like Elon Musk if we was teaching about Javascript back in the late 90's
JS is not an Object oriented programming it is Object based it is different! it does not support polymorphism, encapsulation ect..
One thing I don't understand is why you don't have so much views or subscribers.I mean even in a paid course they won't teach like you do,your content is good, voice is not boring,concepts and codes are easy to grasp..I feel bad for you bro, mark my words one day you'll be great
Thanks :)
I second this beautiful honest and truthful statement. If all teachers were like you....👌
Thank you for your video!! you are good teacher!
Keep up the good work!
Brilliant explanation.. Yoda status in teaching
Thanks for sharing your knowledge ...
Cheers, you just gained a new subscriber because of this video. It means a lot to me as a beginner in coding
Glad you are enjoying the videos :)
Been learning JS for some time now and struggling with objects/constructors/factory functions and you are cementing the knowledge in my brain. Thank you sir.
Awesome video as always!
awesome thanks
Isn't the first example you gave (where you used the new keyword) also considered a constructor? I thought those were called empty object constructors or something like that. Anyways great video, as always!
Thank you. So detailed
8:35 wouldn't it be better to use this.age instead of person.age?
see link to a similar video that might support Objects in JS:
ruclips.net/video/cG4GGCOU3i0/видео.html
Hey the only thins i dont understand abouit js object is
Unlike in c++, we require a class before making an object.
BUt here,
let person = {...}
Automatically makes an object, that refers to which class?
Thanks for this Video, its very useful
interesting ! nice explanation dude.
Dude You are awesome
How can I create one object and put inside few keys without value? Value I will put in prompt though browser. How can I do it?
thank you King
Very nice video
Can u teach express as backened with mongodb sir
you are a gifted teacher. thank you for making your channel.
G-avaScript
thank you!
ONCE THE CLASS CONSTRUCTOR IS CALLED AND CREATES THE NEW OBJECT, HOW DO I GET THE NEW OBJECT INTO AN OBJECT ARRAY???
HOW DO I GET A NEW PERSON OBJECT FROM THE NEW PERSON CONSTRUCTUR INTO THE PERSONS ARRAY???
Frameworks make so much sense now that I'm understanding JS lol. Thanks for your videos!
Nice vid man, can’t believe I’ve made it this far.
bro you waist so much time in your intos. Just get in the subject very fast. I think that better for your channel.
Just know we still watching your tutorials
And their helpful
Thank youuuuuu!
Pls make an exersice video for object
Good explanation. I also added video about different ways to create JavaScript object. Your evaluation and tips would be great
Who else is just kicking off with javascript here
Hey Daniel, I just want to thank you for making this JavaScript tutorial video. Your javaScript tutorial playlist is the perfect, short with well packed information that a bigger student could understand in a short time without getting confused with a lot of coding. You have no idea how many tutorials I've been watching to Learn Javascript. Some of them take 3 to 5 hr to finish. Even with the time stamp it's complicated to understand, but now I'm glad finally I found your videos. THANK YOU SO MUCH Dani!!! keep the good work.
Great tutorial
This is one of the best tutorials out there for basic objects. Short, sweet and to the point.
Please create more Javascript videos. I have been through all of youtube and you’re the first person that made it click. Make a whole course. Will buy. 🤣 I’m desperate here.
Very nice and clean! Ive seen other people start it using var person = { name: "daniel", age: "13"} etc but thats get confusing when later on they start doing the dot syntax. I think its easier to just start with the more complex and then simplify from there if need be.
This is my first time learning a programming language , so idk much bout how stuff works . So...what are objects used for in games or apps making ?
Awesome Video ! Thank you sir ! but I have Just one Question ! What's the difference between using “let” and “var” to declare a variable in JavaScript?
very sound teaching. The way you explain makes it as easy as one can figure to understand. Btw what is that backgroung noise, sounds like a snoring pet, if you listen real close with headphones on.
Thank you so much for the informative video :D
awesome video bro really good job 100 / 100
This guy reminds me of Elon Musk
Great information. Thank you!
god bless, thank you
Awesome tutorial, great speed for me.
Well done!
My guy and his hands. Please dont stop
What's the difference between var and let or is let more like function? Idk
I explained the difference in lesson 17 in this course. 🙂
Thanks Dani, much love
Thanks for ur tutorials
awesome. thanks!
I hope I'm as genius as you sir!
I had some knowledge of this global object, method and properties and things like that, but I've never found someone who could explain to me what exactly they are, until now. Thanks for the video mate
Nicely explained :) Thanks a bunch!
Thank you for the lesson! Cheers
89' baby! Woot woot! Only 2 years older.
I little bit confused about the "new" why to use "new" keyword to create an object
when you can create the same object with obj{} example:
var obj = {
something : 'somevalue'
};
or just an empty object obj= {}
instead of var obj = new Object() ?
The two methods I show are just two different ways to create an object. The methods are called "new Object" and "object literal". For simplicity, readability and execution speed, use object literal when creating objects. The "new Object" method is pretty much a discouraged method today.
Here is a link that explains it in more detail: coderwall.com/p/p5cf5w/different-ways-of-creating-an-object-in-javascript
Really good tutorial, now JS has more sense for me
Thank you Dani !
thank you, better than paid courses on udemy
great teacher
Thanks, man.
manay manay thanks
Awesome!
Cool guy
Very well explained, thanks! :)
as a visual learner im learning more about js with his actions haha.i do the same thing whrn trying to explain my self some concepts
Trying to figure out the accent. Definitely a Scandinavian but not Swedish accent because, we don´t sound exactly like that but close. It´s not Norwegian because you don´t sound that gay, so you must be from Denmark.
"Ding ding"
do we Norwegians sound gay? I never noticed haha
As usual you explains very well and bla bla bla... 😂😂
you are Yoda ! Solid tutorial
so object variables are list of arrays in a single variable?
day by day you are changing my life thank you Daniel :) this will come back to you times infinity!
4:20 Do you instantly create a property of an object(person) when you write person.name or is it buildin?
what means return ++person.age; ++ ?
This is great, thank you!
Awesome video. Thanks
Why do we have objects if we only ever seem to work with one object at a time? Can people please give me example of where we use multiple objects?
An example of multiple objects could be if create web page that has video tutorials on it people can interact with.
He we could have a Course object, a User object, a Comment object, etc... Essentially we create an object for anything that has similar information or functions tied to it.
mmtuts Pls make an exersice video too
For this explaination
He is a very great teacher
I always practice javascript by watching your exercises in js
0:10 It's not a bug, it's a feature.
Awesome tutorials, tusen takk!
you are the man!
If you say “JavaScript” another time I m gonna start crying!
"JavaScript"
Dani Krossing
Why u mean Ahahaha
I cry now
Great vid regardless ;)
In which video did we see why and when to use the "let"?
In one of the previous videos :)
Help him to grow.
He is the best mentor i have ever seen