bro ye code follow kar : let text = document.getElementById("span"); let btn = document.getElementById("btn"); let str = ""; btn.addEventListener("click", function () { let str = Math.floor(Math.random () * 10000); text.innerHTML = str; })
Thank you so so muuuuuch. It worked!! The only difference now is that the single quote for split and join has become double quote. Else you'll be getting the error ${char}
Do you have any ideas or points on how to build a hexagonal grid image gallery? Putting an image in a hexagon clip (svg or css) is easy, but putting all these images in a hexagonal beehive grid is a nightmare.