I'm having an issue with this code. I created a javascript variable in the same file and referenced it for setting the background color of the body. However, it's not working as expected. Can someone please explain why and help me achieve my desired result? I feel like I must be overlooking something simple.
*edit: I should have mentioned that using a javascript variable for the color is crucial. Apologies for leaving that out.
<!DOCTYPE html>
<html>
<head>
</head>
<body style="background-color:color;">
</body>
<script type="text/javascript">
var color = #555555;
</script>
</html>