How to dynamically create variables and use them in anchor?
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/styles.css" />
<title>Interactive Images</title>
</head>
<body>
<div class="container"></div>
<script>
const buttons = [{
buttonId: 103676,
link: "ww.google.com",
},
{
buttonId: 432549,
link: "www.yahoo.com",
},
];
const createButton = ({
buttonId,
link
}) => {
const a = document.createElement("a");
a.textContent = "first points";
a.href = link;
a.setAttribute('class', 'button-simple');
a.setAttribute('data-id', buttonId);
a.setAttribute('target', "_blank"); // open in new tab behvaiour
return a;
}
const container = document.getElementsByClassName("container")[0];
buttons.forEach(button => container.appendChild(createButton(button)));
</script>
</body>
</html>
```