2:32 "...then it throws a wobbler..." - that cheered me up
@bburgess_keys4 жыл бұрын
I literally came here to say this!
@MattMcT2 жыл бұрын
"It throws a wobbler" - thats a new t-shirt right there! Cheers and thank you so much for this series, Shaun!
@suryadatta14244 жыл бұрын
Hope you keep teaching us ninjas forever. I always tell my friends the best frontend tutorials can be found at Net Ninja's. The amount of work you put in to every series in unbelievable. Keep being the top ninja.
@NetNinja4 жыл бұрын
Hey, thanks so much Surya :)
@stanleyagwu48184 жыл бұрын
Thanks so much shaun. Good work! You are my first point of reference for learning.
@austin-rt Жыл бұрын
"throws a wobbler" might be the greatest slang for an error that i've ever heard.
@JCReborn894 жыл бұрын
Whenever my code editor highlights an error, i'm calling it a 'wobbler' from now on lol
@iamviduranishantha3 жыл бұрын
Thanks, Shaun for this great tutorial. First time I learnt TypeScript and you made it a breeze
@om-flex85075 ай бұрын
Thanks, a great tutorial. Cleared my concepts
@NetNinja5 ай бұрын
Great to hear!
@huaweitrainingsafrica37424 ай бұрын
Thank you very much. I once had this problem when trying to destructure an array.
@Shakeel7143 жыл бұрын
A topnotch tutorial series on TypeScript from a topnotch teacher.
@annabadyka4658 Жыл бұрын
That was a great tutorial, thank youu very much! Also thanks for providing a code for every lesson. You start from the easiest to the most difficult. Very useful.
@sambhumahato83204 жыл бұрын
You're awesome Shaun.💖
@froggerabc Жыл бұрын
Tuples is beautifully explained
@kubataiupov12452 жыл бұрын
super informative videos Shaun! thanks a lot!
@NetNinja2 жыл бұрын
Glad you liked it! :) thanks for watching Kubat
@Mmg123-masked12G2 жыл бұрын
you can also cast it to const by "as const" const values = [tofrom.value, details.value, amout.valueAsNumber] as const;
@williamreiudarbe76122 жыл бұрын
Thank you Net Ninja from Phils. Enjoyed Typescript, gatsby, laravel and vue series
@ThienNguyen-do4eo3 жыл бұрын
you've helped my studying
@stevecriddle Жыл бұрын
One slightly annoying gotcha with tuples is you can use methods such as .push() on the array and you won't be shown an error.
@Marcus-cf2li2 жыл бұрын
Thanks ninja very useful content
@shift-happens Жыл бұрын
...It becomes a wobbler :D very nice :)
@ZanarkandStarplayer3 жыл бұрын
Ahh I see you're a FG fan. A man of culture
@junliang33684 жыл бұрын
Thank u shaun
@CherryHavoc2 жыл бұрын
What happens if you try to add an additional item to a tuple that you didn't specify? Will it let you? Or can you only add as many items as the tuple you specified had?
@aliston_gomesАй бұрын
please make a video on react+typescript and react router dom v7 or v7+, Thank You : )
@sujithprabhu2 жыл бұрын
To get this array: let arr = ['ryu', 25, true]; We can change this : let tup: [string, number, boolean] = ['ryu', 25, true]; to this: let tup: [any, any, any] = ['ryu', 25, true]; 😀
@VishalSharma-rn7mt2 жыл бұрын
Awesome
@salahalhashmi65283 жыл бұрын
thanks
@manoj-k2 жыл бұрын
🔥🔥🔥
@mylesdavies9476 Жыл бұрын
Not really seeing an advantage/ difference between defining an object instead of the tuple?
@ridl274 жыл бұрын
ty.
@mahmoudzakria69464 жыл бұрын
You can't spread within the class constructor args/props.
@easycodingwithammara48124 жыл бұрын
great
@R_Samnan4 жыл бұрын
So cool
@ajayraja66363 жыл бұрын
Before I watching this video, I thought Tuples in Typescript and Tuples in Python are same. 😂😂😂
@Norige11 ай бұрын
Use it when you can't come up with names for objects 😂😅
@adriatic1233 жыл бұрын
The course is ok but typescript is a complete nonsense language. It adds totally unnecessary things that javascript is not meant to take into consideration. After all, during compile phase javascript abandons all code that we have written in typescript while the resulting code remains twice bigger than it would be written in pure javascript. Rather useless waste of programmer time and effort.
@ayor38293 жыл бұрын
I agree
@nathanrichards69553 жыл бұрын
I've recently picked up TS as I'm in a new role at a company that has adopted at, and the main advantages of using the language are to improve code quality before it compiles. This helps massively when working on large scale software projects with a dedicated testing team, as a lot of the errors that we may overlook from time to time are picked up as we write, forcing us to write code that will validate first time on a PR.