JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head>
</head>
<body>
<pre>
</pre>
</body>
</html>
JavaScript
String.prototype.repeat = function( num )
{
return new Array( num + 1 ).join( this );
};
$(function () {
$('pre').html( 'starting ... ' );
var data = 'x'.repeat(4000000);
localStorage.setItem('bar',data);
var foo = localStorage.getItem("bar");
$('pre').html( data == foo ? 'Legit' : 'fail' );
});