Javascript Nuggets - Dynamic Object Keys

  Рет қаралды 49,073

Coding Addict

Coding Addict

Күн бұрын

Javascript Nuggets - Dynamic Object Keys
source code : github.com/joh...
Products I Use:
Microphone - Shure SM7B - amzn.to/3fX55aD
Headphones - Shure AONIC 50 - amzn.to/3zbkxHC
Desk-Mounted Microphone Stand - amzn.to/3x3MBuS
Crossover - dbx 234s - amzn.to/3xcryGC
Audio Interface - Focusrite Scarlett 2i2 3rd Gen - amzn.to/3pt1wMx
Cheaper Microphone (My first mic) - Blue Yeti USB Mic amzn.to/3iliwTm
Blue Light Blocking Glasses - amzn.to/3fZASrv
Apple MacBook Pro 13.3" - amzn.to/3z5QDEK
iMac - amzn.to/3glWmOe
Second Monitor - LG 4K UHD 27UD88 - amzn.to/3ckdwdV
Wifi Router - TP-Link AC1900 - amzn.to/34ZSddz
Desk Chair - amzn.to/3ikNbQJ
Standing Desk - amzn.to/3zdKVAJ
Books I Recommend:
The Subtle Art of Not Giving a F*ck - amzn.to/3v9t8Yi
The Tipping Point - amzn.to/3gCslKj
Atomic Habits - amzn.to/3x52xNa
12 Rules for Life - amzn.to/3gln8pN
Deep Work - amzn.to/3cyAgqu
Digital Minimalism - amzn.to/3gao69A
A World Without Email - amzn.to/351Swoe
Rich Dad Poor Dad - amzn.to/3v8RWQ6
Rich Dad's Cashflow Quadrant - amzn.to/3ivt1Uk
Check out My Amazon Store for more products and books recommendations - www.amazon.com...
Disclosure: This video is not sponsored. Some links above are affiliate links, and l may earn a small commission from any purchases at no additional cost to you. Thank you for supporting my channel!

Пікірлер: 103
@yensua_tech1504
@yensua_tech1504 2 жыл бұрын
You are a great tutor. I just bought your Javascript course on Udemy. More than 40 hours of pure knowledge.
@atefehmirzabeigi3258
@atefehmirzabeigi3258 2 жыл бұрын
I want to thank you for all your content by far your are the best teacher ever. I learn a lot, my react knowledge is divided in two part: after your course and before your course.
@CodingAddict
@CodingAddict 2 жыл бұрын
Wow, thank you!
@shehabnabil6102
@shehabnabil6102 Жыл бұрын
Can you tell me that tool he is using to show the results on the same page
@raphaelmutili
@raphaelmutili 9 ай бұрын
@@shehabnabil6102quokka
@RainOnline
@RainOnline 3 жыл бұрын
i almost cried not gona lie, this was mind boggling for me, stuck in a react demo. TYVM
@christopherak4656
@christopherak4656 3 жыл бұрын
square bracket notations- key points 1. To update variable keys- when we use the square bracket notation we set the value to the key name declared by the variable in the square bracket. i.e const variableName = "keyName" {[ variableName ] : "value"}. //this sets {keyName: "value"} 2. To update or add key values- objectName[ 'keyName' ] = 'value' Thanks John!!
@dave_m98
@dave_m98 3 жыл бұрын
listen to him i came from his react course and they are super important
@hitmanop4078
@hitmanop4078 Жыл бұрын
Ur a god 🛐
@snsa_kscc
@snsa_kscc 4 жыл бұрын
Great format, Mr Addict. Extremely useful. Thanks a million and looking forward to more nuggies in the future.
@shehabnabil6102
@shehabnabil6102 Жыл бұрын
Can you tell me that tool he is using to show the results on the same page
@jakradum
@jakradum 7 ай бұрын
@@shehabnabil6102 I think it's Quokka, although I don't use it. I've seen him talk about it
@pearsonlimoservicestoronto7272
@pearsonlimoservicestoronto7272 4 жыл бұрын
One of best instructor I have ever had thanks a lot Sir
@shehabnabil6102
@shehabnabil6102 Жыл бұрын
Can you tell me that tool he is using to show the results on the same page
@gubatenkov
@gubatenkov 3 жыл бұрын
John, I like your courses vanilla JS and React) I hope that 30 projects from this courses really can help me finally to get my first job. I will take care about you as soon as I get a developer job. Hello and thanks from Ukraine, John 🇺🇦 P.S. I very very very like the way you teach and explain complicated things in simple way
@imnemo2327
@imnemo2327 2 жыл бұрын
Are you all right there ? Safe?
@gubatenkov
@gubatenkov 2 жыл бұрын
@@imnemo2327 here, in central Ukraine, it's quiet
@imnemo2327
@imnemo2327 2 жыл бұрын
@@gubatenkov great to hear...Stay Safe!!
@sirlexie9810
@sirlexie9810 3 жыл бұрын
after watching this video, I understand the useState hook in reactJS XD. Thanks! :)
@prathibhahm7236
@prathibhahm7236 3 жыл бұрын
Your voice makes me feel like I know u from childhood and you are my kindergarten teacher . So it's very easy to learn any concept you teach. Thanks for all the videos...I am currently taking ur javascript course on udemy.... then planning to take up react.
@CodingAddict
@CodingAddict 3 жыл бұрын
Wow, thank you
@gurnoorsingh4071
@gurnoorsingh4071 2 жыл бұрын
clarity at peak.
@jedllenado
@jedllenado Жыл бұрын
Hi John, I'm new to your React Projects course. I'm loving the knowledge I'm learning so far. Thank you for the amazing learning resources. I'd like know how did display the console.log variables in the snippet at 8:03?
@krishnayallapanthula
@krishnayallapanthula 4 жыл бұрын
Great Video. Enjoying Javascript nuggets
@Shakeel714
@Shakeel714 3 жыл бұрын
Really helpful explanation of Javascript topics
@slayern5951
@slayern5951 4 жыл бұрын
Hey, john awesome video as usual. I wanted to request that can u make a video on how to think in javascript when making an app or some projects I understand javascript really well but I'm struggling what to do and which approach to take. I hope my question doesn't confuse you. :)
@tsdineshjai8565
@tsdineshjai8565 3 жыл бұрын
Hi J Smilga, right now am taking your React Course, as you said this was confusing and now after watching this it is crystal clear ! Just want to know the VS code extension you were using to display the results instantaneously
@CodingAddict
@CodingAddict 3 жыл бұрын
quokka.js
@SaharMirkamrani
@SaharMirkamrani 3 жыл бұрын
I've learned a lot from you, thanks!
@CodingAddict
@CodingAddict 3 жыл бұрын
Glad to hear it!
@jumayevjahongir1712
@jumayevjahongir1712 Жыл бұрын
Thank you your course i learnt a lot of things from that
@calabi234
@calabi234 3 жыл бұрын
I love listening to this guy because he sounds like strongbad
@ShimmerBodyCream
@ShimmerBodyCream 2 ай бұрын
Great video, thank you.
@Sayantan_627
@Sayantan_627 Жыл бұрын
Everything is temporary but John giving example of Bananas 🍌 in every video and tutorial is permanent 😂
@diegomedina2359
@diegomedina2359 Жыл бұрын
and the "shakeAndBake"... inmortal
@MohammedShazadBasha007
@MohammedShazadBasha007 3 жыл бұрын
got the solution for which I was searching..thank you
@pratibhalovesu
@pratibhalovesu 4 жыл бұрын
awesome sir, keep posting new videos
@gosinP
@gosinP 4 жыл бұрын
It is very nice. Very useful. Thank you for sharing.
@elyoaprogrammer
@elyoaprogrammer 3 жыл бұрын
I really enjoyed all your lessons..thank you..
@abdullahaladibakhand960
@abdullahaladibakhand960 Жыл бұрын
Amazing concept. thanks
@newabyuser
@newabyuser 4 жыл бұрын
how is your console.log working on vs code?
@CodingAddict
@CodingAddict 4 жыл бұрын
quokka - extension :):)
@sumanthprabhu11
@sumanthprabhu11 Жыл бұрын
This was done by black magic
@lifeisbeautifu1
@lifeisbeautifu1 2 жыл бұрын
Thank you so much.
@munteanionut3993
@munteanionut3993 2 жыл бұрын
What is the name of the extension John uses to see the output (the state) of whatever he writes without actually running `node app.js` and looking in the terminal? I can basically see that he sees the output real time, similar to a comment that automatically appears at the end of his line.
@clevermaniac
@clevermaniac 2 жыл бұрын
quokka.js vscode extension
@Yourguru9
@Yourguru9 Жыл бұрын
@@clevermaniac thanks man
@maivanha8778
@maivanha8778 Жыл бұрын
I hope you do NodeJS nuggest
@user-ct5oo3do7b
@user-ct5oo3do7b 2 жыл бұрын
this video deals with both ES6 computed properties and dynamically setting variables using square brackets.
@robertobenedit
@robertobenedit 2 жыл бұрын
Que util!
@abdulhalimacar
@abdulhalimacar Жыл бұрын
it is really great!
@oncoding4520
@oncoding4520 Жыл бұрын
nice video, I come here from your react course :)) what extension do you use for the green ticket and red ones please?
@mikayilaliyev442
@mikayilaliyev442 Жыл бұрын
Everything is cool and awesome, but I want to ask: what is about a vegan food truck?😂😂 You have mentioned 2 years ago and even in your recent React 18 course you still mention it. Is it your secret business?
@nikhil_squats
@nikhil_squats 2 жыл бұрын
Hey John, which vs code extension, do you use do get console.log output there itself
@CodingAddict
@CodingAddict 2 жыл бұрын
Hello, it's quokka.js
@OrionRox
@OrionRox 2 жыл бұрын
thanks, I was about to ask the same question.
@petronini
@petronini 3 жыл бұрын
great video. I'd like to know which vscode extension you use to show up the return console log into the editor. Thanks
@CodingAddict
@CodingAddict 3 жыл бұрын
quokka.js
@TheGreyDenimJacketGuy
@TheGreyDenimJacketGuy 2 жыл бұрын
What is that extension he is using its printing the log outputs instantly.
@martinsmeisters7645
@martinsmeisters7645 4 жыл бұрын
Hi! Whats the name of extension what shows you errors in code editor?
@ozankurucu6261
@ozankurucu6261 3 жыл бұрын
Thank you! Amazing
@diegomedina2359
@diegomedina2359 Жыл бұрын
this is very cool but I still have a question: why use this and not simply use state.name= newName, or state.job= newJob? and given that you can also create new key with state.newKey= newValue, why is the benefit of doing it with dynamic keys in brakect notation? thanks to anyone who can aswer
@helloWorldPlus
@helloWorldPlus 2 жыл бұрын
Hello, I followed the tutorial but I'm still thinking about a real life example in which this can be useful. Can you elaborate a real life scenario to clarify? Thanks
@CodingAddict
@CodingAddict 2 жыл бұрын
const handleChange = (e) => { const name = e.target.name; const value = e.target.value; setPerson({ ...person, [name]: value }); };
@munteanionut3993
@munteanionut3993 2 жыл бұрын
@helloWorld if you want to see precisely the context for the snip John gave you, you can check his React course here:kzbin.info/www/bejne/aoa9o6aKptCWjZY&loop=0 (around 07:00:00)
@rajeevthapa7829
@rajeevthapa7829 2 жыл бұрын
What extension is this console log straight away showing in the vscode, please?
@CodingAddict
@CodingAddict 2 жыл бұрын
quokka.js
@shabnamhaque2003
@shabnamhaque2003 Жыл бұрын
can someone tell me what extension is he using to display the console.logged items
@eudeamonism
@eudeamonism 7 ай бұрын
is this Jon Smilga?
@CodingAddict
@CodingAddict 7 ай бұрын
No, it's GPT-4
@abhishekkumar-fe8lw
@abhishekkumar-fe8lw Жыл бұрын
hey,can you tell me which extension are you using for console logging
@ahmedjamal9676
@ahmedjamal9676 4 жыл бұрын
I can understand all of your tutorials but I can't do anything on my own Should I keep trying or it would be better if I give up and let it go
@coderoad3581
@coderoad3581 3 жыл бұрын
This is something everybody faces in the starting. Practice and persist.
@Ainzworth269
@Ainzworth269 3 жыл бұрын
we can also set up key dynamically using dot notation right?
@talhabytheway
@talhabytheway 3 жыл бұрын
no, that was the whole purpose of video
@atreysinainadkarni5453
@atreysinainadkarni5453 Жыл бұрын
What extension is this which shows console.log on the vscode screen?
@CodingAddict
@CodingAddict Жыл бұрын
quokka.js
@michaelguch3279
@michaelguch3279 4 жыл бұрын
Sir, which IDE are you using? It seems to display results just by the side.
@CodingAddict
@CodingAddict 4 жыл бұрын
vs-code quokka extension
@hamedhosseini4766
@hamedhosseini4766 2 жыл бұрын
what is name of the extenstion that show console in your vscode
@CodingAddict
@CodingAddict 2 жыл бұрын
quokka.js
@jeremiahojo2048
@jeremiahojo2048 2 жыл бұрын
hello john, what extension gives you the answer to code just right beside the code?
@CodingAddict
@CodingAddict 2 жыл бұрын
quokka.js
@uzochukwuamarabenneth2583
@uzochukwuamarabenneth2583 2 жыл бұрын
This still confuses me till date: return { ...state, message: { ...state.message, [userId]: { ...activeMessage, [number]: { number: number, text: message, message, userId, is_user_msg: true, }, }, }, };
@CodingAddict
@CodingAddict 2 жыл бұрын
Not sure what exactly . ...someExistingValue - just signals that you are copying all the existing values, and you might possible overwrite some of them.
@slayern5951
@slayern5951 4 жыл бұрын
also wanted to ask what is the name of the extension which can u display the results of the js along with your code.
@CodingAddict
@CodingAddict 4 жыл бұрын
quokka extension
@slayern5951
@slayern5951 4 жыл бұрын
Coding Addict ty i got it
@vishant898
@vishant898 4 жыл бұрын
Hello Coding Addict i installed quokka extension but It's not working . tell me what should i do more
@CodingAddict
@CodingAddict 4 жыл бұрын
Well, I can't troubleshoot your vs-code environment - I would suggest just following the docs
@vishant898
@vishant898 4 жыл бұрын
@@CodingAddict okay Thanks for suggesting lots of love from India
@ivanyosifov2629
@ivanyosifov2629 4 жыл бұрын
I think when you create a new file you need to choose Quokka new file. Then it will activate.
@sujeetk3099
@sujeetk3099 3 жыл бұрын
Or you can open command pallete and type quokka and will find an option to toggle quokka on or off
@sdvvoraman5919
@sdvvoraman5919 4 жыл бұрын
Hi how about yr javascripts udemy course I saw u cut some hours in yr course is that true ?
@CodingAddict
@CodingAddict 4 жыл бұрын
I updated my course to more modern projects and less css
@sdvvoraman5919
@sdvvoraman5919 4 жыл бұрын
@@CodingAddict ok thank I bought yr course too but not start yet
@MohammedAli-p7e9d
@MohammedAli-p7e9d 14 күн бұрын
Everyone asking about the extension without looking for an answer in the comments lol
@Men_To_Millionaire
@Men_To_Millionaire 8 ай бұрын
great playlist but unfortunatily not spreadout to our developer community.
@RameenFallschirmjager
@RameenFallschirmjager 4 жыл бұрын
So many Ads in your videos?! It's so distracting!
@keithnash5146
@keithnash5146 3 жыл бұрын
yeah its just too much
@kashmirtechtv2948
@kashmirtechtv2948 2 жыл бұрын
I don't see any ads
@show_me_the_moneyy
@show_me_the_moneyy 2 жыл бұрын
Can we dynamically also pass object along with key and value
Javascript Nuggets - Filter and Find
15:14
Coding Addict
Рет қаралды 34 М.
Javascript Nuggets - Async / Await
16:46
Coding Addict
Рет қаралды 25 М.
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 79 МЛН
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 108 МЛН
Object keys, values, and entries methods
7:15
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 97 М.
Use Arc Instead of Vec
15:21
Logan Smith
Рет қаралды 147 М.
How are holograms possible? | Optics puzzles 5
46:24
3Blue1Brown
Рет қаралды 214 М.
A subscriber was asked these interview questions for a junior role
44:35
Use Maps more and Objects less
5:45
Steve (Builder.io)
Рет қаралды 96 М.
Postgres just got even faster
26:42
Hussein Nasser
Рет қаралды 33 М.
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
Javascript Nuggets - Callback Functions
13:00
Coding Addict
Рет қаралды 23 М.