background icons
background icons 2

Video Belajar

Tonton dan pelajari berbagai topik menarik melalui video pembelajaran eksklusif dari Channel Dave Gray.

Dave Gray

21280

Typescript Functions | Basics Tutorial for Beginners

Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap

In this Typescript Functions | Basics Tutorial for Beginners you will learn about TS Functions, parameters and return types along with optional params, default param values, type guards, type aliases and more.

πŸš€ Become a full-stack web dev with Zero To Mastery Courses:
- The Complete Web Developer: https://bit.ly/WebDevMaster
- Master the Coding Interview: https://bit.ly/FAANGInterview
- Junior to Senior Dev Roadmap: https://bit.ly/WebDevRoadmap-JrtoSr

🚩 Subscribe ➜ https://bit.ly/3nGHmNn

πŸ“¬ Course Updates ➜ https://courses.davegray.codes/

❓ Questions - Please post them to my Discord ➜ https://discord.gg/neKghyefqh

β˜• Buy Me A Coffee ➜ https://www.buymeacoffee.com/davegray

πŸ‘‡ Follow Me On Social Media:
Github: https://github.com/gitdagray
Twitter: https://twitter.com/yesdavidgray
LinkedIn: https://www.linkedin.com/in/davidagray/

πŸ”— All Resources for this Typescript Course: https://github.com/gitdagray/typescript-course

πŸ”— Playlist for this Typescript Course: http://bit.ly/3GcNJ78

Typescript Functions | Basics Tutorial for Beginners

(00:00) Intro
(00:05) Welcome
(00:17) Type Aliases
(03:11) Literal Types
(06:07) Basic Functions
(07:29) Functions with no return value
(10:40) The function keyword
(11:58) Function Type Aliases
(14:06) Function Interface
(15:28) Optional Parameters
(18:10) Default Parameters
(21:39) Function with Rest Params
(25:21) The never type
(27:54) Using the never type
(30:25) Custom Type Guard

πŸ“š Suggested Pre-requisites for this Typescript course:
πŸ”—JavaScript for Beginners full course: https://youtu.be/EfAl9bwzVZk

πŸ“š Tutorial References:
πŸ”— Typescript Official Website: https://www.typescriptlang.org/
πŸ”— Anders Hejlsberg, Creator of Typescript and C# Interview: https://dev.to/destrodevshow/typescript-and-c-both-created-by-the-same-person-named-anders-hejlsberg-42g4
πŸ”— Stackoverflow Survey Results: https://survey.stackoverflow.co/2022/#technology-most-popular-technologies
πŸ”— MDN - Static Typing: https://developer.mozilla.org/en-US/docs/Glossary/Static_typing
πŸ”— MDN - Dynamic Typing: https://developer.mozilla.org/en-US/docs/Glossary/Dynamic_typing
πŸ”— MDN - Type Coercion: https://developer.mozilla.org/en-US/docs/Glossary/Type_coercion

βš™ Web Dev Tools:
πŸ”— Chrome Browser: https://www.google.com/chrome/
πŸ”— Visual Studio Code (VS Code): https://code.visualstudio.com/
πŸ”— Node.js & npm: https://nodejs.org/
πŸ”— Live Server VS Code Extension: https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer

Was this Typescript Functions basics tutorial helpful? If so, please share. Let me know your thoughts in the comments.

#typescript #functions #tutorial