duuude you are a genius!, really appreciating this online free courses!. Thank you very much for spreading amazing information in a very clear, funny and easy way to understand it. Almost finishing this playlist, Thank you Ninja ✌
@itshamiiid2 жыл бұрын
thank you sir, for explaining so well. I appreciate the way you simplify these complex concepts and helping us understand.
@NetNinja2 жыл бұрын
Happy to help :) thanks for watching CALESCE!
@MrVisheshsingh4 жыл бұрын
Enums = descriptive constants 🤟
@kikevanegazz3252 жыл бұрын
Ninja, you are the BEST Nija out there!
@Shakeel7143 жыл бұрын
Wonderful tutorial series on TypeScript!!
@philykearney4 жыл бұрын
Thanks for the course, easy to follow and straight to the main points. ❤️
@ridl274 жыл бұрын
very good practical example 🙃
@rafmyles4 жыл бұрын
Can someone please explain why Enums are useful and where they can be used?
@shreyasjejurkar12334 жыл бұрын
To force the value to variable that user can assign. Like gender for example which can be male or female or maybe other, but not anything other than that. Then you can create enum for those 3 and can assign it to variable. And now that variable can only have those either of those 3 values, and nothing else.
@rafmyles4 жыл бұрын
Shreyas Jejurkar thank you! I understood after reading your comment and rewatching the video.
@shreyasjejurkar12334 жыл бұрын
@@rafmyles yeah, sure its so simple. 😊😊
@rubendacostaesilva84422 жыл бұрын
You can use it with a Switch statement, or in React with useReducer, to dispatch multiple actions.
@radezzientertainment5012 жыл бұрын
name of the wind!!
@marcinkalmar99642 жыл бұрын
Now I understand :) I think about swap my tutorial for you videos
@carloolleres52374 жыл бұрын
maybe I do not get something from this, but what would be the difference of enums with an plain object?
@devdogueto3 жыл бұрын
that was great, thank you
@salahalhashmi65283 жыл бұрын
thanks
@juroltv31194 жыл бұрын
Alright ❤️
@erickbravo52993 жыл бұрын
what about string enums?
@matthewbeardsley70044 жыл бұрын
are enums in Javascript?
@TheRahulDBZ3 жыл бұрын
nope..just typescript..enum code get converted to function in javascript..if you are following the tutorial simultaneosly then you can see it in your app.js file or in his github course file.. like this: var ResourceType; (function (ResourceType) { ResourceType[ResourceType["BOOK"] = 0] = "BOOK"; ResourceType[ResourceType["AUTHOR"] = 1] = "AUTHOR"; ResourceType[ResourceType["FILM"] = 2] = "FILM"; ResourceType[ResourceType["DIRECTOR"] = 3] = "DIRECTOR"; })(ResourceType || (ResourceType = {})); ;
@balintbenedektoth4 жыл бұрын
Cool video
@ridl274 жыл бұрын
ty.
@tomasznowak20324 жыл бұрын
nice
@reihaxhiraj996 Жыл бұрын
Excellent Work but I have to say that most of the conceptes of TS seem kind of pointless fro this perspective like Enums are just some kind of array.I MAY BE HORRIBLY WRONG , just saying.