</>
Skill
Recall
RECALL WHAT YOU KNOW
Library
Planner
Daily Recall
Why SkillRecall
More
About
News
Contact
Sign in
Explore Library
Create free account
Prepare for an interview
Explore Library
Quiz
Beginner
Save
Array Type Annotations
Two ways to annotate array types.
Which is a correct way to annotate an array of numbers?
A
let nums: number[] = [1, 2, 3];
B
let nums: [number] = [1, 2, 3];
C
let nums: array<number> = [1, 2, 3];
D
let nums: numbers = [1, 2, 3];