I want to dynamically changing some values in grid-area property using JS.
var d = ["about", "contact"];
document.getElementById("container").style.gridTemplateAreas = '"services d[0] d[1] content content content"';
Is it possible to place for example d[0] inside these signs ' " to make my website more dynamic? The layout is not changing because JS reads it as a string "d[0]" not as an assigned value, which is "about". I'm going to randomly assigning values from the array, but for this moment I just want to place a specific value.