ayakovlenko / typescriptlings Goto Github PK
View Code? Open in Web Editor NEWSmall exercises to get you used to reading and writing TypeScript code!
Small exercises to get you used to reading and writing TypeScript code!
I only discovered there is such a concept in TS just now when Googling the proper term for union types. I managed to upgrade my JS project to TS without discovering them. Maybe they would've helped. Since they're a concept I haven't touched yet I don't have specific ideas to suggest for what should be in the exercises though.
In my limited experience converting code from JS to TS I know I used narrowing and while I get the concept and its utility I didn't really grasp exactly what it can and can't do in TS and how it works. Some exercises on that topic would surely help other people.
Each exercise has the line:
// I DON'T NEED A HINT
But I can't find how to access the hints. Are there any hints, or is that not implemented yet?
In Rustlings I can type hint
as a command to get a hint for the current exercise in its equivalent of the vr start
interactive loop.
For programmers coming from other languages, TS generics may be more or less like the generics and templates in other languages they already know. But if you're used to C++ templates they may not actually work as similarly as they appear. And if coming from JS you may have never came across a similar concept before.
I'm not experienced enough yet at TS to suggest what the exercises should be but it's a core component of TS that JS doesn't really have.
I managed to convert my project from JS to TS without really grasping typescript interfaces. Seems to be a key topic a person new to TS will want to learn. Unfortunately I'm not yet able to describe what specifically should be covered though.
The type annotations that look like string | null
were one of the first things I noticed when coming to TS for JS. I'm not yet experienced enough at TS to have specific suggestions as to what the exercises should be though.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.