提交 9f582e58 编写于 作者: W weixin_42146585

Auto Commit

上级 8abd2472
run = "node --enable-source-maps .build/index.js"
language = "node"
[env]
PATH = "/root/${PROJECT_DIR}/.config/npm/node_global/bin:/root/${PROJECT_DIR}/node_modules/.bin:${PATH}"
XDG_CONFIG_HOME = "/root/.config"
npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global"
[debugger]
program = "main.js"
const s: string = "欢迎来到 InsCode";
console.log(s);
let name: string = "Alice";
let age: number = 30;
let isActive: boolean = true;
// 函数参数和返回值的类型注释
function greet(name: string): string {
return "Hello, " + name + "!";
}
// 对象类型注释
let user: { name: string; age: number } = {
name: "Bob",
age: 25
};
// 数组类型注释
let numbers: number[] = [1, 2, 3, 4, 5];
let names: Array<string> = ["Alice", "Bob", "Charlie"];
// 元组类型注释
let tuple: [string, number] = ["Alice", 30];
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册