From 5c433c8aa1caeab66ada553f65f3dfc9f460e38f Mon Sep 17 00:00:00 2001 From: jsmartinezn <42350695+jsmartinezn@users.noreply.github.com> Date: Mon, 3 Feb 2020 20:52:33 -0500 Subject: [PATCH] Update main.js --- js/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/main.js b/js/main.js index cea62a8..50e52e8 100644 --- a/js/main.js +++ b/js/main.js @@ -33,6 +33,8 @@ let count = 1; Function that counts the number of times the like button is clicked, is a likes counter. Print the number of likes on the console and change the value to the p element with the id count. */ +/**Cuando se refresca la pagina el numero de likes vuelve a cero, seria genial encontrar la manera de que esto no pase +*/ function countLikes(){ document.getElementById("count").innerHTML = count ++; localStorage.setItem("countlikes", count);