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