JSFiddle - React, Tailwind, and code Playground

by 1eddy87

HTML

<p id="paragraph"></p>

JavaScript

//first arguement must be an regular array. The array can be of any javascript objects. Array can contain array to make it multi dimensional 
//second parameter must be a BlogPropertyBag object containing MIME property
var myBlob = new Blob(["This is my blob content"], {
  type: "text/plain"
});
var myReader = new FileReader();
//handler executed once reading(blob content referenced to a variable) from blob is finished. 
/*
myReader.addEventListener("loadend", function(event) {
  alert(event.target.result);
});
*/
myReader.onload = function(e) {
	alert(e.target.result);
}
//start the reading process.
myReader.readAsText(myBlob);