The goal: Output the file size of HTML snippet returned from a fetch() call in JavaScript.
Response from fetch request
{
content: "<p>Image Long html code block within this property</p>"
}
How would I calculate the size of content property, whether in KB or MB? How can I achieve this in JavaScript?