JSFiddle - React, Tailwind, and code Playground

JavaScript

var movie = "test";
var movieId = 1;
localStorage[movie + movieId] = "Testing"
    
 alert(localStorage['test1'])