Learn TypeScript – Full Tutorial
Mô tả
Learn how to program with TypeScript in this full course for beginners. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. TypeScript provides better error checking than JavaScript. This is because TypeScript uses a static type system, which means that the type of a variable is checked before the code is executed. 💻 GitHub Repo: https://github.com/hiteshchoudhary/ty... ✏️ Hitesh Choudhary created this course. Check out his channel: / hiteshchoudharydotcom ❤️ Try interactive TypeScript courses we love, right in your browser: https://scrimba.com/freeCodeCamp-Type... (Made possible by a grant from our friends at Scrimba)
Danh sách bài giảng (1 bài)
Bài 1: Learn TypeScript – Full Tutorial
Video bài giảngBài kiểm tra Quizzes (0)
Chưa mở khóaĐánh giá từ học viên
Nhận xét và trải nghiệm thực tế từ các học viên đã đăng ký tham gia khóa học này.
Dựa trên 10 lượt đánh giá từ học viên
Đăng nhập để đánh giá khóa học
Bạn cần đăng nhập và tham gia khóa học để có thể gửi đánh giá và nhận xét.
Tất cả đánh giá 10
Thanks for sharing the video. Feel free to ask any doubt here, I will try to answer them. Also, I am on my way to contribute more videos to #freecodecamp
Stay tuned
After this course I learned that 70% of viewers are not subscribers and we shall hit the subscribe button. Thank you Hitesh
my timestamps:
2:24:03 (thursday/wednesday)
3:15:25 (friday)
3:19:36 (saturday)
4:07:16 (sunday)
FINISHED! (monday)
hope you guys can do it too :) good luck!
Hey, thank you for the course, but I think you might be wrong at 1:18:30
You create a function "createUser", that takes in object with "name" and "isPaid" properties.
But instead of giving them a type, you destructuring the object
and reassigning "name" to "string" and "isPaid" to "boolean",
But object itself still has "any" type!
function createUser({ name: string, isPaid: boolean }) {}
Same as:
function createUser({ name: string, isPaid: boolean }: any) {}
Almost same as:
function createUser({ name, isPaid }) { ---> type is still "any"
const string = name
const boolean = isPaid
}
I think you wanted to to something like this instead:
function createUser({ name, isPaid }: { name: string, isPaid: boolean }) {}
Or this:
type User = { name: string, isPaid: boolean }
function
Enums stands for Enumerations. Enums are a new data type supported in TypeScript. It is used to define the set of named constants, i.e., a collection of related values. TypeScript supports both numeric and string-based enums
Hitesh Choudhary is one of my favorite teachers who makes complex topics into simple. Great to see Hitesh here 😃
Yes! We can push elements to read-only properties having type array; because arrays are not explicitly represented, but only by their memory address. So, technically we are not changing the memory address of array by pushing elements inside it, and READONLY still validates upon the address of the array.