https://github.com/khujamovcodes/typescipt
https://github.com/khujamovcodes/typescipt
typescript typescript-interfaces
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/khujamovcodes/typescipt
- Owner: KhujamovCodes
- Created: 2024-09-05T17:59:39.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-09-05T18:08:47.000Z (10 months ago)
- Last Synced: 2025-04-24T03:45:01.811Z (about 2 months ago)
- Topics: typescript, typescript-interfaces
- Homepage: https://www.typescriptlang.org
- Size: 4.88 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TypeScript nima?
**TypeScript** — bu JavaScriptning rivojlangan versiyasi bo'lib, unga "tiplar" (types) tizimini qo'shadi. Bu dasturlashda xatolarni oldindan ko'rish va kodni yanada ishonchli qilish imkonini beradi.
## Asosiy xususiyatlari:
### 1. **Tiplash**
TypeScriptda o'zgaruvchilar turini oldindan belgilash mumkin. Bu dasturdagi xatolarni oldindan aniqlashga yordam beradi.Misol:
let age: number = 25;
age = "yigirma besh"; // Xato beradi, chunki 'age' raqam (number) bo'lishi kerak!