JavaScript

How to assign and apply a JSON object with CSS styles to an element in JavaScript

Say you have selected an element via JavaScript: const someElement = document.querySelector(".some-elements-class"); And you have an object of given CSS…