0
点赞
收藏
分享

微信扫一扫

TypeScript入门基础——第一个程序hello world

青乌 2022-04-05 阅读 201

文章目录

概述:

TypeScript 程序由以下几个部分组成:

  • 模块
  • 函数
  • 变量
  • 语句和表达式
  • 注释

第一个typescript程序

文件名:01_hellotest.ts

const helloTest : string = "hello world !!!!"
console.log(helloTest)

以上代码,在程序控制台中,输出“hello world !!!”
我使用的开发环境是VScode;有使用相同开发工具的小伙伴,遇到

举报

相关推荐

0 条评论