JSFiddle - React, Tailwind, and code Playground

by Satpal Singh

JavaScript

//unrelevant, just in case
localStorage.clear();

var test = false;
localStorage['test'] = JSON.stringify(test);
console.log("JSON.parse returns: ", JSON.parse(localStorage['test']), "expected: ", test);
console.log("'!!' returns: ", !!JSON.parse(localStorage['test']), "expected: ", test);