Google does not read or use the content within your HTML comments for Google Search or ranking purposes. Google's John Mueller confirmed this once again saying, "Googlebot doesn't understand your HTML ...
This week’s question comes from Thomas, who asks: I disabled the JavaScript just to check the content of my webpage, but unfortunately I could not see any content except the banner H1 tag. Will it ...
Always test your pages using Google’s own tools and third-party resources to view the rendered HTML to make sure all your content is showing up. Google has come a long way with rendering JavaScript.