What does the \":\" mean in the 3-6th lines below?
function displayError(error) { var errorTypes = { 0: \"Unknown error\", 1: \"Permissi
That's how you define key value pairs in an object. So errorTypes.2 would return the string "Position is not available".
errorTypes.2