Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript array of mixed type

let scores : (string | number)[];
scores = ['Programming', 5, 'Software Design', 4]; 
Code language: JavaScript (javascript)
Source by www.typescripttutorial.net #
 
PREVIOUS NEXT
Tagged: #typescript #array #mixed #type
ADD COMMENT
Topic
Name
5+1 =