javascirpt style 옵션이 안되네요 혹시 아시는분 계시면 도움 부탁드립니다

image
(text.js)파일
image
여기서 buttonColor.style 옵션들어가려고하는데 안들어가지네요 혹시 아시는분 계시면 도움 부탁드립니다…

console.log(buttonColor)
한번 해보세요. 없어서 안되는 경우이거나 style속성을 잘못 써서 그럴거 같아요.

<a class = "foo" href = "bar.html" > (x)
<a class="foo" href="bar.html"> (o)

html에서 = 글자 양옆으로 띄어쓰기 하지 마세요. 틀린문법입니다.

1개의 좋아요