Posts by pedro • 1 point
1 post
-
0
votes2
answers111
viewsA: How to do localStorage.setItem('nameserver', 'value') and make the nameserver always change if there is already one with the same name?
You can do it this way: function favoritar(url){ var SalvarURL = url; var favorito = 'favorito'; var count = 1; while(true){ var itemJaExistente = localStorage.getItem(favorito); // caso esse item…
javascriptanswered pedro 1