#100DAYSOFCODE Day98
Learn about TypeScript
Types by Inference #
let helloWorld = "Hello World";
Defining Types
You can explicitly describe this object’s shape using an interface declaration:
interface User {
name: string;
id: number;
}
const user: User = {
name: ...
haorong.hashnode.dev1 min read