logo
logo

Style Elements

Beginner

Style Elements

Write a function that takes an element and a style object as parameters and applies the styles to the element. The style object should be an object with CSS properties as keys and their values as values. For example, if the function is called with an element and the style object { color: "red", backgroundColor: "blue" }, it should apply those styles to the element.

Console
Submit
Solution
00:00