7.
We have a variable that will hold a two-dimensional point (GPS Coordinates: latitude and longitude). What is the most appropriate type annotation for this?
[number, number]
boolean
string
number
Correct: A
The most appropriate type annotation for a two-dimensional point is [number, number]. This annotation represents an array with two elements, where each element represents the coordinates of the point as numbers, such as [x, y].