interface Todo {
/** The title of the todo item */
Todo.title: stringThe title of the todo itemtitle: string;
}
const const todo: Readonly<Todo>todo: type Readonly<T> = { readonly [P in keyof T]: T[P]; }Make all properties in T readonlyReadonly<Todo> = {
title: stringThe title of the todo itemtitle: "Delete inactive users".String.toUpperCase(): stringConverts all the alphabetic characters in a string to uppercase.toUpperCase(),
};
const todo: Readonly<Todo>todo.title = "Hello";
var Number: NumberConstructorAn object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers.Number.p- parseFloat
- parseInt
- prototype
NumberConstructor.parseInt(string: string, radix?: number): numberConverts A string to an integer.arseInt(const todo: Readonly<Todo>todo.title: stringThe title of the todo itemtitle, 10);