Understanding the 'unknown' Type in TypeScript - Unknown vs Any Type in TypeScript

preview_player
Показать описание
We do a deep dive into understanding the unknown type in TypeScript. Where see the use cases of the unknown type and also see how is it different from the "any" type.

🔥🔥 FREE JavaScript Cheat Sheet 🔥🔥

👾 Subscribe For More Tutorials 👾

📓 TypeScript Complete Course 📓

🌟 Exciting And Insightful Content About JavaScript 🌟
Рекомендации по теме
Комментарии
Автор

how come you pass in number: 4 or number: "John" as argument. what type of value is that?

kwaku_
Автор

I get an error when I pass value: "John" in the same function in my code. How come you bypass that. It says can't find name "value".

kwaku_