保存进度!
This commit is contained in:
@@ -1,16 +1,36 @@
|
||||
|
||||
const greetings: string = "Hello, World!";
|
||||
const greetings = "Hello, World!";
|
||||
|
||||
console.log( greetings );
|
||||
// console.log( greetings );
|
||||
|
||||
enum Season {
|
||||
enum Season
|
||||
{
|
||||
spring = 1,
|
||||
summer,
|
||||
autumn,
|
||||
winter,
|
||||
};
|
||||
|
||||
let today: Season = Season.spring;
|
||||
const ar: string[] = [
|
||||
"1", "2",
|
||||
];
|
||||
|
||||
console.log( today );
|
||||
const ar2: (string | number)[] = [
|
||||
1, 2, 3, "4",
|
||||
];
|
||||
|
||||
const ar3: readonly (string | number)[] = [1, 2, 3, 4, 5, "7",];
|
||||
|
||||
const today = Season.spring;
|
||||
|
||||
function ts(): string
|
||||
{
|
||||
const message = "message";
|
||||
|
||||
return message;
|
||||
}
|
||||
|
||||
ts();
|
||||
|
||||
console.log(today);
|
||||
|
||||
|
Reference in New Issue
Block a user