I know that I can test for a javascript variable and then define it if it is undefined, but is there not some way of saying
var setVariable = localStorage.getItem