Skip to content
Coder
Newbie
Learn Coding
Practice
Projects
Tools
Resources
⌘K
EN
Home
Quizzes
TypeScript Basics Quiz
TypeScript Basics Quiz
Basic types, interfaces, type annotations, and TypeScript fundamentals.
beginner
Question 1 of 7
Question 1 of 7
typescript
Which syntax correctly annotates a variable as a string?
A
let name: string = "Alice"
B
let name as string = "Alice"
C
let string name = "Alice"
D
let name = "Alice" :: string
All quizzes
Next