I dont understand a part of code in Random Quote Machine

‘’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’
const projectName = “random-quote-machine”;
localStorage.setItem(‘example_project’, ‘Randowm Quote Machine’);
let quotesData;
‘’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’’
What dose this do, I removed it from the code and nothing changed so i don’t get what is it doing?

i get that he is using local Storage but what dose he do with it? To what purpose?

It just sets what test to use by the test script. As you can tell you can’t change what test to use (the dropdown), but if you remove the JS you can change it.

1 Like

Thanks now it makes sense. :sweat_smile: