Now we have the structuredClone() method which is widely available as stated on MDN Thanks Flavio!
@kellyaquinastom10 сағат бұрын
Joy not Job: sooooo.... react, svelte vue, next, remix, Tanstack, T3, Sveltkit, or Nuxt? not for job but for joy of use.... Vue? Just saw your channel. Thank you!
@kellyaquinastom10 сағат бұрын
vue vite nuxt?
@kellyaquinastom10 сағат бұрын
Or maybe Astro?
@stefanosdedalosКүн бұрын
What do you you think about the C#/Dot Net universe?
@bootcampdev16 сағат бұрын
I'm afraid I never worked with it, so I don't have any opinion :)
@larsh5853Күн бұрын
Very nice analysis. Love this statement : “ There's no "single source of truth" in JS, no "benevolent dictator" taking all the decisions. It's a "bazaar" compared to the "cathedral" approach of rails/laravel.” 👍👍
@TwilightTrekker13 күн бұрын
I saw someone on X make the argument that javascript developers/ecosystem biases toward frontend-first tools (including its innovation focus). What do you think about this? It seems to make sense.
@bootcampdev3 күн бұрын
There's been a lot of innovation lately on server-side too (Deno 2, Bun, RSC), but yeah the frontend is JS/TS unique value proposition, since it's the only language that you can use to build some kind of features on the frontend
@TwilightTrekker13 күн бұрын
@@bootcampdev That makes sense, thank you!
@thanhphongquach16903 күн бұрын
Recently, I found the blog flaviocopes, I love what you wrote in your blog and your ebooks, it's easy to understand (I like simple things). I also found the bootcamp and join the waiting list, I have a question that how much money should I pay to learn what you teach? Because I've never joined any of your courses before, so I don't know what to do. Thank you so much for what you doing!
@bootcampdev3 күн бұрын
Thanks for your kind words, happy to hear you like those resources! I just updated the pricing information on bootcamp.dev/#pricing Pricing will be $399 with discounts available for PPP / students, for the entire 4-months long cohort.
@larsh58537 күн бұрын
Cool. Cannot wait. 2024 boot camp was great.
@bootcampdev6 күн бұрын
great to hear, awesome! 😄 🙏
@ateeqahmad Жыл бұрын
thanks for the article and the video! Very much appreciated!👌👍
@josh-rowe2 жыл бұрын
What editor is this?
@chamerionAngustifolium2 жыл бұрын
You've said nothing about most important differences: scope and "this"
@guilhermehenrique-zj5tt2 жыл бұрын
as everyone else. i came here expecting something different.... disappointed.
@ZZZZZZZaaaart2 жыл бұрын
why is your avatar a Habbo??
@kamertonaudiophileplayer8472 жыл бұрын
Thanks Bud. Just yesterday had the problem and didn't know which end to start, but magic, today spotted your video and the issue has been solved.
@TheAsymmetrical2 жыл бұрын
...rest, operators = arrCool
@jonathanschober10322 жыл бұрын
This is what happens when KZbin removes the dislike button
@ThePhantomCoder2 жыл бұрын
Dude if you want to make tutorials shouldn't you at least know what you're talking about? Slicing is one of the most basic things you can do in js. Come on. This is useless and is teaching beginners bad syntax
@RoshanKharel2 жыл бұрын
[...colors].pop();
@edhemavdagic66642 жыл бұрын
why didn't you just reverse the array and take the first element?
@sourdface2 жыл бұрын
Because you have to construct a new array in memory to do that
@RyanScarbrough2 жыл бұрын
Ecma should do -1 like in Ruby, so much cleaner. Thanks for the vid.
@mattweippert72542 жыл бұрын
I thought this was one of those programming memes where the language has some weird syntax/structure that makes performing a simple task lengthy, but it wasn't and I'm not even mad lol
@cabiste2 жыл бұрын
i was preparing to start crying but it's just a normal function
@PyromandanPwnr2 жыл бұрын
Did we really need a tutorial for one of the most basic array functions? Why was I suggested this?
@adissentingopinion8482 жыл бұрын
KZbin could detect you were highly likely to make an off by one error in your near future, so it decided to give you a quick refresher. And don't tell me you wouldn't make such a simple mistake, you know why as well as I do.
@realdebil.2 жыл бұрын
Gold
@pacifio2 жыл бұрын
what is this editor
@awesomeknight1232 жыл бұрын
I can't believe I got bamboozled by a legit javascript tutorial
@violetwhite68752 жыл бұрын
true
@SuperGrgur2 жыл бұрын
You can do it like this: You get the last item: var lastElement=colors.pop(); You reset the array: colors.unshift(lastElement); console.log(lastElement) The last element is cut, array reseted and still you have the last item. Depending on what you do with an array, you can do it with splice() also.
@zedfalcon69722 жыл бұрын
this is fantastic thank you just what i needed for my fish tank
@Eternalfrust2 жыл бұрын
........... Is, is he trolling or something?
@АлексейТарасов-ц1с2 жыл бұрын
Why am I watching this
@clodman842 жыл бұрын
Susan wills it
@guilhermehenrique-zj5tt2 жыл бұрын
you expected something different like me. XD
@ahmad-murery2 жыл бұрын
alternatively we can slice the last element colors.slice(-1)[0] or use the experimental "at" method although it seems it has a good support colors.at(-1) Thanks Falvio
@L-82 жыл бұрын
.at() is in ES2022 so it's not even experimental; it's supported in modern browsers and Node (>=16.6) since mid last year 👍
@ahmad-murery2 жыл бұрын
@@L-8 That's what confused me, MDN still displaying the experimental icon next to the Array.prototype.at() under the methods list (left-side pane) and yet it shows full support under the browser compatibility table (except for the obvious) Thanks for the updates 👌
@mathmada6782 жыл бұрын
The slice method actually copies the specified range of the array to a new location in memory, so by doing it that way you could loose some performance
@ahmad-murery2 жыл бұрын
@@mathmada678 So true, just as I said, it's an alternative not the best way to do so, I love finding alternatives and it's the way I train my brain 😎
@mathmada6782 жыл бұрын
@@ahmad-murery yes, same for me 🙃
@sanketgawande36672 жыл бұрын
thank you , it was useful , one more thing i used so frequently but i didnt know that arrow function also have something called implicit return : ) | javascript is like MAGIC
@soypepe90322 жыл бұрын
But, if I try new Date(1559310620); It prints Sun Jan 18 1970 19:08:30 GMT-0600 (Central Standard Time). So it's not the correct date. Am I doing something wrong?