I'm currently learning javascript from the following book 'JavaScript: The Good Parts - O'Reilly Media', which says the following:
The quotes around a property’s name in an object literal are optional if the name would be a legal JavaScript name and not a reserved word. So quotes are required around"first-name", but are optional around first_name.
Question: From my research 'first-name' is not a keyword in javascript, so why does the author say quotes are required around it?
