Answers for "Property '0' is missing in type '[]' but required in type '"

0

Property '0' is missing in type '[]' but required in type '

myArray:[]; //Incorrect, results in error message of `Property '0' is missing in type`

myArray: Array<string>; //Correct

myArray: string[]; //Also correct
Posted by: Guest on August-25-2020

Code answers related to "Property '0' is missing in type '[]' but required in type '"

Browse Popular Code Answers by Language