An Encounter with JavaScript Objects

  Рет қаралды 142,771

Fireship

Fireship

4 жыл бұрын

Part five of the full #JavaScript course 🐇🕳️. Learn everything you need to know about the JS Object fireship.io/courses/javascript/
Topics covered include:
- Object creation
- Bracket vs Dot Notation
- Property descriptors
- How object references work
- Prototype chain
- Modern syntax like spread and destructuring
- Loop over objects
- Custom object constructors
MDN Object Docs developer.mozilla.org/en-US/d...
Take the #JS quiz 🤓
iOS itunes.apple.com/us/app/fires...
Android play.google.com/store/apps/de...
Upgrade to Fireship PRO at fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.

Пікірлер: 210
@Fireship
@Fireship 4 жыл бұрын
Let's just pretend the audio issues in this video were meant to add extra suspense 👻 ¯\_(ツ)_/¯
@vasiovasio
@vasiovasio 4 жыл бұрын
One question - what is the editor and theme that you use in your videos? Looks like Visual Studio Code with Material theme?
@Fireship
@Fireship 4 жыл бұрын
@@vasiovasio VS Code + Atom One Dark + vscode-icons
@911madza
@911madza 4 жыл бұрын
@@Fireship hands down Atom had the most beautiful UI, tho VS Code is light years ahead when it comes to performance and features... to be honest, I still miss the smooth look and feel of Atom (One Dark theme don't fully recreate that), but in nowadays rush you have to go with what's best for productivity...
@jiandeng8595
@jiandeng8595 4 жыл бұрын
another qutestion, how to quick type the emoji string, i had to use the short ctrl+shift+b (Windows) and select one from the list
@chromus9149
@chromus9149 3 жыл бұрын
What plugins do you use to get the squares on the left side and the console.log showing its output on the right?
@gospodarsile4606
@gospodarsile4606 4 жыл бұрын
Let's be honest. There is no better programming content than FireShip. A big thank you! I hope you never stop making videos.
@jaimerojas6578
@jaimerojas6578 4 жыл бұрын
Yeah I just love the format of the videos!
@WTFAnyNameWorks
@WTFAnyNameWorks 2 жыл бұрын
Truer words have never been spoken!
@ar7alamin842
@ar7alamin842 2 жыл бұрын
Kkkkkokkokkkokokkokk
@ar7alamin842
@ar7alamin842 2 жыл бұрын
@@WTFAnyNameWorks kkokkkkokokokokkok
@ar7alamin842
@ar7alamin842 2 жыл бұрын
kkokkkkkkk
@tobeqz7065
@tobeqz7065 4 жыл бұрын
This course is PERFECT for people with some programming background who need to learn JS quickly. Thank you so much for creating it. Thanks to you I've slowly started to fall in love with JS and I'm using it for more and more of my projects.
@FordExplorer-rm6ew
@FordExplorer-rm6ew 4 жыл бұрын
Or for dumb people like me who need to review this over and over
@wchorski
@wchorski 2 жыл бұрын
@@FordExplorer-rm6ew 🙃
@whatisiswhatable
@whatisiswhatable 9 ай бұрын
Really? I know JS pretty well but this stuff moves too fast and doesn't give anyone time to digest. It's REALLY well done and covers everything right but I'm not sure I'd recommend it
@LukeyDubs
@LukeyDubs 4 жыл бұрын
I love the blend of high level concepts and basics. It’s not overwhelming, and it’s not too basic. Amazing content
@marcusgallegos8384
@marcusgallegos8384 4 жыл бұрын
This was very well produced. You Hit a lot of deep CS topics in a digestible high level way. Sharing this with my team!
@mabdullahsari
@mabdullahsari 4 жыл бұрын
09:40 defining the eatBrain property on the new zombie object itself means that a brand new function is going to be created every time a new zombie is created. Better to set it on the function's prototype property so it is only declared once. Also, that is what happens behind the scenes when you use the class syntactic sugar. Great video!
@Fireship
@Fireship 4 жыл бұрын
That is a great point. I've been spoiled by TypeScript for a long time.
@davidjunghan91
@davidjunghan91 4 жыл бұрын
duh, it's amazing
@TheCecchino98
@TheCecchino98 2 жыл бұрын
sorry if i don't get it, but could you give an example of how to achieve that? From my understanding, by "function's prototype" you are referring to the constructor function (Zombie), and i'm having a hard time understanding how to access the prototype from there.
@mabdullahsari
@mabdullahsari 2 жыл бұрын
@@TheCecchino98After having declared and assigned the constructor 👇 Zombie.prototype.eatBrain = function() {}; So, *outside* the constructor.
@TheCecchino98
@TheCecchino98 2 жыл бұрын
@@mabdullahsari thank you very much!
@agustincisneros6725
@agustincisneros6725 4 жыл бұрын
This course is really good. You're explaining topics that are really complicated to understand because it's necessary to see the javascript history and it's hard to do. Thank you!
@CaptTragedy
@CaptTragedy Жыл бұрын
First of all I know the editing for this video probably took forever, especially finding old clips that fit the theme so thank you for that, but also your tutorials (albeit very short and fast) have been very helpful for someone like me who just graduated from a bootcamp( I know...) so thank you for the hard work!
@piyushchoughule5383
@piyushchoughule5383 4 жыл бұрын
10 min video and hours worth of content. Thank you so much.
@ProgrammingwithPeter
@ProgrammingwithPeter 4 жыл бұрын
When I get notification from this channel, I know that I'm getting quality!
@TheRyanSmee
@TheRyanSmee 4 жыл бұрын
this it great. popping sound made me jump though ha
@Fireship
@Fireship 4 жыл бұрын
Sorry bout that, YT did not like the audio for some reason
@pokefreak2112
@pokefreak2112 4 жыл бұрын
Love how in depth these videos go, I had personally never heard of the object.entries destructuring trick before!
@sagnikpradhan3594
@sagnikpradhan3594 4 жыл бұрын
I really love the quality man! Good Work 👌
@abdulelahaljeffery6234
@abdulelahaljeffery6234 4 жыл бұрын
concise, elegant, and tremendously informative ❤️
@DivineZeal
@DivineZeal 4 жыл бұрын
With programming there are a million ways to do something, love it. Great video, learned some new tricks!
@harshitvarma7867
@harshitvarma7867 Жыл бұрын
If someone did not understand 8:03 here is a quick explanation, it just means that in case of nested objects, example: let obj = { name: "John", anotherObject: { age: 52, } } -> if we Object.assign({}, ) this object to let say b, although it wont copy the properties of 'obj' through reference, lets call it hard copying, it will copy the properties inside the nested object (anotherObject here) through reference. means, changing the properties of nested objects will change the copied properties of b.
@MongooseTacticool
@MongooseTacticool 3 жыл бұрын
As a beginner, I'm so glad I found this channel :D
@troythompson2
@troythompson2 4 жыл бұрын
I learned A LOT in this one. This channel is so clutch.
@YashGupta-dr5re
@YashGupta-dr5re 4 жыл бұрын
9:53 const obj = new Zombie("👨‍💻 Jeff"); 🤣🤣🤣
@theskyspire
@theskyspire 4 жыл бұрын
I think I need to watch this at least 10 times to fully absorb the density of the content. Other videos it is common to speed playback to 1.5X , this is one video where slowing it down can actually be helpful.. refreshingly concise, great job.
@Kawaiiization
@Kawaiiization 4 жыл бұрын
Love it! Love it! Love it! Fast pace for the win mate!
@MrTyty527
@MrTyty527 3 жыл бұрын
I came from a Python background and finally understand the mysterious rationale of copy and deepcopy of dictionaries. Thank you!
@valcron-1000
@valcron-1000 4 жыл бұрын
Another amazing technical video about JavaScript
@dantech2011
@dantech2011 4 жыл бұрын
Please do more of these videos! Thanks @Fireship
@Fatfit2
@Fatfit2 4 жыл бұрын
I don't think I've ever laughed while understanding Javascript more intimately at the same time... Twilight Zone is legit a great show btw...
@arch7143
@arch7143 4 жыл бұрын
And that was perfect scene/phrase to end this!
@tomascarignano5002
@tomascarignano5002 2 жыл бұрын
Jeff kudos to you man! You always make learning fun with all these creative jokes. Thanks a lot
@n.i.c
@n.i.c 4 жыл бұрын
You just blew my mind. I've never heard of Bigint before 🤯
@Fireship
@Fireship 4 жыл бұрын
Bigint was the highlight of the video!
@user-ms2fn7cq1g
@user-ms2fn7cq1g Ай бұрын
I can't believe that it's it's it's juuuuuuuust 10 min I'm like WOW, Thank you so much 💖
@YinonOved
@YinonOved 4 жыл бұрын
thought I was in control of this topic...🤓 thanks for this refresher and sharpening
@xeonblue007
@xeonblue007 4 жыл бұрын
This is a really awesome channel period.
@roshanjose7692
@roshanjose7692 Жыл бұрын
You and theo are my fav tech content creators
@DiwashHCR2
@DiwashHCR2 Жыл бұрын
The video I needed to watch .. thanks
@adityashinde3864
@adityashinde3864 4 жыл бұрын
I like your teaching style . please make more JavaScript video like this one.
@abdelkadermh
@abdelkadermh 4 жыл бұрын
Thank you for the good content you're making!
@gunasekarant6498
@gunasekarant6498 4 жыл бұрын
Covered overall all the concepts 😍
@hughesd.mungus9819
@hughesd.mungus9819 4 жыл бұрын
I only ever used Javascript to make a small project for school and I mostly disliked the language. This tutorial made me appreciate the language a bit and I am just astounded at how you can make a programming tutorial so fun and interesting. I just have to say thank you and keep doing what you're doing man!
@slavamelanko5992
@slavamelanko5992 4 жыл бұрын
Perfect tutorial 👌🏼
@favouroyende1111
@favouroyende1111 18 күн бұрын
Thank you so much!
@sourishdutta9600
@sourishdutta9600 4 жыл бұрын
Classic one cover almost everything, Thanks 😊. I just wanted to request you for something like if it is possible then please make a video on Symbol in es6 and their use case in real time application like where it's suitable for use and in enterprise application how we can maintain this. Thank you much . Big fan of yours.
@shriniwasrocks
@shriniwasrocks 4 жыл бұрын
OMG Object.entries will make my life easier to deep check an object. Amazing! Thanks man!
@xTiQ
@xTiQ 4 жыл бұрын
But you need to use a polyfill to make it work in IE. It's a new browser thing.
@jaimerojas6578
@jaimerojas6578 4 жыл бұрын
Precious job my dude UwU ♥️
@JoeWong81
@JoeWong81 4 жыл бұрын
That was a great video thanks
@palachokrab5711
@palachokrab5711 3 жыл бұрын
Amazing content..
@mhytos420
@mhytos420 8 ай бұрын
dude, you are saving my ass rn. Thank you!
@klutch4198
@klutch4198 2 жыл бұрын
Still one of the best! 🔥🔥🔥
@joaomelo6642
@joaomelo6642 4 жыл бұрын
tks for the awesome content
@dasdunetechnologies1695
@dasdunetechnologies1695 4 жыл бұрын
nice video, as vintage clips try some from the invaders tv serie !
@tropicaljupiter
@tropicaljupiter 2 жыл бұрын
The key to getting this video is to pause it, try the shit out in vscode, and go "ohhhh"
@rahulgharde7603
@rahulgharde7603 4 жыл бұрын
good one. objects are the origin on JS
@reymarkandog1441
@reymarkandog1441 4 жыл бұрын
What text editor are you using? Or what extension you used for those icons between the ' ' ?
@arturomedina2055
@arturomedina2055 3 жыл бұрын
What's the extension he's using here to print those console.log() ?
@SahilKashyap64
@SahilKashyap64 4 жыл бұрын
How do you make your videos they are so elegent. Your channel content quality is awesome. It looks like vscode editor and probably some emoji extension. What is the font size?
@edwardrhodes1518
@edwardrhodes1518 4 жыл бұрын
You unlock this door with the key of imagination - yep, thanks for providing the door
@JohnDoe-fe3zw
@JohnDoe-fe3zw 4 жыл бұрын
That was a great video
@yauul
@yauul 4 жыл бұрын
Someone seems to be excited for Halloween
@nick.h7566
@nick.h7566 2 жыл бұрын
Gleasons map, noice!
@archeron3004
@archeron3004 10 ай бұрын
thank you
@sojumoscow
@sojumoscow 2 жыл бұрын
After watching this especially the last part, I am confused, so can I use function instead of a class? (Currently i dont know class)
@anonwithamnesia
@anonwithamnesia 4 жыл бұрын
Thanks 🙏
@yash3827
@yash3827 4 жыл бұрын
Ultra use of object
@ChumX100
@ChumX100 4 жыл бұрын
Well that escalated quickly...
@NikhilKumar-yn6jf
@NikhilKumar-yn6jf 4 жыл бұрын
Are we an object ? #Existential101
@Fireship
@Fireship 4 жыл бұрын
Or are we a primitive?
@moonythm
@moonythm 4 жыл бұрын
@@Fireship we are a wrapper around a primitive
@Fireship
@Fireship 4 жыл бұрын
@@moonythm Deep, i like that!
@ShounenKaze
@ShounenKaze 4 жыл бұрын
How do you have those cool icons in your code, like the trex and comet?
@alekseysoldatenkov5675
@alekseysoldatenkov5675 4 жыл бұрын
Seeing destructuring in the for...of loop, was my twilight zone moment. Whats the outro track dawg?
@nagakrushnay4254
@nagakrushnay4254 4 жыл бұрын
Which plugin you are using for getting console log outputs in ide ? Good video
@tartarus1322
@tartarus1322 4 жыл бұрын
I second that
@bgpratheep
@bgpratheep 4 жыл бұрын
I too want to know that....
@eshaan7_
@eshaan7_ 4 жыл бұрын
I spent 4 hours parsing/escaping a JSON file, because a particular library kept rejecting it. Then when it finally worked, I used another library. And people say frontend dev is easy :)
@zemariagp
@zemariagp 3 жыл бұрын
This is da bomb
@YinonOved
@YinonOved 4 жыл бұрын
Jeff what are these Emojis you use in your code? doesn't look typical
@pladimir_vutin
@pladimir_vutin 4 жыл бұрын
nicee. very helpful and very nice intro and music... btw what's your ide?
@tomershechner
@tomershechner 4 жыл бұрын
OMG. I FUCKING LOVE YOUR VIDEOS M8. SO UNDERRATED.
@zaturntarto3814
@zaturntarto3814 2 жыл бұрын
Are you just using the "CTRL+Z" throughout the video or its video editing ?
@luis96xd
@luis96xd 4 жыл бұрын
This was an excellent video! 😄 Great Quality! What if I came from Java and C# and I have and array of objects: clients[i] = new Client(name, lastName, phoneNumber); And I want to create a new object and assign its properties. How would it be in Javascript? And if I have other object which gets data of each client object. How would it be in Javascript? Because I'm getting problem getting property values from other objects
@Ryu53898
@Ryu53898 4 жыл бұрын
So you stopped using Monokai pro ?
@chittiphonglasunon8166
@chittiphonglasunon8166 4 жыл бұрын
what extension you use to show the result of console.log ??
@onee
@onee Жыл бұрын
4:01 This gives an error that says "Cannot redeclare block-scoped variable 'spider'." and "Cannot redeclare block-scoped variable 'legs'."
@Ndzzle
@Ndzzle 4 жыл бұрын
First time I've actually slowed a video down just go catch all the content haha
@FabricioLoupias
@FabricioLoupias 4 жыл бұрын
what theme do you use for vs code?
@arturmrozinski7536
@arturmrozinski7536 2 жыл бұрын
WoW!
@peopledrivemecrazy
@peopledrivemecrazy 4 жыл бұрын
Right side wins, sneaky pun ;)
@Fireship
@Fireship 4 жыл бұрын
No pun intended ;)
@jeffreyjdesir
@jeffreyjdesir 3 жыл бұрын
{ neo: 'I know OOP.' }
@jazzz4988
@jazzz4988 Жыл бұрын
Fireship, could you please link me to the sound effect/music that plays from 0:15 to 0:25? That spacey, wide sounding music with some harp plucks? Thanks! (Also this video helped me a lot as a Javascript student)
@RoughSubset
@RoughSubset 4 жыл бұрын
How do you get the emojis in you editor?
@tonysmarks3578
@tonysmarks3578 4 жыл бұрын
Love this video but not the odd part of that
@oskarpetr1
@oskarpetr1 3 жыл бұрын
Hi, whats the extension that you use in VS code that outputs the value from console.log next to it?
@ChaoticNeutralMatt
@ChaoticNeutralMatt 3 жыл бұрын
Sadly I've been combing multiple videos and comments for the answer to this question.
@joaogc
@joaogc 3 жыл бұрын
Quokka.js
@edumorlom
@edumorlom 4 жыл бұрын
what is the extension that displays the return as a comment on the right side called
@johnscale102
@johnscale102 3 жыл бұрын
what font you are using?
@azatecas
@azatecas 4 жыл бұрын
This is hell, my head hurts
@gamesseries7300
@gamesseries7300 4 жыл бұрын
What theme you are using.?
@chawker67
@chawker67 4 жыл бұрын
In 9:40 shouldn't the method be defined on the prototype?
@RanjanKumar-ht7dp
@RanjanKumar-ht7dp 4 жыл бұрын
Which editor you are using. I am interested in output as you type, it appears.
@getmorpheeus
@getmorpheeus 4 жыл бұрын
I think he is using quokkajs
@OfficialNattyOrNot
@OfficialNattyOrNot 2 жыл бұрын
What is the plugin you are using that logs the console.log() inside of the IDE?
@Veganmadeyeezy
@Veganmadeyeezy Жыл бұрын
Quokka.js
@hachij_
@hachij_ 4 жыл бұрын
nice
@sarthakdalabehera3664
@sarthakdalabehera3664 4 жыл бұрын
May I know the ending music?
@augusto256
@augusto256 4 жыл бұрын
Cool
@iliashterev38
@iliashterev38 3 жыл бұрын
The tempo is so fast, I can't even hit pause on time to get some rest and rethink it.
@cmdv42
@cmdv42 2 жыл бұрын
💯
@metasavagex
@metasavagex 3 жыл бұрын
Fireship is King
@giancarloandrebravoabanto7091
@giancarloandrebravoabanto7091 4 жыл бұрын
damn the only thing I've learned from this video is the spread notation.
@polyshrub
@polyshrub 4 жыл бұрын
Dang you have a lot of knowlage about javascript where did you learn all this I expect that you've probably been working with it for more then 10 years?
JavaScript: How It's Made
10:54
Fireship
Рет қаралды 869 М.
IS THIS REAL FOOD OR NOT?🤔 PIKACHU AND SONIC CONFUSE THE CAT! 😺🍫
00:41
Универ. 10 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:04:59
Комедии 2023
Рет қаралды 733 М.
ИРИНА КАЙРАТОВНА - АЙДАХАР (БЕКА) [MV]
02:51
ГОСТ ENTERTAINMENT
Рет қаралды 1,1 МЛН
The JavaScript Survival Guide
14:47
Fireship
Рет қаралды 715 М.
How to NOT Fail a Technical Interview
8:26
Fireship
Рет қаралды 1,3 МЛН
You Should Use Maps and Sets in JS
14:28
Syntax
Рет қаралды 8 М.
Javascript Objects Explained | Javascript Objects Tutorial
23:17
Reacting to Controversial Opinions of Software Engineers
9:18
Fireship
Рет қаралды 2 МЛН
JavaScript Function - What's your Function?
12:27
Fireship
Рет қаралды 179 М.
10 regrets of experienced programmers
8:16
Fireship
Рет қаралды 1 МЛН
The Weird History of JavaScript
12:09
Fireship
Рет қаралды 1,2 МЛН
Easy Ways to Loop Over Objects in JavaScript
11:21
dcode
Рет қаралды 7 М.
Mem VPN - в Apple Store
0:30
AndroHack
Рет қаралды 89 М.
i like you subscriber ♥️♥️ #trending #iphone #apple #iphonefold
0:14
ВСЕ МОИ ТЕЛЕФОНЫ
14:31
DimaViper Live
Рет қаралды 66 М.
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 6 МЛН