how to add css style file by javascript code example
Example 1: add css in javascript
document.getElementById("demo").style.display = "none";
Example 2: js add css to document
document.querySelector('head').innerHTML += '<link rel="stylesheet" href="styles.css" type="text/css"/>';