CSS
yourSelector { border-width: 1px; border-style: solid; border-color: black; }
JavaScript
yourVariable.style.border = `1px solid black`