On wix I want to make it so every time someone pushes a button, everyone on the site can see how many times it was pushed. Here's what I got so far
import {local, session, memory} from 'wix-storage'; $w.onReady(function () { let clicks = local.getItem("clicks"); $w("#text15").text = "Amount of Times Clicked: " + clicks let c = Number(clicks); $w("#button6").onClick( (event) => { c++; local.setItem("clicks", c) $w("#text15").text = "Amount of Times Clicked: " + c; }) });