Properties that are hyphenated, such as
font-size
, are converted to camelCase. That is,
font-size will become fontSize:
elem.style.fontSize = '20px';
Given a div with text and a button. On click
on the button, set the div's font size to
20px
, as well as the top border and
background.