Are dashes allowed in javascript property names? June 30, 2022 by Tarik no. the parser will interpret it as the subtract operator. you can do settings['background-color'].