In Javascript I need to get the css style of an element, based on the search I did I used the getComputedStyle, although my element has background-color(I'm trying to get this background-color) doing the console.log for status shows null.
var element = document.querySelector('#word')
var style = getComputedStyle(element)
var status = style.color
console.log(status)
<div id="word">Word</div>